| 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. | 8 #include <Carbon/Carbon.h> // For unichar. |
| 9 | 9 #include <stddef.h> |
| 10 #include "base/basictypes.h" | |
| 11 | 10 |
| 12 @class NSEvent; | 11 @class NSEvent; |
| 13 | 12 |
| 14 struct KeyboardShortcutData { | 13 struct KeyboardShortcutData { |
| 15 bool command_key; | 14 bool command_key; |
| 16 bool shift_key; | 15 bool shift_key; |
| 17 bool cntrl_key; | 16 bool cntrl_key; |
| 18 bool opt_key; | 17 bool opt_key; |
| 19 // Either one of vkey_code or key_char must be specified. For keys | 18 // Either one of vkey_code or key_char must be specified. For keys |
| 20 // whose virtual key code is hardware-dependent (kVK_ANSI_*) key_char | 19 // whose virtual key code is hardware-dependent (kVK_ANSI_*) key_char |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 unichar KeyCharacterForEvent(NSEvent* event); | 78 unichar KeyCharacterForEvent(NSEvent* event); |
| 80 | 79 |
| 81 // For testing purposes. | 80 // For testing purposes. |
| 82 const KeyboardShortcutData* GetWindowKeyboardShortcutTable(size_t* num_entries); | 81 const KeyboardShortcutData* GetWindowKeyboardShortcutTable(size_t* num_entries); |
| 83 const KeyboardShortcutData* | 82 const KeyboardShortcutData* |
| 84 GetDelayedWindowKeyboardShortcutTable(size_t* num_entries); | 83 GetDelayedWindowKeyboardShortcutTable(size_t* num_entries); |
| 85 const KeyboardShortcutData* | 84 const KeyboardShortcutData* |
| 86 GetBrowserKeyboardShortcutTable(size_t* num_entries); | 85 GetBrowserKeyboardShortcutTable(size_t* num_entries); |
| 87 | 86 |
| 88 #endif // #ifndef CHROME_BROWSER_GLOBAL_KEYBOARD_SHORTCUTS_MAC_H_ | 87 #endif // #ifndef CHROME_BROWSER_GLOBAL_KEYBOARD_SHORTCUTS_MAC_H_ |
| OLD | NEW |