Pepper_47_C_interfaces
Public Attributes | List of all members
PPB_Flash_13_0 Struct Reference

#include <ppb_flash.h>

Collaboration diagram for PPB_Flash_13_0:
Collaboration graph

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.

Definition at line 140 of file ppb_flash.h.

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.

Definition at line 155 of file ppb_flash.h.

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.

Definition at line 233 of file ppb_flash.h.

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.

Definition at line 187 of file ppb_flash.h.

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.

Definition at line 182 of file ppb_flash.h.

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.

Definition at line 171 of file ppb_flash.h.

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.

Definition at line 212 of file ppb_flash.h.

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.

Definition at line 202 of file ppb_flash.h.

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".

Definition at line 176 of file ppb_flash.h.

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.

Definition at line 197 of file ppb_flash.h.

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.

Definition at line 217 of file ppb_flash.h.

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.

Definition at line 146 of file ppb_flash.h.

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

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

Definition at line 207 of file ppb_flash.h.


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