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..846e3be6b7c318fda82b6cffe157682213ca530a 100644 |
--- a/ppapi/c/private/ppb_flash.h |
+++ b/ppapi/c/private/ppb_flash.h |
@@ -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 ------------------------------------------------------ |