Index: chrome/browser/ui/views/frame/browser_frame.h |
diff --git a/chrome/browser/ui/views/frame/browser_frame.h b/chrome/browser/ui/views/frame/browser_frame.h |
index c5a70a2be8ff15569ee741ffa10c47e38c6b859f..b2180cb7fea085fb45665a98e410272c52b75f51 100644 |
--- a/chrome/browser/ui/views/frame/browser_frame.h |
+++ b/chrome/browser/ui/views/frame/browser_frame.h |
@@ -20,6 +20,10 @@ class NativeBrowserFrame; |
class NonClientFrameView; |
class SystemMenuModelBuilder; |
+namespace content { |
+struct NativeWebKeyboardEvent; |
+} |
+ |
namespace gfx { |
class FontList; |
class Rect; |
@@ -92,6 +96,15 @@ class BrowserFrame |
void GetWindowPlacement(gfx::Rect* bounds, |
ui::WindowShowState* show_state) const; |
+ // Returns true if the |event| was handled by the platform implementation |
+ // before sending it to the renderer. E.g., it may be swallowed by a native |
+ // menu bar. |
+ bool PreHandleKeyboardEvent(const content::NativeWebKeyboardEvent& event); |
+ |
+ // Returns true if the |event| was handled by the platform implementation, |
+ // if the renderer did not process it. |
+ bool HandleKeyboardEvent(const content::NativeWebKeyboardEvent& event); |
+ |
// Called when BrowserView creates all it's child views. |
void OnBrowserViewInitViewsComplete(); |