OLD | NEW |
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_instance.h" | 10 #include "ppapi/c/pp_instance.h" |
11 #include "ppapi/proxy/interface_proxy.h" | 11 #include "ppapi/proxy/interface_proxy.h" |
12 | 12 |
13 struct PPB_Fullscreen_Dev; | 13 struct PPB_Fullscreen_Dev; |
14 | 14 |
15 namespace pp { | 15 namespace pp { |
16 namespace proxy { | 16 namespace proxy { |
17 | 17 |
18 class PPB_Fullscreen_Proxy : public InterfaceProxy { | 18 class PPB_Fullscreen_Proxy : public InterfaceProxy { |
19 public: | 19 public: |
20 PPB_Fullscreen_Proxy(Dispatcher* dispatcher, const void* target_interface); | 20 PPB_Fullscreen_Proxy(Dispatcher* dispatcher, const void* target_interface); |
21 virtual ~PPB_Fullscreen_Proxy(); | 21 virtual ~PPB_Fullscreen_Proxy(); |
22 | 22 |
23 const PPB_Fullscreen_Dev* ppb_fullscreen_target() const { | 23 const PPB_Fullscreen_Dev* ppb_fullscreen_target() const { |
24 return reinterpret_cast<const PPB_Fullscreen_Dev*>(target_interface()); | 24 return reinterpret_cast<const PPB_Fullscreen_Dev*>(target_interface()); |
25 } | 25 } |
26 | 26 |
27 // InterfaceProxy implementation. | 27 // InterfaceProxy implementation. |
28 virtual const void* GetSourceInterface() const; | 28 virtual const void* GetSourceInterface() const; |
29 virtual InterfaceID GetInterfaceId() const; | 29 virtual InterfaceID GetInterfaceId() const; |
30 virtual void OnMessageReceived(const IPC::Message& msg); | 30 virtual bool OnMessageReceived(const IPC::Message& msg); |
31 | 31 |
32 private: | 32 private: |
33 // Message handlers. | 33 // Message handlers. |
34 void OnMsgIsFullscreen(PP_Instance instance, | 34 void OnMsgIsFullscreen(PP_Instance instance, |
35 PP_Bool* result); | 35 PP_Bool* result); |
36 void OnMsgSetFullscreen(PP_Instance instance, | 36 void OnMsgSetFullscreen(PP_Instance instance, |
37 PP_Bool fullscreen, | 37 PP_Bool fullscreen, |
38 PP_Bool* result); | 38 PP_Bool* result); |
39 }; | 39 }; |
40 | 40 |
41 } // namespace proxy | 41 } // namespace proxy |
42 } // namespace pp | 42 } // namespace pp |
43 | 43 |
44 #endif // PPAPI_PPB_FULLSCREEN_PROXY_H_ | 44 #endif // PPAPI_PPB_FULLSCREEN_PROXY_H_ |
OLD | NEW |