summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_host.h
diff options
context:
space:
mode:
authorsuzhe@chromium.org <suzhe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-25 06:13:43 +0000
committersuzhe@chromium.org <suzhe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-25 06:13:43 +0000
commitf8e55e7f62fbc1156c4bf99b114adb488f78ef6a (patch)
tree004b768e0103d6bafa6d5d23c53354f20561b0d8 /chrome/browser/extensions/extension_host.h
parent8dccd7cbab5135e60aa8f32d4a2ec8bbdd8068f5 (diff)
downloadchromium_src-f8e55e7f62fbc1156c4bf99b114adb488f78ef6a.zip
chromium_src-f8e55e7f62fbc1156c4bf99b114adb488f78ef6a.tar.gz
chromium_src-f8e55e7f62fbc1156c4bf99b114adb488f78ef6a.tar.bz2
Handle keyboard events correctly in extension popups.
BUG=33221 Keyboard shortcuts doesn't work on extension bubble popups TEST=Open an extension popup with a text box in it, then try to copy/paste text in the text box with cmd-c/v. Review URL: http://codereview.chromium.org/654005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39989 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_host.h')
-rw-r--r--chrome/browser/extensions/extension_host.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_host.h b/chrome/browser/extensions/extension_host.h
index 2bd7906..c5ea9b2 100644
--- a/chrome/browser/extensions/extension_host.h
+++ b/chrome/browser/extensions/extension_host.h
@@ -81,6 +81,8 @@ class ExtensionHost : public ExtensionPopupHost::PopupDelegate,
}
Profile* profile() const { return profile_; }
+ ViewType::Type extension_host_type() const { return extension_host_type_; }
+
// Sets the the ViewType of this host (e.g. mole, toolstrip).
void SetRenderViewType(ViewType::Type type);
@@ -199,6 +201,11 @@ class ExtensionHost : public ExtensionPopupHost::PopupDelegate,
return view()->native_view();
}
+ // Handles keyboard events that were not handled by HandleKeyboardEvent().
+ // Platform specific implementation may override this method to handle the
+ // event in platform specific way.
+ virtual void UnhandledKeyboardEvent(const NativeWebKeyboardEvent& event) {}
+
// Returns true if we're hosting a background page.
// This isn't valid until CreateRenderView is called.
bool is_background_page() const { return !view(); }