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

Unified Diff: ppapi/proxy/ppp_instance_proxy_unittest.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
« no previous file with comments | « ppapi/proxy/ppp_instance_proxy.cc ('k') | ppapi/tests/test_case.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/ppp_instance_proxy_unittest.cc
===================================================================
--- ppapi/proxy/ppp_instance_proxy_unittest.cc (revision 102885)
+++ ppapi/proxy/ppp_instance_proxy_unittest.cc (working copy)
@@ -4,6 +4,7 @@
#include "base/synchronization/waitable_event.h"
#include "ipc/ipc_message_utils.h"
+#include "ppapi/c/dev/ppb_fullscreen_dev.h"
#include "ppapi/c/pp_var.h"
#include "ppapi/c/ppb_core.h"
#include "ppapi/c/ppb_url_loader.h"
@@ -89,11 +90,12 @@
&HandleDocumentLoad
};
-// PPP_Instance_Proxy::DidChangeView relies on PPB_Fullscreen being
+// PPP_Instance_Proxy::DidChangeView relies on PPB_(Flash)Fullscreen being
// available with a valid implementation of IsFullScreen, so we mock it.
PP_Bool IsFullscreen(PP_Instance instance) {
return PP_FALSE;
}
+PPB_Fullscreen_Dev ppb_fullscreen = { &IsFullscreen };
PPB_FlashFullscreen ppb_flash_fullscreen = { &IsFullscreen };
} // namespace
@@ -109,6 +111,8 @@
plugin().RegisterTestInterface(PPP_INSTANCE_INTERFACE_1_0, &ppp_instance_1_0);
host().RegisterTestInterface(PPB_FLASHFULLSCREEN_INTERFACE,
&ppb_flash_fullscreen);
+ host().RegisterTestInterface(PPB_FULLSCREEN_DEV_INTERFACE,
+ &ppb_fullscreen);
// Grab the host-side proxy for the 1.0 interface.
const PPP_Instance_1_0* ppp_instance = static_cast<const PPP_Instance_1_0*>(
@@ -176,4 +180,3 @@
} // namespace proxy
} // namespace ppapi
-
« no previous file with comments | « ppapi/proxy/ppp_instance_proxy.cc ('k') | ppapi/tests/test_case.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698