| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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/public/web/WebPlugin.h" | 8 #include "third_party/WebKit/public/web/WebPlugin.h" |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 void paint(blink::WebCanvas* canvas, const blink::WebRect& rect) override {} | 93 void paint(blink::WebCanvas* canvas, const blink::WebRect& rect) override {} |
| 94 void updateGeometry(const blink::WebRect& window_rect, | 94 void updateGeometry(const blink::WebRect& window_rect, |
| 95 const blink::WebRect& clip_rect, | 95 const blink::WebRect& clip_rect, |
| 96 const blink::WebRect& unobscured_rect, | 96 const blink::WebRect& unobscured_rect, |
| 97 const blink::WebVector<blink::WebRect>& cut_outs_rects, | 97 const blink::WebVector<blink::WebRect>& cut_outs_rects, |
| 98 bool is_visible) override; | 98 bool is_visible) override; |
| 99 void updateFocus(bool focused, blink::WebFocusType focus_type) override; | 99 void updateFocus(bool focused, blink::WebFocusType focus_type) override; |
| 100 void updateVisibility(bool visible) override; | 100 void updateVisibility(bool visible) override; |
| 101 blink::WebInputEventResult handleInputEvent( | 101 blink::WebInputEventResult handleInputEvent( |
| 102 const blink::WebInputEvent& event, | 102 const blink::WebInputEvent& event, |
| 103 const std::vector<const blink::WebInputEvent*>& coalescedEvents, |
| 103 blink::WebCursorInfo& cursor_info) override; | 104 blink::WebCursorInfo& cursor_info) override; |
| 104 bool handleDragStatusUpdate(blink::WebDragStatus drag_status, | 105 bool handleDragStatusUpdate(blink::WebDragStatus drag_status, |
| 105 const blink::WebDragData& drag_data, | 106 const blink::WebDragData& drag_data, |
| 106 blink::WebDragOperationsMask mask, | 107 blink::WebDragOperationsMask mask, |
| 107 const blink::WebPoint& position, | 108 const blink::WebPoint& position, |
| 108 const blink::WebPoint& screen) override; | 109 const blink::WebPoint& screen) override; |
| 109 void didReceiveResponse(const blink::WebURLResponse& response) override; | 110 void didReceiveResponse(const blink::WebURLResponse& response) override; |
| 110 void didReceiveData(const char* data, int data_length) override; | 111 void didReceiveData(const char* data, int data_length) override; |
| 111 void didFinishLoading() override; | 112 void didFinishLoading() override; |
| 112 void didFailLoading(const blink::WebURLError& error) override; | 113 void didFailLoading(const blink::WebURLError& error) override; |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 // Weak factory used in v8 |MakeWeak| callback, since the v8 callback might | 206 // Weak factory used in v8 |MakeWeak| callback, since the v8 callback might |
| 206 // get called after BrowserPlugin has been destroyed. | 207 // get called after BrowserPlugin has been destroyed. |
| 207 base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_; | 208 base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_; |
| 208 | 209 |
| 209 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); | 210 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); |
| 210 }; | 211 }; |
| 211 | 212 |
| 212 } // namespace content | 213 } // namespace content |
| 213 | 214 |
| 214 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ | 215 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ |
| OLD | NEW |