| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CONTENT_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ | 5 #ifndef CONTENT_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ |
| 6 #define CONTENT_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ | 6 #define CONTENT_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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 protected: | 124 protected: |
| 125 template<class WebPluginDelegateProxy> friend class DeleteTask; | 125 template<class WebPluginDelegateProxy> friend class DeleteTask; |
| 126 virtual ~WebPluginDelegateProxy(); | 126 virtual ~WebPluginDelegateProxy(); |
| 127 | 127 |
| 128 private: | 128 private: |
| 129 // Message handlers for messages that proxy WebPlugin methods, which | 129 // Message handlers for messages that proxy WebPlugin methods, which |
| 130 // we translate into calls to the real WebPlugin. | 130 // we translate into calls to the real WebPlugin. |
| 131 void OnSetWindow(gfx::PluginWindowHandle window); | 131 void OnSetWindow(gfx::PluginWindowHandle window); |
| 132 #if defined(OS_WIN) | 132 #if defined(OS_WIN) |
| 133 void OnSetWindowlessPumpEvent(HANDLE modal_loop_pump_messages_event); | 133 void OnSetWindowlessPumpEvent(HANDLE modal_loop_pump_messages_event); |
| 134 void OnNotifyIMEStatus(const int input_mode, const gfx::Rect& caret_rect); |
| 134 #endif | 135 #endif |
| 135 void OnCompleteURL(const std::string& url_in, std::string* url_out, | 136 void OnCompleteURL(const std::string& url_in, std::string* url_out, |
| 136 bool* result); | 137 bool* result); |
| 137 void OnHandleURLRequest(const PluginHostMsg_URLRequest_Params& params); | 138 void OnHandleURLRequest(const PluginHostMsg_URLRequest_Params& params); |
| 138 void OnCancelResource(int id); | 139 void OnCancelResource(int id); |
| 139 void OnInvalidateRect(const gfx::Rect& rect); | 140 void OnInvalidateRect(const gfx::Rect& rect); |
| 140 void OnGetWindowScriptNPObject(int route_id, bool* success); | 141 void OnGetWindowScriptNPObject(int route_id, bool* success); |
| 141 void OnGetPluginElement(int route_id, bool* success); | 142 void OnGetPluginElement(int route_id, bool* success); |
| 142 void OnSetCookie(const GURL& url, | 143 void OnSetCookie(const GURL& url, |
| 143 const GURL& first_party_for_cookies, | 144 const GURL& first_party_for_cookies, |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 // 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. |
| 266 gfx::Rect backing_store_painted_; | 267 gfx::Rect backing_store_painted_; |
| 267 | 268 |
| 268 // The url of the main frame hosting the plugin. | 269 // The url of the main frame hosting the plugin. |
| 269 GURL page_url_; | 270 GURL page_url_; |
| 270 | 271 |
| 271 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateProxy); | 272 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateProxy); |
| 272 }; | 273 }; |
| 273 | 274 |
| 274 #endif // CONTENT_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ | 275 #endif // CONTENT_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ |
| OLD | NEW |