| 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_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_ |
| OLD | NEW |