| 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 "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 void layoutIfNeeded() override {} | 90 void layoutIfNeeded() override {} |
| 91 void paint(blink::WebCanvas* canvas, const blink::WebRect& rect) override; | 91 void paint(blink::WebCanvas* canvas, const blink::WebRect& rect) override; |
| 92 void updateGeometry(const blink::WebRect& window_rect, | 92 void updateGeometry(const blink::WebRect& window_rect, |
| 93 const blink::WebRect& clip_rect, | 93 const blink::WebRect& clip_rect, |
| 94 const blink::WebRect& unobscured_rect, | 94 const blink::WebRect& unobscured_rect, |
| 95 const blink::WebVector<blink::WebRect>& cut_outs_rects, | 95 const blink::WebVector<blink::WebRect>& cut_outs_rects, |
| 96 bool is_visible) override; | 96 bool is_visible) override; |
| 97 void updateFocus(bool focused, blink::WebFocusType focus_type) override; | 97 void updateFocus(bool focused, blink::WebFocusType focus_type) override; |
| 98 void updateVisibility(bool visible) override; | 98 void updateVisibility(bool visible) override; |
| 99 bool acceptsInputEvents() override; | 99 bool acceptsInputEvents() override; |
| 100 bool handleInputEvent(const blink::WebInputEvent& event, | 100 blink::WebInputEventResult handleInputEvent( |
| 101 blink::WebCursorInfo& cursor_info) override; | 101 const blink::WebInputEvent& event, |
| 102 blink::WebCursorInfo& cursor_info) override; |
| 102 bool handleDragStatusUpdate(blink::WebDragStatus drag_status, | 103 bool handleDragStatusUpdate(blink::WebDragStatus drag_status, |
| 103 const blink::WebDragData& drag_data, | 104 const blink::WebDragData& drag_data, |
| 104 blink::WebDragOperationsMask mask, | 105 blink::WebDragOperationsMask mask, |
| 105 const blink::WebPoint& position, | 106 const blink::WebPoint& position, |
| 106 const blink::WebPoint& screen) override; | 107 const blink::WebPoint& screen) override; |
| 107 void didReceiveResponse(const blink::WebURLResponse& response) override; | 108 void didReceiveResponse(const blink::WebURLResponse& response) override; |
| 108 void didReceiveData(const char* data, int data_length) override; | 109 void didReceiveData(const char* data, int data_length) override; |
| 109 void didFinishLoading() override; | 110 void didFinishLoading() override; |
| 110 void didFailLoading(const blink::WebURLError& error) override; | 111 void didFailLoading(const blink::WebURLError& error) override; |
| 111 void didFinishLoadingFrameRequest(const blink::WebURL& url, | 112 void didFinishLoadingFrameRequest(const blink::WebURL& url, |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 // Weak factory used in v8 |MakeWeak| callback, since the v8 callback might | 212 // Weak factory used in v8 |MakeWeak| callback, since the v8 callback might |
| 212 // get called after BrowserPlugin has been destroyed. | 213 // get called after BrowserPlugin has been destroyed. |
| 213 base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_; | 214 base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_; |
| 214 | 215 |
| 215 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); | 216 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); |
| 216 }; | 217 }; |
| 217 | 218 |
| 218 } // namespace content | 219 } // namespace content |
| 219 | 220 |
| 220 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ | 221 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ |
| OLD | NEW |