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

Unified Diff: ppapi/proxy/ppp_instance_proxy.cc

Issue 7826017: Add PPB_Fullscreen;0.5. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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: ppapi/proxy/ppp_instance_proxy.cc
===================================================================
--- ppapi/proxy/ppp_instance_proxy.cc (revision 99979)
+++ ppapi/proxy/ppp_instance_proxy.cc (working copy)
@@ -9,6 +9,7 @@
#include "ppapi/c/dev/ppb_fullscreen_dev.h"
#include "ppapi/c/pp_var.h"
#include "ppapi/c/ppb_core.h"
+#include "ppapi/c/ppb_fullscreen.h"
#include "ppapi/c/ppp_instance.h"
#include "ppapi/proxy/host_dispatcher.h"
#include "ppapi/proxy/plugin_dispatcher.h"
@@ -48,15 +49,23 @@
const PP_Rect* position,
const PP_Rect* clip) {
HostDispatcher* dispatcher = HostDispatcher::GetForInstance(instance);
- const PPB_Fullscreen_Dev* fullscreen_interface =
+ const PPB_Fullscreen* fullscreen_interface =
+ static_cast<const PPB_Fullscreen*>(
+ dispatcher->GetLocalInterface(PPB_FULLSCREEN_INTERFACE));
+ DCHECK(fullscreen_interface);
+ const PPB_Fullscreen_Dev* fullscreen_dev_interface =
static_cast<const PPB_Fullscreen_Dev*>(
dispatcher->GetLocalInterface(PPB_FULLSCREEN_DEV_INTERFACE));
- DCHECK(fullscreen_interface);
+ DCHECK(fullscreen_dev_interface);
PP_Bool fullscreen = fullscreen_interface->IsFullscreen(instance);
+ PP_Bool fullscreen_dev = fullscreen_dev_interface->IsFullscreen(instance);
+ PP_Bool fullscreen_either = ((fullscreen == PP_TRUE ||
piman 2011/09/09 01:33:44 You need to send both flags separately if you want
polina 2011/09/26 21:57:00 Done.
+ fullscreen_dev == PP_TRUE) ?
+ PP_TRUE : PP_FALSE);
dispatcher->Send(
new PpapiMsg_PPPInstance_DidChangeView(INTERFACE_ID_PPP_INSTANCE,
instance, *position, *clip,
- fullscreen));
+ fullscreen_either));
}
void DidChangeFocus(PP_Instance instance, PP_Bool has_focus) {

Powered by Google App Engine
This is Rietveld 408576698