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

Unified Diff: chrome/browser/ui/cocoa/browser_window_utils.h

Issue 7719016: Handle keyboard shortcuts in Mac Panels. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Restored two lines. Created 9 years, 4 months 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/cocoa/browser_window_cocoa.mm ('k') | chrome/browser/ui/cocoa/browser_window_utils.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/browser_window_utils.h
diff --git a/chrome/browser/ui/cocoa/browser_window_utils.h b/chrome/browser/ui/cocoa/browser_window_utils.h
new file mode 100644
index 0000000000000000000000000000000000000000..97d454f5e60dbf4f3b1841a928c38697c36a6612
--- /dev/null
+++ b/chrome/browser/ui/cocoa/browser_window_utils.h
@@ -0,0 +1,28 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_UTILS_H_
+#define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_UTILS_H_
+#pragma once
+
+#import <Cocoa/Cocoa.h>
+
+class Browser;
+struct NativeWebKeyboardEvent;
+
+@interface BrowserWindowUtils : NSObject
+
+// Returns YES if keyboard event should be handled.
++ (BOOL)shouldHandleKeyboardEvent:(const NativeWebKeyboardEvent&)event;
+
+// Determines the command associated with the keyboard event.
+// Returns -1 if no command found.
++ (int)getCommandId:(const NativeWebKeyboardEvent&)event;
+
+// NSWindow must be a ChromeEventProcessingWindow.
++ (BOOL)handleKeyboardEvent:(NSEvent*)event
+ inWindow:(NSWindow*)window;
+@end
+
+#endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_UTILS_H_
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_cocoa.mm ('k') | chrome/browser/ui/cocoa/browser_window_utils.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698