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

Unified Diff: ppapi/proxy/ppb_instance_proxy.cc

Issue 11421066: Refactor PPB_Flash_Fullscreen to the new resource model. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 1 month 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_instance_proxy.h ('k') | ppapi/proxy/ppp_instance_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/ppb_instance_proxy.cc
diff --git a/ppapi/proxy/ppb_instance_proxy.cc b/ppapi/proxy/ppb_instance_proxy.cc
index 51196f70d6973d11ab0004cfba690ad1010daad7..d62b9886a0950fbb70f76763b5af7732bcf457f4 100644
--- a/ppapi/proxy/ppb_instance_proxy.cc
+++ b/ppapi/proxy/ppb_instance_proxy.cc
@@ -17,6 +17,7 @@
#include "ppapi/proxy/content_decryptor_private_serializer.h"
#include "ppapi/proxy/enter_proxy.h"
#include "ppapi/proxy/flash_clipboard_resource.h"
+#include "ppapi/proxy/flash_fullscreen_resource.h"
#include "ppapi/proxy/flash_resource.h"
#include "ppapi/proxy/gamepad_resource.h"
#include "ppapi/proxy/host_dispatcher.h"
@@ -227,6 +228,13 @@ const ViewData* PPB_Instance_Proxy::GetViewData(PP_Instance instance) {
return &data->view;
}
+PP_Bool PPB_Instance_Proxy::FlashIsFullscreen(PP_Instance instance) {
+ // This function is only used for proxying in the renderer process. It is not
+ // implemented in the plugin process.
+ NOTREACHED();
+ return PP_FALSE;
+}
+
PP_Var PPB_Instance_Proxy::GetWindowObject(PP_Instance instance) {
ReceiveSerializedVarReturnValue result;
dispatcher()->Send(new PpapiHostMsg_PPBInstance_GetWindowObject(
@@ -350,15 +358,19 @@ Resource* PPB_Instance_Proxy::GetSingletonResource(PP_Instance instance,
break;
// Flash resources aren't needed for NaCl.
#if !defined(OS_NACL) && !defined(NACL_WIN64)
- case FLASH_SINGLETON_ID:
- new_singleton = new FlashResource(connection, instance);
- break;
case FLASH_CLIPBOARD_SINGLETON_ID:
new_singleton = new FlashClipboardResource(connection, instance);
break;
-#else
+ case FLASH_FULLSCREEN_SINGLETON_ID:
+ new_singleton = new FlashFullscreenResource(connection, instance);
+ break;
case FLASH_SINGLETON_ID:
+ new_singleton = new FlashResource(connection, instance);
+ break;
+#else
case FLASH_CLIPBOARD_SINGLETON_ID:
+ case FLASH_FULLSCREEN_SINGLETON_ID:
+ case FLASH_SINGLETON_ID:
NOTREACHED();
break;
#endif // !defined(OS_NACL) && !defined(NACL_WIN64)
« no previous file with comments | « ppapi/proxy/ppb_instance_proxy.h ('k') | ppapi/proxy/ppp_instance_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698