BookmarkManager: Fix 'new folder text field size changes on clicking it' issue.
[chromium-blink-merge.git] / chrome / browser / ui / cocoa / chrome_command_dispatcher_delegate.h
blob17f0d8eccdaf97775e16282fd5f2baedb8c1dfb2
1 // Copyright 2015 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 CHROME_BROWSER_UI_COCOA_CHROME_COMMAND_DISPATCHER_DELEGATE_H_
6 #define CHROME_BROWSER_UI_COCOA_CHROME_COMMAND_DISPATCHER_DELEGATE_H_
8 #import <Cocoa/Cocoa.h>
10 #import "ui/base/cocoa/command_dispatcher.h"
12 // Implement CommandDispatcherDelegate by intercepting browser window keyboard
13 // shortcuts and executing them with chrome::ExecuteCommand.
14 @interface ChromeCommandDispatcherDelegate : NSObject<CommandDispatcherDelegate>
16 // Checks if |event| is a keyboard shortcut listed in
17 // global_keyboard_shortcuts_mac.h. If so, execute the associated command.
18 // Returns YES if the event was handled.
19 - (BOOL)handleExtraKeyboardShortcut:(NSEvent*)event window:(NSWindow*)window;
21 @end
23 #endif // CHROME_BROWSER_UI_COCOA_CHROME_COMMAND_DISPATCHER_DELEGATE_H_