Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / ui / views / cocoa / native_widget_mac_nswindow.h
blobadc6b04169316175b57640eb7847bff2a8268081
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef UI_VIEWS_COCOA_NATIVE_WIDGET_MAC_NSWINDOW_H_
6 #define UI_VIEWS_COCOA_NATIVE_WIDGET_MAC_NSWINDOW_H_
8 #import <Cocoa/Cocoa.h>
10 #import "ui/base/cocoa/command_dispatcher.h"
11 #include "ui/views/views_export.h"
13 // The NSWindow used by BridgedNativeWidget. Provides hooks into AppKit that
14 // can only be accomplished by overriding methods.
15 VIEWS_EXPORT
16 @interface NativeWidgetMacNSWindow : NSWindow<CommandDispatchingWindow>
18 // Set a CommandDispatcherDelegate, i.e. to implement key event handling.
19 - (void)setCommandDispatcherDelegate:(id<CommandDispatcherDelegate>)delegate;
21 @end
23 #endif // UI_VIEWS_COCOA_NATIVE_WIDGET_MAC_NSWINDOW_H_