Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(135)

Unified Diff: ppapi/c/private/ppb_flash.h

Issue 9369003: Pepper: Add a function to PPB_Flash to check if a rect is topmost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add stubs for InvokePrinting() and UpdateActivity() Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/api/private/ppb_flash.idl ('k') | ppapi/cpp/private/flash.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/c/private/ppb_flash.h
diff --git a/ppapi/c/private/ppb_flash.h b/ppapi/c/private/ppb_flash.h
index d638694209ac1d08688b96a210b98e58000c8476..f91f07cab03a224796fe533e7ef17c051978bbea 100644
--- a/ppapi/c/private/ppb_flash.h
+++ b/ppapi/c/private/ppb_flash.h
@@ -3,7 +3,7 @@
* found in the LICENSE file.
*/
-/* From private/ppb_flash.idl modified Mon Dec 19 19:43:03 2011. */
+/* From private/ppb_flash.idl modified Fri Feb 17 15:52:14 2012. */
#ifndef PPAPI_C_PRIVATE_PPB_FLASH_H_
#define PPAPI_C_PRIVATE_PPB_FLASH_H_
@@ -22,7 +22,8 @@
#include "ppapi/c/pp_var.h"
#define PPB_FLASH_INTERFACE_12_0 "PPB_Flash;12.0"
-#define PPB_FLASH_INTERFACE PPB_FLASH_INTERFACE_12_0
+#define PPB_FLASH_INTERFACE_12_1 "PPB_Flash;12.1"
+#define PPB_FLASH_INTERFACE PPB_FLASH_INTERFACE_12_1
/**
* @file
@@ -38,7 +39,7 @@
* The <code>PPB_Flash</code> interface contains pointers to various functions
* that are only needed to support Pepper Flash.
*/
-struct PPB_Flash_12_0 {
+struct PPB_Flash_12_1 {
/**
* 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
@@ -107,9 +108,47 @@ struct PPB_Flash_12_0 {
* On non-Windows platforms, this function does nothing.
*/
void (*PreloadFontWin)(const void* logfontw);
+ /**
+ * Returns whether the given rectangle (in the plugin) is topmost, i.e., above
+ * all other web content.
+ */
+ PP_Bool (*IsRectTopmost)(PP_Instance instance, const struct PP_Rect* rect);
+ /**
+ * Invokes printing for the given instance.
+ */
+ int32_t (*InvokePrinting)(PP_Instance instance);
+ /**
+ * Indicates that there's activity and, e.g., the screensaver shouldn't kick
+ * in.
+ */
+ void (*UpdateActivity)(PP_Instance instance);
};
-typedef struct PPB_Flash_12_0 PPB_Flash;
+typedef struct PPB_Flash_12_1 PPB_Flash;
+
+struct PPB_Flash_12_0 {
+ void (*SetInstanceAlwaysOnTop)(PP_Instance instance, PP_Bool on_top);
+ PP_Bool (*DrawGlyphs)(PP_Instance instance,
+ PP_Resource pp_image_data,
+ const struct PP_FontDescription_Dev* 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);
+ void (*RunMessageLoop)(PP_Instance instance);
+ void (*QuitMessageLoop)(PP_Instance instance);
+ double (*GetLocalTimeZoneOffset)(PP_Instance instance, PP_Time t);
+ struct PP_Var (*GetCommandLineArgs)(PP_Module module);
+ void (*PreloadFontWin)(const void* logfontw);
+};
/**
* @}
*/
« no previous file with comments | « ppapi/api/private/ppb_flash.idl ('k') | ppapi/cpp/private/flash.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698