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

Side by Side Diff: chrome/browser/ui/views/accelerator_table.h

Issue 12212013: chrome: Initial step into building the views UI of Chrome Browser as a component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 10 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 | Annotate | Revision Log
OLDNEW
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/chrome_views_export.h » ('j') | chrome/chrome_browser_ui_views.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698