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

Side by Side Diff: chrome/browser/global_keyboard_shortcuts_mac.h

Issue 1250533003: [Mac] Remove BrowserCommandExecutor protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/global_keyboard_shortcuts_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_GLOBAL_KEYBOARD_SHORTCUTS_MAC_H_ 5 #ifndef CHROME_BROWSER_GLOBAL_KEYBOARD_SHORTCUTS_MAC_H_
6 #define CHROME_BROWSER_GLOBAL_KEYBOARD_SHORTCUTS_MAC_H_ 6 #define CHROME_BROWSER_GLOBAL_KEYBOARD_SHORTCUTS_MAC_H_
7 7
8 #include <Carbon/Carbon.h> // For unichar.
9
8 #include "base/basictypes.h" 10 #include "base/basictypes.h"
9 11
12 @class NSEvent;
13
10 struct KeyboardShortcutData { 14 struct KeyboardShortcutData {
11 bool command_key; 15 bool command_key;
12 bool shift_key; 16 bool shift_key;
13 bool cntrl_key; 17 bool cntrl_key;
14 bool opt_key; 18 bool opt_key;
15 // Either one of vkey_code or key_char must be specified. For keys 19 // Either one of vkey_code or key_char must be specified. For keys
16 // whose virtual key code is hardware-dependent (kVK_ANSI_*) key_char 20 // whose virtual key code is hardware-dependent (kVK_ANSI_*) key_char
17 // should be specified instead. 21 // should be specified instead.
18 // Set 0 for the one you do not want to specify. 22 // Set 0 for the one you do not want to specify.
19 int vkey_code; // Virtual Key code for the command. 23 int vkey_code; // Virtual Key code for the command.
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 unichar KeyCharacterForEvent(NSEvent* event); 79 unichar KeyCharacterForEvent(NSEvent* event);
76 80
77 // For testing purposes. 81 // For testing purposes.
78 const KeyboardShortcutData* GetWindowKeyboardShortcutTable(size_t* num_entries); 82 const KeyboardShortcutData* GetWindowKeyboardShortcutTable(size_t* num_entries);
79 const KeyboardShortcutData* 83 const KeyboardShortcutData*
80 GetDelayedWindowKeyboardShortcutTable(size_t* num_entries); 84 GetDelayedWindowKeyboardShortcutTable(size_t* num_entries);
81 const KeyboardShortcutData* 85 const KeyboardShortcutData*
82 GetBrowserKeyboardShortcutTable(size_t* num_entries); 86 GetBrowserKeyboardShortcutTable(size_t* num_entries);
83 87
84 #endif // #ifndef CHROME_BROWSER_GLOBAL_KEYBOARD_SHORTCUTS_MAC_H_ 88 #endif // #ifndef CHROME_BROWSER_GLOBAL_KEYBOARD_SHORTCUTS_MAC_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/global_keyboard_shortcuts_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698