Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2199)

Unified Diff: chrome/browser/ui/views/frame/native_browser_frame.h

Issue 2074643003: MacViews: Views accelerators table should match the Cocoa one. (Closed) Base URL: ssh://bitbucket.browser.yandex-team.ru/chromium/src.git@master
Patch Set: e --> shortcut Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.cc ('k') | chrome/browser/ui/views/frame/native_browser_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698