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_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ | 5 #ifndef CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ |
6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ | 6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ |
7 | 7 |
8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPlugin.h" | 8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPlugin.h" |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/sequenced_task_runner_helpers.h" | 11 #include "base/sequenced_task_runner_helpers.h" |
12 #if defined(OS_WIN) | 12 #if defined(OS_WIN) |
13 #include "base/shared_memory.h" | 13 #include "base/shared_memory.h" |
14 #endif | 14 #endif |
15 #include "content/renderer/browser_plugin/browser_plugin_backing_store.h" | 15 #include "content/renderer/browser_plugin/browser_plugin_backing_store.h" |
16 #include "content/renderer/browser_plugin/browser_plugin_bindings.h" | 16 #include "content/renderer/browser_plugin/browser_plugin_bindings.h" |
17 #include "content/renderer/render_view_impl.h" | 17 #include "content/renderer/render_view_impl.h" |
| 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDragStatus.h" |
18 | 19 |
19 struct BrowserPluginHostMsg_ResizeGuest_Params; | 20 struct BrowserPluginHostMsg_ResizeGuest_Params; |
20 struct BrowserPluginMsg_DidNavigate_Params; | 21 struct BrowserPluginMsg_DidNavigate_Params; |
21 struct BrowserPluginMsg_UpdateRect_Params; | 22 struct BrowserPluginMsg_UpdateRect_Params; |
22 | 23 |
23 namespace content { | 24 namespace content { |
24 | 25 |
25 class BrowserPluginManager; | 26 class BrowserPluginManager; |
26 class MockBrowserPlugin; | 27 class MockBrowserPlugin; |
27 | 28 |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 const WebKit::WebRect& frame_rect, | 115 const WebKit::WebRect& frame_rect, |
115 const WebKit::WebRect& clip_rect, | 116 const WebKit::WebRect& clip_rect, |
116 const WebKit::WebVector<WebKit::WebRect>& cut_outs_rects, | 117 const WebKit::WebVector<WebKit::WebRect>& cut_outs_rects, |
117 bool is_visible) OVERRIDE; | 118 bool is_visible) OVERRIDE; |
118 virtual void updateFocus(bool focused) OVERRIDE; | 119 virtual void updateFocus(bool focused) OVERRIDE; |
119 virtual void updateVisibility(bool visible) OVERRIDE; | 120 virtual void updateVisibility(bool visible) OVERRIDE; |
120 virtual bool acceptsInputEvents() OVERRIDE; | 121 virtual bool acceptsInputEvents() OVERRIDE; |
121 virtual bool handleInputEvent( | 122 virtual bool handleInputEvent( |
122 const WebKit::WebInputEvent& event, | 123 const WebKit::WebInputEvent& event, |
123 WebKit::WebCursorInfo& cursor_info) OVERRIDE; | 124 WebKit::WebCursorInfo& cursor_info) OVERRIDE; |
| 125 virtual bool handleDragStatusUpdate(WebKit::WebDragStatus drag_status, |
| 126 const WebKit::WebDragData& drag_data, |
| 127 WebKit::WebDragOperationsMask mask, |
| 128 const WebKit::WebPoint& position, |
| 129 const WebKit::WebPoint& screen) OVERRIDE; |
124 virtual void didReceiveResponse( | 130 virtual void didReceiveResponse( |
125 const WebKit::WebURLResponse& response) OVERRIDE; | 131 const WebKit::WebURLResponse& response) OVERRIDE; |
126 virtual void didReceiveData(const char* data, int data_length) OVERRIDE; | 132 virtual void didReceiveData(const char* data, int data_length) OVERRIDE; |
127 virtual void didFinishLoading() OVERRIDE; | 133 virtual void didFinishLoading() OVERRIDE; |
128 virtual void didFailLoading(const WebKit::WebURLError& error) OVERRIDE; | 134 virtual void didFailLoading(const WebKit::WebURLError& error) OVERRIDE; |
129 virtual void didFinishLoadingFrameRequest( | 135 virtual void didFinishLoadingFrameRequest( |
130 const WebKit::WebURL& url, | 136 const WebKit::WebURL& url, |
131 void* notify_data) OVERRIDE; | 137 void* notify_data) OVERRIDE; |
132 virtual void didFailLoadingFrameRequest( | 138 virtual void didFailLoadingFrameRequest( |
133 const WebKit::WebURL& url, | 139 const WebKit::WebURL& url, |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 // the changes are not always obvious. For example, there is a maximum | 222 // the changes are not always obvious. For example, there is a maximum |
217 // number of entries and earlier ones will automatically be pruned. | 223 // number of entries and earlier ones will automatically be pruned. |
218 int current_nav_entry_index_; | 224 int current_nav_entry_index_; |
219 int nav_entry_count_; | 225 int nav_entry_count_; |
220 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); | 226 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); |
221 }; | 227 }; |
222 | 228 |
223 } // namespace content | 229 } // namespace content |
224 | 230 |
225 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ | 231 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ |
OLD | NEW |