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