Pepper_47_C_interfaces
Public Attributes | List of all members
PPB_DisplayColorProfile_Private_0_1 Struct Reference

#include <ppb_display_color_profile_private.h>

Collaboration diagram for PPB_DisplayColorProfile_Private_0_1:
Collaboration graph

Public Attributes

PP_Resource(* Create )(PP_Instance instance)
 
PP_Bool(* IsDisplayColorProfile )(PP_Resource resource)
 
int32_t(* GetColorProfile )(PP_Resource display_color_profile_res, struct PP_ArrayOutput color_profile, struct PP_CompletionCallback callback)
 
int32_t(* RegisterColorProfileChangeCallback )(PP_Resource display_color_profile_res, struct PP_CompletionCallback callback)
 

Detailed Description

PPB_DisplayColorProfile_Private defines the methods for getting the display color profile and monitoring its changes.

Setup:

PP_ArrayOutput output = { MyAllocatorFunction, color_profile_data };
PP_Resource display_cp = display_cp_interface->Create(instance);
display_cp_interface->GetColorProfile(display_cp,
output,
completion_callback);

Definition at line 50 of file ppb_display_color_profile_private.h.

Member Data Documentation

PP_Resource(* PPB_DisplayColorProfile_Private_0_1::Create)(PP_Instance instance)

Create() creates a display color profile resource.

Parameters
[in]instanceThe module instance.
Returns
A PP_Resource containing a display color profile resource.

Definition at line 58 of file ppb_display_color_profile_private.h.

int32_t(* PPB_DisplayColorProfile_Private_0_1::GetColorProfile)(PP_Resource display_color_profile_res, struct PP_ArrayOutput color_profile, struct PP_CompletionCallback callback)

GetColorProfile() enqueues a request for the current display color profile.

This method is intended for getting the color profile data of the display on which the browser window resides. [However currently Chrome only considers the system's primary display color profile when doing its color management. For consistency this method will also return the color profile that Chrome uses for its browser window.]

Parameters
[in]display_color_profile_resThe display color profile resource.
[in]color_profileA PP_OutputArray which on success will receive a byte array containing the ICC color profile data (see www.color.org for a reference to the ICC color profile specification and versions). The returned color profile version is the one supported by the host system.
[in]callbackThe completion callback to be called once the display color profile data is available.
Returns
Returns an error code from pp_errors.h.

Definition at line 91 of file ppb_display_color_profile_private.h.

PP_Bool(* PPB_DisplayColorProfile_Private_0_1::IsDisplayColorProfile)(PP_Resource resource)

IsDisplayColorProfile() determines if the given resource is a valid DisplayColorProfile resource.

Parameters
[in]resourceA DisplayColorProfile context resource.
Returns
Returns:
  • PP_TRUE if the given resource is a valid DisplayColorProfile
  • PP_FALSE if it is an invalid resource or is a resource of another type.

Definition at line 70 of file ppb_display_color_profile_private.h.

int32_t(* PPB_DisplayColorProfile_Private_0_1::RegisterColorProfileChangeCallback)(PP_Resource display_color_profile_res, struct PP_CompletionCallback callback)

RegisterColorProfileChangeCallback() registers a callback to be called next time the color profile for the browser window in which the plugin resides changes. In order to get notifications for all color profile changes a call to RegisterColorProfileChangeCallback() function should be done when the previous notification was fired.

There might be 2 scenarios in which the color profile for a window changes: a) The window is moved from one display to another; b) The user changes the display color space from the system settings.

Parameters
[in]display_color_profile_resThe display color profile resource.
[in]callbackThe callback to be invoked next time the display color profile changes.
Returns
Returns an error code from pp_errors.h.

Definition at line 111 of file ppb_display_color_profile_private.h.


The documentation for this struct was generated from the following file: