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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 v8::Local<v8::Function> function); | 53 v8::Local<v8::Function> function); |
54 // Remove a custom event listener from this BrowserPlugin instance. | 54 // Remove a custom event listener from this BrowserPlugin instance. |
55 bool RemoveEventListener(const std::string& event_name, | 55 bool RemoveEventListener(const std::string& event_name, |
56 v8::Local<v8::Function> function); | 56 v8::Local<v8::Function> function); |
57 | 57 |
58 // WebKit::WebPlugin implementation. | 58 // WebKit::WebPlugin implementation. |
59 virtual WebKit::WebPluginContainer* container() const OVERRIDE; | 59 virtual WebKit::WebPluginContainer* container() const OVERRIDE; |
60 virtual bool initialize(WebKit::WebPluginContainer* container) OVERRIDE; | 60 virtual bool initialize(WebKit::WebPluginContainer* container) OVERRIDE; |
61 virtual void destroy() OVERRIDE; | 61 virtual void destroy() OVERRIDE; |
62 virtual NPObject* scriptableObject() OVERRIDE; | 62 virtual NPObject* scriptableObject() OVERRIDE; |
| 63 virtual bool supportsKeyboardFocus() const OVERRIDE; |
63 virtual void paint( | 64 virtual void paint( |
64 WebKit::WebCanvas* canvas, | 65 WebKit::WebCanvas* canvas, |
65 const WebKit::WebRect& rect) OVERRIDE; | 66 const WebKit::WebRect& rect) OVERRIDE; |
66 virtual void updateGeometry( | 67 virtual void updateGeometry( |
67 const WebKit::WebRect& frame_rect, | 68 const WebKit::WebRect& frame_rect, |
68 const WebKit::WebRect& clip_rect, | 69 const WebKit::WebRect& clip_rect, |
69 const WebKit::WebVector<WebKit::WebRect>& cut_outs_rects, | 70 const WebKit::WebVector<WebKit::WebRect>& cut_outs_rects, |
70 bool is_visible) OVERRIDE; | 71 bool is_visible) OVERRIDE; |
71 virtual void updateFocus(bool focused) OVERRIDE; | 72 virtual void updateFocus(bool focused) OVERRIDE; |
72 virtual void updateVisibility(bool visible) OVERRIDE; | 73 virtual void updateVisibility(bool visible) OVERRIDE; |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 std::string src_; | 140 std::string src_; |
140 typedef std::vector<v8::Persistent<v8::Function> > EventListeners; | 141 typedef std::vector<v8::Persistent<v8::Function> > EventListeners; |
141 typedef std::map<std::string, EventListeners> EventListenerMap; | 142 typedef std::map<std::string, EventListeners> EventListenerMap; |
142 EventListenerMap event_listener_map_; | 143 EventListenerMap event_listener_map_; |
143 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); | 144 DISALLOW_COPY_AND_ASSIGN(BrowserPlugin); |
144 }; | 145 }; |
145 | 146 |
146 } // namespace content | 147 } // namespace content |
147 | 148 |
148 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ | 149 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_H_ |
OLD | NEW |