Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(218)

Side by Side Diff: content/renderer/browser_plugin/browser_plugin.h

Issue 10831215: Browser Plugin: Tell WebKit that the Browser Plugin supports keyboard focus. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | content/renderer/browser_plugin/browser_plugin.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/browser_plugin/browser_plugin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698