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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 virtual v8::Local<v8::Object> v8ScriptableObject( | 79 virtual v8::Local<v8::Object> v8ScriptableObject( |
80 v8::Isolate* isolate) override; | 80 v8::Isolate* isolate) override; |
81 virtual bool supportsKeyboardFocus() const override; | 81 virtual bool supportsKeyboardFocus() const override; |
82 virtual bool supportsEditCommands() const override; | 82 virtual bool supportsEditCommands() const override; |
83 virtual bool supportsInputMethod() const override; | 83 virtual bool supportsInputMethod() const override; |
84 virtual bool canProcessDrag() const override; | 84 virtual bool canProcessDrag() const override; |
85 virtual void paint( | 85 virtual void paint( |
86 blink::WebCanvas* canvas, | 86 blink::WebCanvas* canvas, |
87 const blink::WebRect& rect) override; | 87 const blink::WebRect& rect) override; |
88 virtual void updateGeometry( | 88 virtual void updateGeometry( |
89 const blink::WebRect& frame_rect, | 89 const blink::WebRect& window_rect, |
90 const blink::WebRect& clip_rect, | 90 const blink::WebRect& clip_rect, |
| 91 const blink::WebRect& unobscured_rect, |
91 const blink::WebVector<blink::WebRect>& cut_outs_rects, | 92 const blink::WebVector<blink::WebRect>& cut_outs_rects, |
92 bool is_visible) override; | 93 bool is_visible) override; |
93 virtual void updateFocus(bool focused, | 94 virtual void updateFocus(bool focused, |
94 blink::WebFocusType focus_type) override; | 95 blink::WebFocusType focus_type) override; |
95 virtual void updateVisibility(bool visible) override; | 96 virtual void updateVisibility(bool visible) override; |
96 virtual bool acceptsInputEvents() override; | 97 virtual bool acceptsInputEvents() override; |
97 virtual bool handleInputEvent( | 98 virtual bool handleInputEvent( |
98 const blink::WebInputEvent& event, | 99 const blink::WebInputEvent& event, |
99 blink::WebCursorInfo& cursor_info) override; | 100 blink::WebCursorInfo& cursor_info) override; |
100 virtual bool handleDragStatusUpdate(blink::WebDragStatus drag_status, | 101 virtual bool handleDragStatusUpdate(blink::WebDragStatus drag_status, |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 // Weak factory used in v8 |MakeWeak| callback, since the v8 callback might | 205 // Weak factory used in v8 |MakeWeak| callback, since the v8 callback might |
205 // get called after BrowserPlugin has been destroyed. | 206 // get called after BrowserPlugin has been destroyed. |
206 base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_; | 207 base::WeakPtrFactory<BrowserPlugin> weak_ptr_factory_; |
207 | 208 |
208 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); | 209 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); |
209 }; | 210 }; |
210 | 211 |
211 } // namespace content | 212 } // namespace content |
212 | 213 |
213 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ | 214 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ |
OLD | NEW |