Index: chrome/browser/ui/views/frame/native_browser_frame.h |
diff --git a/chrome/browser/ui/views/frame/native_browser_frame.h b/chrome/browser/ui/views/frame/native_browser_frame.h |
index 2518ccb21a7fb1e4a52222ce4e1090982920b873..cf40960b691bfaec1fa4e3f62d86c1b232f38a6c 100644 |
--- a/chrome/browser/ui/views/frame/native_browser_frame.h |
+++ b/chrome/browser/ui/views/frame/native_browser_frame.h |
@@ -12,6 +12,10 @@ |
class BrowserFrame; |
class BrowserView; |
+namespace content { |
+struct NativeWebKeyboardEvent; |
+} |
+ |
namespace views { |
class NativeWidget; |
} |
@@ -37,6 +41,14 @@ class NativeBrowserFrame { |
virtual void GetWindowPlacement(gfx::Rect* bounds, |
ui::WindowShowState* show_state) const = 0; |
+ // Returns true if the |event| was handled by the platform implementation. |
+ virtual bool PreHandleKeyboardEvent( |
sky
2016/11/07 16:53:34
Make this pure virtual to match the rest of the fu
themblsha
2016/11/08 11:35:20
Done.
|
+ const content::NativeWebKeyboardEvent& event); |
+ |
+ // Returns true if the |event| was handled by the platform implementation. |
+ virtual bool HandleKeyboardEvent( |
+ const content::NativeWebKeyboardEvent& event); |
+ |
protected: |
friend class BrowserFrame; |