Pepper_47_C_interfaces
|
#include <ppb_display_color_profile_private.h>
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) |
PPB_DisplayColorProfile_Private
defines the methods for getting the display color profile and monitoring its changes.
Setup:
Definition at line 50 of file ppb_display_color_profile_private.h.
PP_Resource(* PPB_DisplayColorProfile_Private_0_1::Create)(PP_Instance instance) |
Create() creates a display color profile resource.
[in] | instance | The module instance. |
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.]
[in] | display_color_profile_res | The display color profile resource. |
[in] | color_profile | A 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] | callback | The completion callback to be called once the display color profile data is available. |
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.
[in] | resource | A DisplayColorProfile context resource. |
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.
[in] | display_color_profile_res | The display color profile resource. |
[in] | callback | The callback to be invoked next time the display color profile changes. |
pp_errors.h
. Definition at line 111 of file ppb_display_color_profile_private.h.