| 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_FLASH_PROXY_H_ | 5 #ifndef PPAPI_PPB_FLASH_PROXY_H_ |
| 6 #define PPAPI_PPB_FLASH_PROXY_H_ | 6 #define PPAPI_PPB_FLASH_PROXY_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "ipc/ipc_platform_file.h" | 10 #include "ipc/ipc_platform_file.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 struct PPBFlash_DrawGlyphs_Params; | 21 struct PPBFlash_DrawGlyphs_Params; |
| 22 struct SerializedDirEntry; | 22 struct SerializedDirEntry; |
| 23 class SerializedVar; | 23 class SerializedVar; |
| 24 class SerializedVarReturnValue; | 24 class SerializedVarReturnValue; |
| 25 | 25 |
| 26 class PPB_Flash_Proxy : public InterfaceProxy { | 26 class PPB_Flash_Proxy : public InterfaceProxy { |
| 27 public: | 27 public: |
| 28 PPB_Flash_Proxy(Dispatcher* dispatcher, const void* target_interface); | 28 PPB_Flash_Proxy(Dispatcher* dispatcher, const void* target_interface); |
| 29 virtual ~PPB_Flash_Proxy(); | 29 virtual ~PPB_Flash_Proxy(); |
| 30 | 30 |
| 31 static const Info* GetInfo(); |
| 32 |
| 31 const PPB_Flash* ppb_flash_target() const { | 33 const PPB_Flash* ppb_flash_target() const { |
| 32 return static_cast<const PPB_Flash*>(target_interface()); | 34 return static_cast<const PPB_Flash*>(target_interface()); |
| 33 } | 35 } |
| 34 | 36 |
| 35 // InterfaceProxy implementation. | 37 // InterfaceProxy implementation. |
| 36 virtual const void* GetSourceInterface() const; | |
| 37 virtual InterfaceID GetInterfaceId() const; | |
| 38 virtual bool OnMessageReceived(const IPC::Message& msg); | 38 virtual bool OnMessageReceived(const IPC::Message& msg); |
| 39 | 39 |
| 40 private: | 40 private: |
| 41 // Message handlers. | 41 // Message handlers. |
| 42 void OnMsgSetInstanceAlwaysOnTop(PP_Instance instance, | 42 void OnMsgSetInstanceAlwaysOnTop(PP_Instance instance, |
| 43 PP_Bool on_top); | 43 PP_Bool on_top); |
| 44 void OnMsgDrawGlyphs(const pp::proxy::PPBFlash_DrawGlyphs_Params& params, | 44 void OnMsgDrawGlyphs(const pp::proxy::PPBFlash_DrawGlyphs_Params& params, |
| 45 PP_Bool* result); | 45 PP_Bool* result); |
| 46 void OnMsgGetProxyForURL(PP_Instance instance, | 46 void OnMsgGetProxyForURL(PP_Instance instance, |
| 47 const std::string& url, | 47 const std::string& url, |
| (...skipping 26 matching lines...) Expand all Loading... |
| 74 void OnMsgNavigateToURL(PP_Instance instance, | 74 void OnMsgNavigateToURL(PP_Instance instance, |
| 75 const std::string& url, | 75 const std::string& url, |
| 76 const std::string& target, | 76 const std::string& target, |
| 77 PP_Bool* result); | 77 PP_Bool* result); |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 } // namespace proxy | 80 } // namespace proxy |
| 81 } // namespace pp | 81 } // namespace pp |
| 82 | 82 |
| 83 #endif // PPAPI_PPB_FLASH_PROXY_H_ | 83 #endif // PPAPI_PPB_FLASH_PROXY_H_ |
| OLD | NEW |