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