OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 |
(...skipping 16 matching lines...) Expand all Loading... |
27 class SerializedVarReturnValue; | 27 class SerializedVarReturnValue; |
28 | 28 |
29 class PPB_Flash_Proxy : public InterfaceProxy { | 29 class PPB_Flash_Proxy : public InterfaceProxy { |
30 public: | 30 public: |
31 explicit PPB_Flash_Proxy(Dispatcher* dispatcher); | 31 explicit PPB_Flash_Proxy(Dispatcher* dispatcher); |
32 virtual ~PPB_Flash_Proxy(); | 32 virtual ~PPB_Flash_Proxy(); |
33 | 33 |
34 // Returns the corresponding version of the Flash interface pointer. | 34 // Returns the corresponding version of the Flash interface pointer. |
35 static const PPB_Flash_11* GetInterface11(); | 35 static const PPB_Flash_11* GetInterface11(); |
36 static const PPB_Flash_12_0* GetInterface12_0(); | 36 static const PPB_Flash_12_0* GetInterface12_0(); |
| 37 static const PPB_Flash_12_1* GetInterface12_1(); |
37 | 38 |
38 // InterfaceProxy implementation. | 39 // InterfaceProxy implementation. |
39 virtual bool OnMessageReceived(const IPC::Message& msg); | 40 virtual bool OnMessageReceived(const IPC::Message& msg); |
40 | 41 |
41 private: | 42 private: |
42 // Message handlers. | 43 // Message handlers. |
43 void OnMsgSetInstanceAlwaysOnTop(PP_Instance instance, | 44 void OnMsgSetInstanceAlwaysOnTop(PP_Instance instance, |
44 PP_Bool on_top); | 45 PP_Bool on_top); |
45 void OnMsgDrawGlyphs(const PPBFlash_DrawGlyphs_Params& params, | 46 void OnMsgDrawGlyphs(const PPBFlash_DrawGlyphs_Params& params, |
46 PP_Bool* result); | 47 PP_Bool* result); |
47 void OnMsgGetProxyForURL(PP_Instance instance, | 48 void OnMsgGetProxyForURL(PP_Instance instance, |
48 const std::string& url, | 49 const std::string& url, |
49 SerializedVarReturnValue result); | 50 SerializedVarReturnValue result); |
50 void OnMsgNavigate(PP_Instance instance, | 51 void OnMsgNavigate(PP_Instance instance, |
51 const PPB_URLRequestInfo_Data& data, | 52 const PPB_URLRequestInfo_Data& data, |
52 const std::string& target, | 53 const std::string& target, |
53 PP_Bool from_user_action, | 54 PP_Bool from_user_action, |
54 int32_t* result); | 55 int32_t* result); |
55 void OnMsgRunMessageLoop(PP_Instance instance); | 56 void OnMsgRunMessageLoop(PP_Instance instance); |
56 void OnMsgQuitMessageLoop(PP_Instance instance); | 57 void OnMsgQuitMessageLoop(PP_Instance instance); |
57 void OnMsgGetLocalTimeZoneOffset(PP_Instance instance, PP_Time t, | 58 void OnMsgGetLocalTimeZoneOffset(PP_Instance instance, PP_Time t, |
58 double* result); | 59 double* result); |
| 60 void OnMsgIsRectTopmost(PP_Instance instance, |
| 61 PP_Rect rect, |
| 62 PP_Bool* result); |
59 | 63 |
60 // When this proxy is in the host side, this value caches the interface | 64 // When this proxy is in the host side, this value caches the interface |
61 // pointer so we don't have to retrieve it from the dispatcher each time. | 65 // pointer so we don't have to retrieve it from the dispatcher each time. |
62 // In the plugin, this value is always NULL. | 66 // In the plugin, this value is always NULL. |
63 const PPB_Flash* ppb_flash_impl_; | 67 const PPB_Flash* ppb_flash_impl_; |
64 | 68 |
65 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_Proxy); | 69 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_Proxy); |
66 }; | 70 }; |
67 | 71 |
68 } // namespace proxy | 72 } // namespace proxy |
69 } // namespace ppapi | 73 } // namespace ppapi |
70 | 74 |
71 #endif // PPAPI_PROXY_PPB_FLASH_PROXY_H_ | 75 #endif // PPAPI_PROXY_PPB_FLASH_PROXY_H_ |
OLD | NEW |