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

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

Issue 6282007: First pass at making the proxy handle multiple renderers. This associates the... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' 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 | « webkit/plugins/ppapi/ppb_flash_impl.h ('k') | webkit/plugins/ppapi/ppb_flash_impl_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/ppb_flash_impl.cc
===================================================================
--- webkit/plugins/ppapi/ppb_flash_impl.cc (revision 71973)
+++ webkit/plugins/ppapi/ppb_flash_impl.cc (working copy)
@@ -28,7 +28,7 @@
namespace {
-void SetInstanceAlwaysOnTop(PP_Instance pp_instance, bool on_top) {
+void SetInstanceAlwaysOnTop(PP_Instance pp_instance, PP_Bool on_top) {
PluginInstance* instance = ResourceTracker::Get()->GetInstance(pp_instance);
if (!instance)
return;
@@ -114,7 +114,7 @@
int32_t DeleteModuleLocalFileOrDir(PP_Instance pp_instance,
const char* path,
- bool recursive) {
+ PP_Bool recursive) {
PluginInstance* instance = ResourceTracker::Get()->GetInstance(pp_instance);
if (!instance)
return PP_ERROR_FAILED;
@@ -192,7 +192,7 @@
char* name_copy = new char[size];
memcpy(name_copy, name.c_str(), size);
entry.name = name_copy;
- entry.is_dir = pepper_contents[i].is_dir;
+ entry.is_dir = BoolToPPBool(pepper_contents[i].is_dir);
}
return PP_OK;
}
@@ -207,13 +207,13 @@
delete contents;
}
-bool NavigateToURL(PP_Instance pp_instance,
- const char* url,
- const char* target) {
+PP_Bool NavigateToURL(PP_Instance pp_instance,
+ const char* url,
+ const char* target) {
PluginInstance* instance = ResourceTracker::Get()->GetInstance(pp_instance);
if (!instance)
- return false;
- return instance->NavigateToURL(url, target);
+ return PP_FALSE;
+ return BoolToPPBool(instance->NavigateToURL(url, target));
}
const PPB_Flash ppb_flash = {
« no previous file with comments | « webkit/plugins/ppapi/ppb_flash_impl.h ('k') | webkit/plugins/ppapi/ppb_flash_impl_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698