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

Unified Diff: chrome/browser/cocoa/browser_window_impl.h

Issue 149325: Add facitility for Global Keyboard shortcuts. (Closed)
Patch Set: Created 11 years, 5 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
Index: chrome/browser/cocoa/browser_window_impl.h
diff --git a/chrome/browser/cocoa/browser_window_impl.h b/chrome/browser/cocoa/browser_window_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..d36aaabb5ef1e4085ddc62d2cfe0961296338d9d
--- /dev/null
+++ b/chrome/browser/cocoa/browser_window_impl.h
@@ -0,0 +1,17 @@
+// Copyright (c) 2009 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_COCOA_BROWSER_WINDOW_IMPL_H_
+#define CHROME_BROWSER_COCOA_BROWSER_WINDOW_IMPL_H_
+
+#import <Cocoa/Cocoa.h>
+
+// Cocoa class representing a Chrome browser window.
pink (ping after 24hrs) 2009/07/08 13:48:17 state why we are overriding NSWindow. For what pur
+@interface ChromeBrowserWindowImpl : NSWindow
pink (ping after 24hrs) 2009/07/08 13:48:17 isn't calling it an "impl" redundant? In fact, thi
+
+// Override, so we can handle global keyboard events.
+- (BOOL)performKeyEquivalent:(NSEvent *)theEvent;
+@end
+
+#endif // CHROME_BROWSER_COCOA_BROWSER_WINDOW_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698