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

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: Fix compilation. 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
« no previous file with comments | « chrome/browser/ui/views/frame/desktop_browser_frame_aura.cc ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..0c127b037d3928694c399d6a4dd9b291899b182f 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(
+ const content::NativeWebKeyboardEvent& event) = 0;
+
+ // Returns true if the |event| was handled by the platform implementation.
+ virtual bool HandleKeyboardEvent(
+ const content::NativeWebKeyboardEvent& event) = 0;
+
protected:
friend class BrowserFrame;
« no previous file with comments | « chrome/browser/ui/views/frame/desktop_browser_frame_aura.cc ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698