Pepper_56_C_interfaces
Pepper_56_C_interfaces
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
PPB_Flash_13_0 Struct Reference

#include <ppb_flash.h>

Public Attributes

void(* SetInstanceAlwaysOnTop )(PP_Instance instance, PP_Bool on_top)
 
PP_Bool(* DrawGlyphs )(PP_Instance instance, PP_Resource pp_image_data, const struct PP_BrowserFont_Trusted_Description *font_desc, uint32_t color, const struct PP_Point *position, const struct PP_Rect *clip, const float transformation[3][3], PP_Bool allow_subpixel_aa, uint32_t glyph_count, const uint16_t glyph_indices[], const struct PP_Point glyph_advances[])
 
struct PP_Var(* GetProxyForURL )(PP_Instance instance, const char *url)
 
int32_t(* Navigate )(PP_Resource request_info, const char *target, PP_Bool from_user_action)
 
double(* GetLocalTimeZoneOffset )(PP_Instance instance, PP_Time t)
 
struct PP_Var(* GetCommandLineArgs )(PP_Module module)
 
void(* PreloadFontWin )(const void *logfontw)
 
PP_Bool(* IsRectTopmost )(PP_Instance instance, const struct PP_Rect *rect)
 
void(* UpdateActivity )(PP_Instance instance)
 
struct PP_Var(* GetSetting )(PP_Instance instance, PP_FlashSetting setting)
 
PP_Bool(* SetCrashData )(PP_Instance instance, PP_FlashCrashKey key, struct PP_Var value)
 
int32_t(* EnumerateVideoCaptureDevices )(PP_Instance instance, PP_Resource video_capture, struct PP_ArrayOutput devices)
 

Detailed Description

The PPB_Flash interface contains pointers to various functions that are only needed to support Pepper Flash.

Member Data Documentation

PP_Bool(* PPB_Flash_13_0::DrawGlyphs)(PP_Instance instance, PP_Resource pp_image_data, const struct PP_BrowserFont_Trusted_Description *font_desc, uint32_t color, const struct PP_Point *position, const struct PP_Rect *clip, const float transformation[3][3], PP_Bool allow_subpixel_aa, uint32_t glyph_count, const uint16_t glyph_indices[], const struct PP_Point glyph_advances[])

Draws the given pre-laid-out text. It is almost equivalent to Windows' ExtTextOut with the addition of the transformation (a 3x3 matrix given the transform to apply before drawing). It also adds the allow_subpixel_aa flag which when true, will use subpixel antialiasing if enabled in the system settings. For this to work properly, the graphics layer that the text is being drawn into must be opaque.

int32_t(* PPB_Flash_13_0::EnumerateVideoCaptureDevices)(PP_Instance instance, PP_Resource video_capture, struct PP_ArrayOutput devices)

Enumerates video capture devices. |video_capture| is a valid PPB_VideoCapture_Dev resource. Once the operation has completed successfully, |devices| will be set up with an array of PPB_DeviceRef_Dev resources.

PP_OK is returned on success and different pepper error code on failure. The ref count of the returned |devices| has already been increased by 1 for the caller.

NOTE: This method is a synchronous version of |EnumerateDevices| in PPB_VideoCapture_Dev.

struct PP_Var(* PPB_Flash_13_0::GetCommandLineArgs)(PP_Module module)

Gets a (string) with "command-line" options for Flash; used to pass run-time debugging parameters, etc.

double(* PPB_Flash_13_0::GetLocalTimeZoneOffset)(PP_Instance instance, PP_Time t)

Retrieves the local time zone offset from GM time for the given UTC time.

struct PP_Var(* PPB_Flash_13_0::GetProxyForURL)(PP_Instance instance, const char *url)

Retrieves the proxy that will be used for the given URL. The result will be a string in PAC format, or an undefined var on error.

struct PP_Var(* PPB_Flash_13_0::GetSetting)(PP_Instance instance, PP_FlashSetting setting)

Returns the value associated with the given setting. Invalid enums will result in an undefined PP_Var return value.

PP_Bool(* PPB_Flash_13_0::IsRectTopmost)(PP_Instance instance, const struct PP_Rect *rect)

Returns whether the given rectangle (in the plugin) is topmost, i.e., above all other web content.

int32_t(* PPB_Flash_13_0::Navigate)(PP_Resource request_info, const char *target, PP_Bool from_user_action)

Navigate to the URL given by the given URLRequestInfo. (This supports GETs, POSTs, and javascript: URLs.) May open a new tab if target is not "_self".

void(* PPB_Flash_13_0::PreloadFontWin)(const void *logfontw)

Loads the given font in a more privileged process on Windows. Call this if Windows is giving errors for font calls. See content/renderer/font_cache_dispatcher_win.cc

The parameter is a pointer to a LOGFONTW structure.

On non-Windows platforms, this function does nothing.

PP_Bool(* PPB_Flash_13_0::SetCrashData)(PP_Instance instance, PP_FlashCrashKey key, struct PP_Var value)

Allows setting breakpad crash data which will be included in plugin crash reports. Returns PP_FALSE if crash data could not be set.

void(* PPB_Flash_13_0::SetInstanceAlwaysOnTop)(PP_Instance instance, PP_Bool on_top)

Sets or clears the rendering hint that the given plugin instance is always on top of page content. Somewhat more optimized painting can be used in this case.

void(* PPB_Flash_13_0::UpdateActivity)(PP_Instance instance)

Indicates that there's activity and, e.g., the screensaver shouldn't kick in.


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