OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_UI_VIEWS_ACCELERATOR_TABLE_LINUX_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_ACCELERATOR_TABLE_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_ACCELERATOR_TABLE_LINUX_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_ACCELERATOR_TABLE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <stdio.h> | 9 #include <stdio.h> |
10 | 10 |
11 #include "ui/base/keycodes/keyboard_codes.h" | 11 #include "ui/base/keycodes/keyboard_codes.h" |
12 | 12 |
13 // This contains the list of accelerators for the Linux toolkit_view | 13 // This contains the list of accelerators for the Aura implementation. |
14 // implementation. | |
15 namespace browser { | 14 namespace browser { |
16 | 15 |
17 struct AcceleratorMapping { | 16 struct AcceleratorMapping { |
18 ui::KeyboardCode keycode; | 17 ui::KeyboardCode keycode; |
19 bool shift_pressed; | 18 bool shift_pressed; |
20 bool ctrl_pressed; | 19 bool ctrl_pressed; |
21 bool alt_pressed; | 20 bool alt_pressed; |
22 int command_id; | 21 int command_id; |
23 }; | 22 }; |
24 | 23 |
25 // The list of accelerators. | 24 // The list of accelerators. |
26 extern const AcceleratorMapping kAcceleratorMap[]; | 25 extern const AcceleratorMapping kAcceleratorMap[]; |
27 | 26 |
28 // The numbers of elements in kAcceleratorMap. | 27 // The numbers of elements in kAcceleratorMap. |
29 extern const size_t kAcceleratorMapLength; | 28 extern const size_t kAcceleratorMapLength; |
30 } | 29 } |
31 | 30 |
32 #endif // CHROME_BROWSER_UI_VIEWS_ACCELERATOR_TABLE_LINUX_H_ | 31 #endif // CHROME_BROWSER_UI_VIEWS_ACCELERATOR_TABLE_H_ |
OLD | NEW |