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

Side by Side Diff: ui/base/accelerators/accelerator.h

Issue 10917075: events: Move some files into ui/base/events/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 3 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
« no previous file with comments | « ui/aura/window_unittest.cc ('k') | ui/base/accelerators/accelerator_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // This class describe a keyboard accelerator (or keyboard shortcut). 5 // This class describe a keyboard accelerator (or keyboard shortcut).
6 // Keyboard accelerators are registered with the FocusManager. 6 // Keyboard accelerators are registered with the FocusManager.
7 // It has a copy constructor and assignment operator so that it can be copied. 7 // It has a copy constructor and assignment operator so that it can be copied.
8 // It also defines the < operator so that it can be used as a key in a std::map. 8 // It also defines the < operator so that it can be used as a key in a std::map.
9 // 9 //
10 10
11 #ifndef UI_BASE_ACCELERATORS_ACCELERATOR_H_ 11 #ifndef UI_BASE_ACCELERATORS_ACCELERATOR_H_
12 #define UI_BASE_ACCELERATORS_ACCELERATOR_H_ 12 #define UI_BASE_ACCELERATORS_ACCELERATOR_H_
13 13
14 #include "base/string16.h" 14 #include "base/string16.h"
15 #include "ui/base/events/event_constants.h"
15 #include "ui/base/keycodes/keyboard_codes.h" 16 #include "ui/base/keycodes/keyboard_codes.h"
16 #include "ui/base/events.h"
17 #include "ui/base/ui_export.h" 17 #include "ui/base/ui_export.h"
18 18
19 namespace ui { 19 namespace ui {
20 20
21 // This is a cross-platform base class for accelerator keys used in menus. It is 21 // This is a cross-platform base class for accelerator keys used in menus. It is
22 // meant to be subclassed for concrete toolkit implementations. 22 // meant to be subclassed for concrete toolkit implementations.
23 class UI_EXPORT Accelerator { 23 class UI_EXPORT Accelerator {
24 public: 24 public:
25 Accelerator(); 25 Accelerator();
26 Accelerator(ui::KeyboardCode keycode, int modifiers); 26 Accelerator(ui::KeyboardCode keycode, int modifiers);
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 virtual bool GetAcceleratorForCommandId(int command_id, 91 virtual bool GetAcceleratorForCommandId(int command_id,
92 ui::Accelerator* accelerator) = 0; 92 ui::Accelerator* accelerator) = 0;
93 93
94 protected: 94 protected:
95 virtual ~AcceleratorProvider() {} 95 virtual ~AcceleratorProvider() {}
96 }; 96 };
97 97
98 } // namespace ui 98 } // namespace ui
99 99
100 #endif // UI_BASE_ACCELERATORS_ACCELERATOR_H_ 100 #endif // UI_BASE_ACCELERATORS_ACCELERATOR_H_
OLDNEW
« no previous file with comments | « ui/aura/window_unittest.cc ('k') | ui/base/accelerators/accelerator_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698