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 CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ | 5 #ifndef CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ |
6 #define CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ | 6 #define CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 void OnHandleURLRequest(const PluginHostMsg_URLRequest_Params& params); | 142 void OnHandleURLRequest(const PluginHostMsg_URLRequest_Params& params); |
143 void OnCancelResource(int id); | 143 void OnCancelResource(int id); |
144 void OnInvalidateRect(const gfx::Rect& rect); | 144 void OnInvalidateRect(const gfx::Rect& rect); |
145 void OnGetWindowScriptNPObject(int route_id, bool* success); | 145 void OnGetWindowScriptNPObject(int route_id, bool* success); |
146 void OnGetPluginElement(int route_id, bool* success); | 146 void OnGetPluginElement(int route_id, bool* success); |
147 void OnSetCookie(const GURL& url, | 147 void OnSetCookie(const GURL& url, |
148 const GURL& first_party_for_cookies, | 148 const GURL& first_party_for_cookies, |
149 const std::string& cookie); | 149 const std::string& cookie); |
150 void OnGetCookies(const GURL& url, const GURL& first_party_for_cookies, | 150 void OnGetCookies(const GURL& url, const GURL& first_party_for_cookies, |
151 std::string* cookies); | 151 std::string* cookies); |
152 void OnShowModalHTMLDialog(const GURL& url, int width, int height, | |
153 const std::string& json_arguments, | |
154 std::string* json_retval); | |
155 void OnGetDragData(const NPVariant_Param& event, bool add_data, | |
156 std::vector<NPVariant_Param>* values, bool* success); | |
157 void OnSetDropEffect(const NPVariant_Param& event, int effect, | |
158 bool* success); | |
159 void OnMissingPluginStatus(int status); | 152 void OnMissingPluginStatus(int status); |
160 void OnGetCPBrowsingContext(uint32* context); | |
161 void OnCancelDocumentLoad(); | 153 void OnCancelDocumentLoad(); |
162 void OnInitiateHTTPRangeRequest(const std::string& url, | 154 void OnInitiateHTTPRangeRequest(const std::string& url, |
163 const std::string& range_info, | 155 const std::string& range_info, |
164 int range_request_id); | 156 int range_request_id); |
165 void OnDeferResourceLoading(unsigned long resource_id, bool defer); | 157 void OnDeferResourceLoading(unsigned long resource_id, bool defer); |
166 | 158 |
167 #if defined(OS_MACOSX) | 159 #if defined(OS_MACOSX) |
168 void OnFocusChanged(bool focused); | 160 void OnFocusChanged(bool focused); |
169 void OnStartIme(); | 161 void OnStartIme(); |
170 void OnBindFakePluginWindowHandle(bool opaque); | 162 void OnBindFakePluginWindowHandle(bool opaque); |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 // This lets us know which portion of the backing store has been painted into. | 270 // This lets us know which portion of the backing store has been painted into. |
279 gfx::Rect backing_store_painted_; | 271 gfx::Rect backing_store_painted_; |
280 | 272 |
281 // The url of the main frame hosting the plugin. | 273 // The url of the main frame hosting the plugin. |
282 GURL page_url_; | 274 GURL page_url_; |
283 | 275 |
284 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateProxy); | 276 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateProxy); |
285 }; | 277 }; |
286 | 278 |
287 #endif // CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ | 279 #endif // CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ |
OLD | NEW |