summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_host.h
diff options
context:
space:
mode:
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(); }