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

Unified Diff: webkit/plugins/ppapi/ppb_flash_impl.cc

Issue 6253017: Pepper/Flapper: First pass at context menu implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: oops 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
Index: webkit/plugins/ppapi/ppb_flash_impl.cc
diff --git a/webkit/plugins/ppapi/ppb_flash_impl.cc b/webkit/plugins/ppapi/ppb_flash_impl.cc
index 33e0d11583516c1fe14222b62c9fc4fc11355dfa..36ba4ac0fc228189992432976acfc1f815abf198 100644
--- a/webkit/plugins/ppapi/ppb_flash_impl.cc
+++ b/webkit/plugins/ppapi/ppb_flash_impl.cc
@@ -7,6 +7,7 @@
#include <string.h>
#include "base/file_path.h"
+#include "base/message_loop.h"
#include "base/stringprintf.h"
#include "base/utf_string_conversions.h"
#include "googleurl/src/gurl.h"
@@ -217,6 +218,17 @@ PP_Bool NavigateToURL(PP_Instance pp_instance,
return BoolToPPBool(instance->NavigateToURL(url, target));
}
+void RunMessageLoop() {
+ bool old_state = MessageLoop::current()->NestableTasksAllowed();
+ MessageLoop::current()->SetNestableTasksAllowed(true);
+ MessageLoop::current()->Run();
+ MessageLoop::current()->SetNestableTasksAllowed(old_state);
+}
+
+void QuitMessageLoop() {
+ MessageLoop::current()->QuitNow();
+}
+
const PPB_Flash ppb_flash = {
&SetInstanceAlwaysOnTop,
&PPB_Flash_Impl::DrawGlyphs,
@@ -229,6 +241,8 @@ const PPB_Flash ppb_flash = {
&GetModuleLocalDirContents,
&FreeModuleLocalDirContents,
&NavigateToURL,
+ &RunMessageLoop,
+ &QuitMessageLoop,
};
} // namespace

Powered by Google App Engine
This is Rietveld 408576698