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

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

Issue 10382178: Use single "modifiers" field rather than boolean fields. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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 #pragma once 7 #pragma once
8 8
9 #include <stddef.h> 9 #include <stddef.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 Aura implementation. 13 // This contains the list of accelerators for the Aura implementation.
14 namespace browser { 14 namespace browser {
15 15
16 struct AcceleratorMapping { 16 struct AcceleratorMapping {
17 ui::KeyboardCode keycode; 17 ui::KeyboardCode keycode;
18 bool shift_pressed; 18 int modifiers;
19 bool ctrl_pressed;
20 bool alt_pressed;
21 int command_id; 19 int command_id;
22 }; 20 };
23 21
24 // The list of accelerators. 22 // The list of accelerators.
25 extern const AcceleratorMapping kAcceleratorMap[]; 23 extern const AcceleratorMapping kAcceleratorMap[];
26 24
27 // The numbers of elements in kAcceleratorMap. 25 // The numbers of elements in kAcceleratorMap.
28 extern const size_t kAcceleratorMapLength; 26 extern const size_t kAcceleratorMapLength;
29 27
30 } // namespace browser 28 } // namespace browser
31 29
32 #endif // CHROME_BROWSER_UI_VIEWS_ACCELERATOR_TABLE_H_ 30 #endif // CHROME_BROWSER_UI_VIEWS_ACCELERATOR_TABLE_H_
OLDNEW
« no previous file with comments | « ash/accelerators/accelerator_table_unittest.cc ('k') | chrome/browser/ui/views/accelerator_table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698