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

Unified Diff: ppapi/proxy/ppb_fullscreen_proxy.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 | « ppapi/proxy/ppb_font_proxy.cc ('k') | ppapi/proxy/ppb_graphics_2d_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/ppb_fullscreen_proxy.cc
===================================================================
--- ppapi/proxy/ppb_fullscreen_proxy.cc (revision 71973)
+++ ppapi/proxy/ppb_fullscreen_proxy.cc (working copy)
@@ -14,15 +14,23 @@
namespace {
PP_Bool IsFullscreen(PP_Instance instance) {
+ PluginDispatcher* dispatcher = PluginDispatcher::GetForInstance(instance);
+ if (!dispatcher)
+ return PP_FALSE;
+
PP_Bool result = PP_FALSE;
- PluginDispatcher::Get()->Send(new PpapiHostMsg_PPBFullscreen_IsFullscreen(
+ dispatcher->Send(new PpapiHostMsg_PPBFullscreen_IsFullscreen(
INTERFACE_ID_PPB_FULLSCREEN, instance, &result));
return result;
}
PP_Bool SetFullscreen(PP_Instance instance, PP_Bool fullscreen) {
+ PluginDispatcher* dispatcher = PluginDispatcher::GetForInstance(instance);
+ if (!dispatcher)
+ return PP_FALSE;
+
PP_Bool result = PP_FALSE;
- PluginDispatcher::Get()->Send(new PpapiHostMsg_PPBFullscreen_SetFullscreen(
+ dispatcher->Send(new PpapiHostMsg_PPBFullscreen_SetFullscreen(
INTERFACE_ID_PPB_FULLSCREEN, instance, fullscreen, &result));
return result;
}
« no previous file with comments | « ppapi/proxy/ppb_font_proxy.cc ('k') | ppapi/proxy/ppb_graphics_2d_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698