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

Unified Diff: ui/views/cocoa/native_widget_mac_accelerator_handler.h

Issue 2604793002: Allow Widget to pass accelerator handling to its parent.
Patch Set: Created 4 years 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: ui/views/cocoa/native_widget_mac_accelerator_handler.h
diff --git a/ui/views/cocoa/native_widget_mac_accelerator_handler.h b/ui/views/cocoa/native_widget_mac_accelerator_handler.h
new file mode 100644
index 0000000000000000000000000000000000000000..66a446adc94f8303c9da0b1ec62e662d7b91f575
--- /dev/null
+++ b/ui/views/cocoa/native_widget_mac_accelerator_handler.h
@@ -0,0 +1,19 @@
+// Copyright 2016 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 UI_VIEWS_COCOA_NATIVE_WIDGET_MAC_ACCELERATOR_HANDLER_H_
+#define UI_VIEWS_COCOA_NATIVE_WIDGET_MAC_ACCELERATOR_HANDLER_H_
+
+#include "ui/base/cocoa/user_interface_item_command_handler.h"
+
+@class NativeWidgetMacNSWindow;
+
+@interface NativeWidgetMacAcceleratorHandler
+ : NSObject<UserInterfaceItemCommandHandler>
+
+- (instancetype)initWithParentWindow:(NSWindow*)parent;
+
+@end
+
+#endif // UI_VIEWS_COCOA_NATIVE_WIDGET_MAC_ACCELERATOR_HANDLER_H_

Powered by Google App Engine
This is Rietveld 408576698