Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_PROXY_PPB_FLASH_PROXY_H_ | 5 #ifndef PPAPI_PROXY_PPB_FLASH_PROXY_H_ |
| 6 #define PPAPI_PROXY_PPB_FLASH_PROXY_H_ | 6 #define PPAPI_PROXY_PPB_FLASH_PROXY_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "ipc/ipc_platform_file.h" | 11 #include "ipc/ipc_platform_file.h" |
| 12 #include "ppapi/c/pp_bool.h" | 12 #include "ppapi/c/pp_bool.h" |
| 13 #include "ppapi/c/pp_instance.h" | 13 #include "ppapi/c/pp_instance.h" |
| 14 #include "ppapi/c/pp_module.h" | 14 #include "ppapi/c/pp_module.h" |
| 15 #include "ppapi/c/pp_time.h" | 15 #include "ppapi/c/pp_time.h" |
| 16 #include "ppapi/c/private/ppb_flash.h" | |
| 16 #include "ppapi/proxy/interface_proxy.h" | 17 #include "ppapi/proxy/interface_proxy.h" |
| 17 #include "ppapi/shared_impl/host_resource.h" | 18 #include "ppapi/shared_impl/host_resource.h" |
| 18 | 19 |
| 19 struct PPB_Flash; | |
| 20 struct PPB_Flash_11; | |
| 21 | |
| 22 namespace ppapi { | 20 namespace ppapi { |
| 23 | 21 |
| 24 struct PPB_URLRequestInfo_Data; | 22 struct PPB_URLRequestInfo_Data; |
| 25 | 23 |
| 26 namespace proxy { | 24 namespace proxy { |
| 27 | 25 |
| 28 struct PPBFlash_DrawGlyphs_Params; | 26 struct PPBFlash_DrawGlyphs_Params; |
| 29 class SerializedVarReturnValue; | 27 class SerializedVarReturnValue; |
| 30 | 28 |
| 31 class PPB_Flash_Proxy : public InterfaceProxy { | 29 class PPB_Flash_Proxy : public InterfaceProxy { |
| 32 public: | 30 public: |
| 33 explicit PPB_Flash_Proxy(Dispatcher* dispatcher); | 31 explicit PPB_Flash_Proxy(Dispatcher* dispatcher); |
| 34 virtual ~PPB_Flash_Proxy(); | 32 virtual ~PPB_Flash_Proxy(); |
| 35 | 33 |
| 36 // Returns the corresponding version of the Flash interface pointer. | 34 // Returns the corresponding version of the Flash interface pointer. |
| 37 static const PPB_Flash_11* GetInterface11(); | 35 static const PPB_Flash_11* GetInterface11(); |
| 38 static const PPB_Flash* GetInterface12(); | 36 static const PPB_Flash_12_0* GetInterface12(); |
|
noelallen1
2011/12/20 22:33:32
_12_0 vs _11?
| |
| 39 | 37 |
| 40 // InterfaceProxy implementation. | 38 // InterfaceProxy implementation. |
| 41 virtual bool OnMessageReceived(const IPC::Message& msg); | 39 virtual bool OnMessageReceived(const IPC::Message& msg); |
| 42 | 40 |
| 43 private: | 41 private: |
| 44 // Message handlers. | 42 // Message handlers. |
| 45 void OnMsgSetInstanceAlwaysOnTop(PP_Instance instance, | 43 void OnMsgSetInstanceAlwaysOnTop(PP_Instance instance, |
| 46 PP_Bool on_top); | 44 PP_Bool on_top); |
| 47 void OnMsgDrawGlyphs(const PPBFlash_DrawGlyphs_Params& params, | 45 void OnMsgDrawGlyphs(const PPBFlash_DrawGlyphs_Params& params, |
| 48 PP_Bool* result); | 46 PP_Bool* result); |
| (...skipping 15 matching lines...) Expand all Loading... | |
| 64 // In the plugin, this value is always NULL. | 62 // In the plugin, this value is always NULL. |
| 65 const PPB_Flash* ppb_flash_impl_; | 63 const PPB_Flash* ppb_flash_impl_; |
| 66 | 64 |
| 67 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_Proxy); | 65 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_Proxy); |
| 68 }; | 66 }; |
| 69 | 67 |
| 70 } // namespace proxy | 68 } // namespace proxy |
| 71 } // namespace ppapi | 69 } // namespace ppapi |
| 72 | 70 |
| 73 #endif // PPAPI_PROXY_PPB_FLASH_PROXY_H_ | 71 #endif // PPAPI_PROXY_PPB_FLASH_PROXY_H_ |
| OLD | NEW |