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 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "ppapi/c/pp_bool.h" | 11 #include "ppapi/c/pp_bool.h" |
12 #include "ppapi/c/pp_instance.h" | 12 #include "ppapi/c/pp_instance.h" |
13 #include "ppapi/c/pp_module.h" | 13 #include "ppapi/c/pp_module.h" |
14 #include "ppapi/c/pp_time.h" | |
15 #include "ppapi/c/private/ppb_flash.h" | 14 #include "ppapi/c/private/ppb_flash.h" |
16 #include "ppapi/proxy/interface_proxy.h" | 15 #include "ppapi/proxy/interface_proxy.h" |
17 #include "ppapi/proxy/serialized_var.h" | 16 #include "ppapi/proxy/serialized_var.h" |
18 #include "ppapi/shared_impl/host_resource.h" | 17 #include "ppapi/shared_impl/host_resource.h" |
19 #include "ppapi/thunk/ppb_flash_api.h" | 18 #include "ppapi/thunk/ppb_flash_api.h" |
20 | 19 |
21 struct PPB_Flash_Print_1_0; | 20 struct PPB_Flash_Print_1_0; |
22 | 21 |
23 namespace ppapi { | 22 namespace ppapi { |
24 | 23 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 const uint16_t glyph_indices[], | 63 const uint16_t glyph_indices[], |
65 const PP_Point glyph_advances[]) OVERRIDE; | 64 const PP_Point glyph_advances[]) OVERRIDE; |
66 virtual int32_t Navigate(PP_Instance instance, | 65 virtual int32_t Navigate(PP_Instance instance, |
67 PP_Resource request_info, | 66 PP_Resource request_info, |
68 const char* target, | 67 const char* target, |
69 PP_Bool from_user_action) OVERRIDE; | 68 PP_Bool from_user_action) OVERRIDE; |
70 virtual int32_t Navigate(PP_Instance instance, | 69 virtual int32_t Navigate(PP_Instance instance, |
71 const URLRequestInfoData& data, | 70 const URLRequestInfoData& data, |
72 const char* target, | 71 const char* target, |
73 PP_Bool from_user_action) OVERRIDE; | 72 PP_Bool from_user_action) OVERRIDE; |
74 virtual double GetLocalTimeZoneOffset(PP_Instance instance, | |
75 PP_Time t) OVERRIDE; | |
76 virtual PP_Bool IsRectTopmost(PP_Instance instance, | 73 virtual PP_Bool IsRectTopmost(PP_Instance instance, |
77 const PP_Rect* rect) OVERRIDE; | 74 const PP_Rect* rect) OVERRIDE; |
78 virtual PP_Var GetSetting(PP_Instance instance, | 75 virtual PP_Var GetSetting(PP_Instance instance, |
79 PP_FlashSetting setting) OVERRIDE; | 76 PP_FlashSetting setting) OVERRIDE; |
80 | 77 |
81 static const ApiID kApiID = API_ID_PPB_FLASH; | 78 static const ApiID kApiID = API_ID_PPB_FLASH; |
82 | 79 |
83 private: | 80 private: |
84 // Message handlers. | 81 // Message handlers. |
85 void OnHostMsgSetInstanceAlwaysOnTop(PP_Instance instance, | 82 void OnHostMsgSetInstanceAlwaysOnTop(PP_Instance instance, |
86 PP_Bool on_top); | 83 PP_Bool on_top); |
87 void OnHostMsgDrawGlyphs(PP_Instance instance, | 84 void OnHostMsgDrawGlyphs(PP_Instance instance, |
88 const PPBFlash_DrawGlyphs_Params& params, | 85 const PPBFlash_DrawGlyphs_Params& params, |
89 PP_Bool* result); | 86 PP_Bool* result); |
90 void OnHostMsgNavigate(PP_Instance instance, | 87 void OnHostMsgNavigate(PP_Instance instance, |
91 const URLRequestInfoData& data, | 88 const URLRequestInfoData& data, |
92 const std::string& target, | 89 const std::string& target, |
93 PP_Bool from_user_action, | 90 PP_Bool from_user_action, |
94 int32_t* result); | 91 int32_t* result); |
95 void OnHostMsgGetLocalTimeZoneOffset(PP_Instance instance, PP_Time t, | |
96 double* result); | |
97 void OnHostMsgIsRectTopmost(PP_Instance instance, | 92 void OnHostMsgIsRectTopmost(PP_Instance instance, |
98 PP_Rect rect, | 93 PP_Rect rect, |
99 PP_Bool* result); | 94 PP_Bool* result); |
100 void OnHostMsgGetSetting(PP_Instance instance, | 95 void OnHostMsgGetSetting(PP_Instance instance, |
101 PP_FlashSetting setting, | 96 PP_FlashSetting setting, |
102 SerializedVarReturnValue result); | 97 SerializedVarReturnValue result); |
103 void OnHostMsgInvokePrinting(PP_Instance instance); | 98 void OnHostMsgInvokePrinting(PP_Instance instance); |
104 | 99 |
105 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_Proxy); | 100 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_Proxy); |
106 }; | 101 }; |
107 | 102 |
108 } // namespace proxy | 103 } // namespace proxy |
109 } // namespace ppapi | 104 } // namespace ppapi |
110 | 105 |
111 #endif // PPAPI_PROXY_PPB_FLASH_PROXY_H_ | 106 #endif // PPAPI_PROXY_PPB_FLASH_PROXY_H_ |
OLD | NEW |