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

Unified Diff: chrome/browser/ui/views/frame/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
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();
« no previous file with comments | « chrome/browser/ui/views/accelerator_table_unittest_mac.mm ('k') | chrome/browser/ui/views/frame/browser_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698