summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
authorfsamuel@chromium.org <fsamuel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-09 01:17:33 +0000
committerfsamuel@chromium.org <fsamuel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-09 01:17:33 +0000
commitbc51b0a3d3cfcd8bbe17960bf8902a96615c3304 (patch)
tree3e609e24e1fff93e9f5b5684eb12a95b2fce3b40 /content
parent8a50f99c25fb70ff43aaa82b6f9569db383f0ca8 (diff)
downloadchromium_src-bc51b0a3d3cfcd8bbe17960bf8902a96615c3304.zip
chromium_src-bc51b0a3d3cfcd8bbe17960bf8902a96615c3304.tar.gz
chromium_src-bc51b0a3d3cfcd8bbe17960bf8902a96615c3304.tar.bz2
Browser Plugin: Tell WebKit that the Browser Plugin supports keyboard focus.
Now that http://trac.webkit.org/changeset/124954 has landed, let's tell WebKit that this plugin supports keyboard focus. BUG=120263 Review URL: https://chromiumcodereview.appspot.com/10831215 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150666 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r--content/renderer/browser_plugin/browser_plugin.cc4
-rw-r--r--content/renderer/browser_plugin/browser_plugin.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/content/renderer/browser_plugin/browser_plugin.cc b/content/renderer/browser_plugin/browser_plugin.cc
index 124350e..8ba5421 100644
--- a/content/renderer/browser_plugin/browser_plugin.cc
+++ b/content/renderer/browser_plugin/browser_plugin.cc
@@ -282,6 +282,10 @@ NPObject* BrowserPlugin::scriptableObject() {
return browser_plugin_np_object;
}
+bool BrowserPlugin::supportsKeyboardFocus() const {
+ return true;
+}
+
void BrowserPlugin::paint(WebCanvas* canvas, const WebRect& rect) {
if (guest_crashed_) {
if (!sad_guest_) // Lazily initialize bitmap.
diff --git a/content/renderer/browser_plugin/browser_plugin.h b/content/renderer/browser_plugin/browser_plugin.h
index c7f095a..210774b 100644
--- a/content/renderer/browser_plugin/browser_plugin.h
+++ b/content/renderer/browser_plugin/browser_plugin.h
@@ -60,6 +60,7 @@ class CONTENT_EXPORT BrowserPlugin :
virtual bool initialize(WebKit::WebPluginContainer* container) OVERRIDE;
virtual void destroy() OVERRIDE;
virtual NPObject* scriptableObject() OVERRIDE;
+ virtual bool supportsKeyboardFocus() const OVERRIDE;
virtual void paint(
WebKit::WebCanvas* canvas,
const WebKit::WebRect& rect) OVERRIDE;