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" |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 void Stop(); | 101 void Stop(); |
102 // A request from Javascript has been made to reload the page. | 102 // A request from Javascript has been made to reload the page. |
103 void Reload(); | 103 void Reload(); |
104 | 104 |
105 // WebKit::WebPlugin implementation. | 105 // WebKit::WebPlugin implementation. |
106 virtual WebKit::WebPluginContainer* container() const OVERRIDE; | 106 virtual WebKit::WebPluginContainer* container() const OVERRIDE; |
107 virtual bool initialize(WebKit::WebPluginContainer* container) OVERRIDE; | 107 virtual bool initialize(WebKit::WebPluginContainer* container) OVERRIDE; |
108 virtual void destroy() OVERRIDE; | 108 virtual void destroy() OVERRIDE; |
109 virtual NPObject* scriptableObject() OVERRIDE; | 109 virtual NPObject* scriptableObject() OVERRIDE; |
110 virtual bool supportsKeyboardFocus() const OVERRIDE; | 110 virtual bool supportsKeyboardFocus() const OVERRIDE; |
| 111 virtual bool canProcessDrag() const OVERRIDE; |
111 virtual void paint( | 112 virtual void paint( |
112 WebKit::WebCanvas* canvas, | 113 WebKit::WebCanvas* canvas, |
113 const WebKit::WebRect& rect) OVERRIDE; | 114 const WebKit::WebRect& rect) OVERRIDE; |
114 virtual void updateGeometry( | 115 virtual void updateGeometry( |
115 const WebKit::WebRect& frame_rect, | 116 const WebKit::WebRect& frame_rect, |
116 const WebKit::WebRect& clip_rect, | 117 const WebKit::WebRect& clip_rect, |
117 const WebKit::WebVector<WebKit::WebRect>& cut_outs_rects, | 118 const WebKit::WebVector<WebKit::WebRect>& cut_outs_rects, |
118 bool is_visible) OVERRIDE; | 119 bool is_visible) OVERRIDE; |
119 virtual void updateFocus(bool focused) OVERRIDE; | 120 virtual void updateFocus(bool focused) OVERRIDE; |
120 virtual void updateVisibility(bool visible) OVERRIDE; | 121 virtual void updateVisibility(bool visible) OVERRIDE; |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 // the changes are not always obvious. For example, there is a maximum | 223 // the changes are not always obvious. For example, there is a maximum |
223 // number of entries and earlier ones will automatically be pruned. | 224 // number of entries and earlier ones will automatically be pruned. |
224 int current_nav_entry_index_; | 225 int current_nav_entry_index_; |
225 int nav_entry_count_; | 226 int nav_entry_count_; |
226 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); | 227 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); |
227 }; | 228 }; |
228 | 229 |
229 } // namespace content | 230 } // namespace content |
230 | 231 |
231 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ | 232 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ |
OLD | NEW |