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" |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 virtual int32_t Navigate(PP_Instance instance, | 65 virtual int32_t Navigate(PP_Instance instance, |
66 PP_Resource request_info, | 66 PP_Resource request_info, |
67 const char* target, | 67 const char* target, |
68 PP_Bool from_user_action) OVERRIDE; | 68 PP_Bool from_user_action) OVERRIDE; |
69 virtual int32_t Navigate(PP_Instance instance, | 69 virtual int32_t Navigate(PP_Instance instance, |
70 const URLRequestInfoData& data, | 70 const URLRequestInfoData& data, |
71 const char* target, | 71 const char* target, |
72 PP_Bool from_user_action) OVERRIDE; | 72 PP_Bool from_user_action) OVERRIDE; |
73 virtual PP_Bool IsRectTopmost(PP_Instance instance, | 73 virtual PP_Bool IsRectTopmost(PP_Instance instance, |
74 const PP_Rect* rect) OVERRIDE; | 74 const PP_Rect* rect) OVERRIDE; |
75 virtual PP_Var GetSetting(PP_Instance instance, | |
76 PP_FlashSetting setting) OVERRIDE; | |
77 | 75 |
78 static const ApiID kApiID = API_ID_PPB_FLASH; | 76 static const ApiID kApiID = API_ID_PPB_FLASH; |
79 | 77 |
80 private: | 78 private: |
81 // Message handlers. | 79 // Message handlers. |
82 void OnHostMsgSetInstanceAlwaysOnTop(PP_Instance instance, | 80 void OnHostMsgSetInstanceAlwaysOnTop(PP_Instance instance, |
83 PP_Bool on_top); | 81 PP_Bool on_top); |
84 void OnHostMsgDrawGlyphs(PP_Instance instance, | 82 void OnHostMsgDrawGlyphs(PP_Instance instance, |
85 const PPBFlash_DrawGlyphs_Params& params, | 83 const PPBFlash_DrawGlyphs_Params& params, |
86 PP_Bool* result); | 84 PP_Bool* result); |
87 void OnHostMsgNavigate(PP_Instance instance, | 85 void OnHostMsgNavigate(PP_Instance instance, |
88 const URLRequestInfoData& data, | 86 const URLRequestInfoData& data, |
89 const std::string& target, | 87 const std::string& target, |
90 PP_Bool from_user_action, | 88 PP_Bool from_user_action, |
91 int32_t* result); | 89 int32_t* result); |
92 void OnHostMsgIsRectTopmost(PP_Instance instance, | 90 void OnHostMsgIsRectTopmost(PP_Instance instance, |
93 PP_Rect rect, | 91 PP_Rect rect, |
94 PP_Bool* result); | 92 PP_Bool* result); |
95 void OnHostMsgGetSetting(PP_Instance instance, | |
96 PP_FlashSetting setting, | |
97 SerializedVarReturnValue result); | |
98 void OnHostMsgInvokePrinting(PP_Instance instance); | 93 void OnHostMsgInvokePrinting(PP_Instance instance); |
99 | 94 |
100 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_Proxy); | 95 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_Proxy); |
101 }; | 96 }; |
102 | 97 |
103 } // namespace proxy | 98 } // namespace proxy |
104 } // namespace ppapi | 99 } // namespace ppapi |
105 | 100 |
106 #endif // PPAPI_PROXY_PPB_FLASH_PROXY_H_ | 101 #endif // PPAPI_PROXY_PPB_FLASH_PROXY_H_ |
OLD | NEW |