OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |