| 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_CHILD_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ | 5 #ifndef CONTENT_CHILD_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ |
| 6 #define CONTENT_CHILD_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ | 6 #define CONTENT_CHILD_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 void PluginDestroyed() override; | 85 void PluginDestroyed() override; |
| 86 void UpdateGeometry(const gfx::Rect& window_rect, | 86 void UpdateGeometry(const gfx::Rect& window_rect, |
| 87 const gfx::Rect& clip_rect) override; | 87 const gfx::Rect& clip_rect) override; |
| 88 void Paint(SkCanvas* canvas, const gfx::Rect& rect) override; | 88 void Paint(SkCanvas* canvas, const gfx::Rect& rect) override; |
| 89 void SetFocus(bool focused) override; | 89 void SetFocus(bool focused) override; |
| 90 bool HandleInputEvent(const blink::WebInputEvent& event, | 90 bool HandleInputEvent(const blink::WebInputEvent& event, |
| 91 WebCursor::CursorInfo* cursor_info) override; | 91 WebCursor::CursorInfo* cursor_info) override; |
| 92 NPObject* GetPluginScriptableObject() override; | 92 NPObject* GetPluginScriptableObject() override; |
| 93 NPP GetPluginNPP() override; | 93 NPP GetPluginNPP() override; |
| 94 bool GetFormValue(base::string16* value) override; | 94 bool GetFormValue(base::string16* value) override; |
| 95 void DidFinishLoadWithReason(const GURL& url, | |
| 96 NPReason reason, | |
| 97 int notify_id) override; | |
| 98 int GetProcessId() override; | 95 int GetProcessId() override; |
| 99 void SendJavaScriptStream(const GURL& url, | |
| 100 const std::string& result, | |
| 101 bool success, | |
| 102 int notify_id) override; | |
| 103 void DidReceiveManualResponse(const GURL& url, | |
| 104 const std::string& mime_type, | |
| 105 const std::string& headers, | |
| 106 uint32 expected_length, | |
| 107 uint32 last_modified) override; | |
| 108 void DidReceiveManualData(const char* buffer, int length) override; | |
| 109 void DidFinishManualLoading() override; | |
| 110 void DidManualLoadFail() override; | |
| 111 WebPluginResourceClient* CreateResourceClient(unsigned long resource_id, | |
| 112 const GURL& url, | |
| 113 int notify_id) override; | |
| 114 WebPluginResourceClient* CreateSeekableResourceClient( | |
| 115 unsigned long resource_id, | |
| 116 int range_request_id) override; | |
| 117 void FetchURL(unsigned long resource_id, | |
| 118 int notify_id, | |
| 119 const GURL& url, | |
| 120 const GURL& first_party_for_cookies, | |
| 121 const std::string& method, | |
| 122 const char* buf, | |
| 123 unsigned int len, | |
| 124 const Referrer& referrer, | |
| 125 bool notify_redirects, | |
| 126 bool is_plugin_src_load, | |
| 127 int origin_pid, | |
| 128 int render_frame_id, | |
| 129 int render_view_id) override; | |
| 130 // End of WebPluginDelegate implementation. | 96 // End of WebPluginDelegate implementation. |
| 131 | 97 |
| 132 gfx::PluginWindowHandle windowed_handle() const { return windowed_handle_; } | 98 gfx::PluginWindowHandle windowed_handle() const { return windowed_handle_; } |
| 133 bool IsWindowless() const { return windowless_; } | 99 bool IsWindowless() const { return windowless_; } |
| 134 PluginInstance* instance() { return instance_.get(); } | 100 PluginInstance* instance() { return instance_.get(); } |
| 135 gfx::Rect GetRect() const { return window_rect_; } | 101 gfx::Rect GetRect() const { return window_rect_; } |
| 136 gfx::Rect GetClipRect() const { return clip_rect_; } | 102 gfx::Rect GetClipRect() const { return clip_rect_; } |
| 137 | 103 |
| 138 // Returns the path for the library implementing this plugin. | 104 // Returns the path for the library implementing this plugin. |
| 139 base::FilePath GetPluginPath(); | 105 base::FilePath GetPluginPath(); |
| (...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 471 // asynchronously. | 437 // asynchronously. |
| 472 base::WeakPtrFactory<WebPluginDelegateImpl> user_gesture_msg_factory_; | 438 base::WeakPtrFactory<WebPluginDelegateImpl> user_gesture_msg_factory_; |
| 473 #endif | 439 #endif |
| 474 | 440 |
| 475 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateImpl); | 441 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateImpl); |
| 476 }; | 442 }; |
| 477 | 443 |
| 478 } // namespace content | 444 } // namespace content |
| 479 | 445 |
| 480 #endif // CONTENT_CHILD_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ | 446 #endif // CONTENT_CHILD_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ |
| OLD | NEW |