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

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

Issue 6253017: Pepper/Flapper: First pass at context menu implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make brettw happier Created 9 years, 11 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/c/pp_errors.h ('k') | ppapi/c/private/ppb_flash_menu.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 a7a5babca0c4cdce1d5c522ba9b49170a79708ae..3f8f2224395c5870b9245bf654a20982ee4aeb23 100644
--- a/ppapi/c/private/ppb_flash.h
+++ b/ppapi/c/private/ppb_flash.h
@@ -19,7 +19,7 @@
// PPB_Flash -------------------------------------------------------------------
-#define PPB_FLASH_INTERFACE "PPB_Flash;4"
+#define PPB_FLASH_INTERFACE "PPB_Flash;5"
#ifdef _WIN32
typedef HANDLE PP_FileHandle;
@@ -116,6 +116,17 @@ struct PPB_Flash {
PP_Bool (*NavigateToURL)(PP_Instance instance,
const char* url,
const char* target);
+
+ // Runs a nested message loop. The plugin will be reentered from this call.
+ // This function is used in places where Flash would normally enter a nested
+ // message loop (e.g., when displaying context menus), but Pepper provides
+ // only an asynchronous call. After performing that asynchronous call, call
+ // |RunMessageLoop()|. In the callback, call |QuitMessageLoop()|.
+ void (*RunMessageLoop)();
+
+ // Posts a quit message for the outermost nested message loop. Use this to
+ // exit and return back to the caller after you call RunMessageLoop.
+ void (*QuitMessageLoop)();
};
// PPB_Flash_NetConnector ------------------------------------------------------
« no previous file with comments | « ppapi/c/pp_errors.h ('k') | ppapi/c/private/ppb_flash_menu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698