| 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 CONTENT_RENDERER_NPAPI_WEBPLUGIN_DELEGATE_PROXY_H_ | 5 #ifndef CONTENT_RENDERER_NPAPI_WEBPLUGIN_DELEGATE_PROXY_H_ |
| 6 #define CONTENT_RENDERER_NPAPI_WEBPLUGIN_DELEGATE_PROXY_H_ | 6 #define CONTENT_RENDERER_NPAPI_WEBPLUGIN_DELEGATE_PROXY_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 bool Initialize(const GURL& url, | 61 bool Initialize(const GURL& url, |
| 62 const std::vector<std::string>& arg_names, | 62 const std::vector<std::string>& arg_names, |
| 63 const std::vector<std::string>& arg_values, | 63 const std::vector<std::string>& arg_values, |
| 64 bool load_manually) override; | 64 bool load_manually) override; |
| 65 void UpdateGeometry(const gfx::Rect& window_rect, | 65 void UpdateGeometry(const gfx::Rect& window_rect, |
| 66 const gfx::Rect& clip_rect) override; | 66 const gfx::Rect& clip_rect) override; |
| 67 void Paint(SkCanvas* canvas, const gfx::Rect& rect) override; | 67 void Paint(SkCanvas* canvas, const gfx::Rect& rect) override; |
| 68 NPObject* GetPluginScriptableObject() override; | 68 NPObject* GetPluginScriptableObject() override; |
| 69 struct _NPP* GetPluginNPP() override; | 69 struct _NPP* GetPluginNPP() override; |
| 70 bool GetFormValue(base::string16* value) override; | 70 bool GetFormValue(base::string16* value) override; |
| 71 void DidFinishLoadWithReason(const GURL& url, | |
| 72 NPReason reason, | |
| 73 int notify_id) override; | |
| 74 void SetFocus(bool focused) override; | 71 void SetFocus(bool focused) override; |
| 75 bool HandleInputEvent(const blink::WebInputEvent& event, | 72 bool HandleInputEvent(const blink::WebInputEvent& event, |
| 76 WebCursor::CursorInfo* cursor) override; | 73 WebCursor::CursorInfo* cursor) override; |
| 77 int GetProcessId() override; | 74 int GetProcessId() override; |
| 78 | 75 |
| 79 // Informs the plugin that its containing content view has gained or lost | 76 // Informs the plugin that its containing content view has gained or lost |
| 80 // first responder status. | 77 // first responder status. |
| 81 virtual void SetContentAreaFocus(bool has_focus); | 78 virtual void SetContentAreaFocus(bool has_focus); |
| 82 #if defined(OS_WIN) | 79 #if defined(OS_WIN) |
| 83 // Informs the plugin that plugin IME has updated its status. | 80 // Informs the plugin that plugin IME has updated its status. |
| (...skipping 23 matching lines...) Expand all Loading... |
| 107 | 104 |
| 108 // IPC::Listener implementation: | 105 // IPC::Listener implementation: |
| 109 bool OnMessageReceived(const IPC::Message& msg) override; | 106 bool OnMessageReceived(const IPC::Message& msg) override; |
| 110 void OnChannelError() override; | 107 void OnChannelError() override; |
| 111 | 108 |
| 112 // IPC::Sender implementation: | 109 // IPC::Sender implementation: |
| 113 bool Send(IPC::Message* msg) override; | 110 bool Send(IPC::Message* msg) override; |
| 114 | 111 |
| 115 void SendJavaScriptStream(const GURL& url, | 112 void SendJavaScriptStream(const GURL& url, |
| 116 const std::string& result, | 113 const std::string& result, |
| 117 bool success, | 114 bool success) override; |
| 118 int notify_id) override; | |
| 119 | 115 |
| 120 void DidReceiveManualResponse(const GURL& url, | 116 void DidReceiveManualResponse(const GURL& url, |
| 121 const std::string& mime_type, | 117 const std::string& mime_type, |
| 122 const std::string& headers, | 118 const std::string& headers, |
| 123 uint32 expected_length, | 119 uint32 expected_length, |
| 124 uint32 last_modified) override; | 120 uint32 last_modified) override; |
| 125 void DidReceiveManualData(const char* buffer, int length) override; | 121 void DidReceiveManualData(const char* buffer, int length) override; |
| 126 void DidFinishManualLoading() override; | 122 void DidFinishManualLoading() override; |
| 127 void DidManualLoadFail() override; | 123 void DidManualLoadFail() override; |
| 128 WebPluginResourceClient* CreateResourceClient(unsigned long resource_id, | 124 WebPluginResourceClient* CreateResourceClient(unsigned long resource_id, |
| 129 const GURL& url, | 125 const GURL& url) override; |
| 130 int notify_id) override; | |
| 131 WebPluginResourceClient* CreateSeekableResourceClient( | 126 WebPluginResourceClient* CreateSeekableResourceClient( |
| 132 unsigned long resource_id, | 127 unsigned long resource_id, |
| 133 int range_request_id) override; | 128 int range_request_id) override; |
| 134 void FetchURL(unsigned long resource_id, | 129 void FetchURL(unsigned long resource_id, |
| 135 int notify_id, | |
| 136 const GURL& url, | 130 const GURL& url, |
| 137 const GURL& first_party_for_cookies, | 131 const GURL& first_party_for_cookies, |
| 138 const std::string& method, | 132 const std::string& method, |
| 139 const char* buf, | 133 const char* buf, |
| 140 unsigned int len, | 134 unsigned int len, |
| 141 const Referrer& referrer, | 135 const Referrer& referrer, |
| 142 bool notify_redirects, | 136 bool notify_redirects, |
| 143 bool is_plugin_src_load, | 137 bool is_plugin_src_load, |
| 144 int origin_pid, | 138 int origin_pid, |
| 145 int render_frame_id, | 139 int render_frame_id, |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 | 304 |
| 311 // The url of the main frame hosting the plugin. | 305 // The url of the main frame hosting the plugin. |
| 312 GURL page_url_; | 306 GURL page_url_; |
| 313 | 307 |
| 314 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateProxy); | 308 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateProxy); |
| 315 }; | 309 }; |
| 316 | 310 |
| 317 } // namespace content | 311 } // namespace content |
| 318 | 312 |
| 319 #endif // CONTENT_RENDERER_NPAPI_WEBPLUGIN_DELEGATE_PROXY_H_ | 313 #endif // CONTENT_RENDERER_NPAPI_WEBPLUGIN_DELEGATE_PROXY_H_ |
| OLD | NEW |