| 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_UpdateRect_Params; | 21 struct BrowserPluginMsg_UpdateRect_Params; |
| 21 | 22 |
| 22 namespace content { | 23 namespace content { |
| 23 | 24 |
| 24 class BrowserPluginManager; | 25 class BrowserPluginManager; |
| 25 class MockBrowserPlugin; | 26 class MockBrowserPlugin; |
| 26 | 27 |
| 27 class CONTENT_EXPORT BrowserPlugin : | 28 class CONTENT_EXPORT BrowserPlugin : |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 const WebKit::WebRect& frame_rect, | 110 const WebKit::WebRect& frame_rect, |
| 110 const WebKit::WebRect& clip_rect, | 111 const WebKit::WebRect& clip_rect, |
| 111 const WebKit::WebVector<WebKit::WebRect>& cut_outs_rects, | 112 const WebKit::WebVector<WebKit::WebRect>& cut_outs_rects, |
| 112 bool is_visible) OVERRIDE; | 113 bool is_visible) OVERRIDE; |
| 113 virtual void updateFocus(bool focused) OVERRIDE; | 114 virtual void updateFocus(bool focused) OVERRIDE; |
| 114 virtual void updateVisibility(bool visible) OVERRIDE; | 115 virtual void updateVisibility(bool visible) OVERRIDE; |
| 115 virtual bool acceptsInputEvents() OVERRIDE; | 116 virtual bool acceptsInputEvents() OVERRIDE; |
| 116 virtual bool handleInputEvent( | 117 virtual bool handleInputEvent( |
| 117 const WebKit::WebInputEvent& event, | 118 const WebKit::WebInputEvent& event, |
| 118 WebKit::WebCursorInfo& cursor_info) OVERRIDE; | 119 WebKit::WebCursorInfo& cursor_info) OVERRIDE; |
| 120 virtual bool handleDragStatusUpdate(WebKit::WebDragStatus drag_status, |
| 121 const WebKit::WebDragData& drag_data, |
| 122 WebKit::WebDragOperationsMask mask, |
| 123 const WebKit::WebPoint& position, |
| 124 const WebKit::WebPoint& screen) OVERRIDE; |
| 119 virtual void didReceiveResponse( | 125 virtual void didReceiveResponse( |
| 120 const WebKit::WebURLResponse& response) OVERRIDE; | 126 const WebKit::WebURLResponse& response) OVERRIDE; |
| 121 virtual void didReceiveData(const char* data, int data_length) OVERRIDE; | 127 virtual void didReceiveData(const char* data, int data_length) OVERRIDE; |
| 122 virtual void didFinishLoading() OVERRIDE; | 128 virtual void didFinishLoading() OVERRIDE; |
| 123 virtual void didFailLoading(const WebKit::WebURLError& error) OVERRIDE; | 129 virtual void didFailLoading(const WebKit::WebURLError& error) OVERRIDE; |
| 124 virtual void didFinishLoadingFrameRequest( | 130 virtual void didFinishLoadingFrameRequest( |
| 125 const WebKit::WebURL& url, | 131 const WebKit::WebURL& url, |
| 126 void* notify_data) OVERRIDE; | 132 void* notify_data) OVERRIDE; |
| 127 virtual void didFailLoadingFrameRequest( | 133 virtual void didFailLoadingFrameRequest( |
| 128 const WebKit::WebURL& url, | 134 const WebKit::WebURL& url, |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 EventListenerMap event_listener_map_; | 205 EventListenerMap event_listener_map_; |
| 200 #if defined(OS_WIN) | 206 #if defined(OS_WIN) |
| 201 base::SharedMemory shared_memory_; | 207 base::SharedMemory shared_memory_; |
| 202 #endif | 208 #endif |
| 203 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); | 209 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); |
| 204 }; | 210 }; |
| 205 | 211 |
| 206 } // namespace content | 212 } // namespace content |
| 207 | 213 |
| 208 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ | 214 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ |
| OLD | NEW |