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

Side by Side Diff: ppapi/proxy/ppb_fullscreen_proxy.h

Issue 6625034: Clarify/fix fullscreen semantics, and add GetScreenSize (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix review comments Created 9 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/ppapi_messages_internal.h ('k') | ppapi/proxy/ppb_fullscreen_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PPAPI_PPB_FULLSCREEN_PROXY_H_ 5 #ifndef PPAPI_PPB_FULLSCREEN_PROXY_H_
6 #define PPAPI_PPB_FULLSCREEN_PROXY_H_ 6 #define PPAPI_PPB_FULLSCREEN_PROXY_H_
7 7
8 #include "ppapi/c/pp_completion_callback.h" 8 #include "ppapi/c/pp_completion_callback.h"
9 #include "ppapi/c/pp_bool.h" 9 #include "ppapi/c/pp_bool.h"
10 #include "ppapi/c/pp_size.h"
10 #include "ppapi/c/pp_instance.h" 11 #include "ppapi/c/pp_instance.h"
11 #include "ppapi/proxy/interface_proxy.h" 12 #include "ppapi/proxy/interface_proxy.h"
12 13
13 struct PPB_Fullscreen_Dev; 14 struct PPB_Fullscreen_Dev;
14 15
15 namespace pp { 16 namespace pp {
16 namespace proxy { 17 namespace proxy {
17 18
18 class PPB_Fullscreen_Proxy : public InterfaceProxy { 19 class PPB_Fullscreen_Proxy : public InterfaceProxy {
19 public: 20 public:
20 PPB_Fullscreen_Proxy(Dispatcher* dispatcher, const void* target_interface); 21 PPB_Fullscreen_Proxy(Dispatcher* dispatcher, const void* target_interface);
21 virtual ~PPB_Fullscreen_Proxy(); 22 virtual ~PPB_Fullscreen_Proxy();
22 23
23 static const Info* GetInfo(); 24 static const Info* GetInfo();
24 25
25 const PPB_Fullscreen_Dev* ppb_fullscreen_target() const { 26 const PPB_Fullscreen_Dev* ppb_fullscreen_target() const {
26 return reinterpret_cast<const PPB_Fullscreen_Dev*>(target_interface()); 27 return reinterpret_cast<const PPB_Fullscreen_Dev*>(target_interface());
27 } 28 }
28 29
29 // InterfaceProxy implementation. 30 // InterfaceProxy implementation.
30 virtual bool OnMessageReceived(const IPC::Message& msg); 31 virtual bool OnMessageReceived(const IPC::Message& msg);
31 32
32 private: 33 private:
33 // Message handlers. 34 // Message handlers.
34 void OnMsgIsFullscreen(PP_Instance instance, 35 void OnMsgIsFullscreen(PP_Instance instance,
35 PP_Bool* result); 36 PP_Bool* result);
36 void OnMsgSetFullscreen(PP_Instance instance, 37 void OnMsgSetFullscreen(PP_Instance instance,
37 PP_Bool fullscreen, 38 PP_Bool fullscreen,
38 PP_Bool* result); 39 PP_Bool* result);
40 void OnMsgGetScreenSize(PP_Instance instance,
41 PP_Bool* result,
42 PP_Size* size);
39 }; 43 };
40 44
41 } // namespace proxy 45 } // namespace proxy
42 } // namespace pp 46 } // namespace pp
43 47
44 #endif // PPAPI_PPB_FULLSCREEN_PROXY_H_ 48 #endif // PPAPI_PPB_FULLSCREEN_PROXY_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppapi_messages_internal.h ('k') | ppapi/proxy/ppb_fullscreen_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698