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 UI_BASE_ACCELERATOR_MANAGER_H_ | 5 #ifndef UI_BASE_ACCELERATORS_ACCELERATOR_MANAGER_H_ |
6 #define UI_BASE_ACCELERATOR_MANAGER_H_ | 6 #define UI_BASE_ACCELERATORS_ACCELERATOR_MANAGER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <list> | 9 #include <list> |
10 #include <map> | 10 #include <map> |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "ui/base/models/accelerator.h" | 13 #include "ui/base/accelerators/accelerator.h" |
14 #include "ui/base/ui_export.h" | 14 #include "ui/base/ui_export.h" |
15 | 15 |
16 namespace ui { | 16 namespace ui { |
17 | 17 |
18 // The AcceleratorManger is used to handle keyboard accelerators. | 18 // The AcceleratorManger is used to handle keyboard accelerators. |
19 class UI_EXPORT AcceleratorManager { | 19 class UI_EXPORT AcceleratorManager { |
20 public: | 20 public: |
21 AcceleratorManager(); | 21 AcceleratorManager(); |
22 ~AcceleratorManager(); | 22 ~AcceleratorManager(); |
23 | 23 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 // The accelerators and associated targets. | 55 // The accelerators and associated targets. |
56 typedef std::list<AcceleratorTarget*> AcceleratorTargetList; | 56 typedef std::list<AcceleratorTarget*> AcceleratorTargetList; |
57 typedef std::map<Accelerator, AcceleratorTargetList> AcceleratorMap; | 57 typedef std::map<Accelerator, AcceleratorTargetList> AcceleratorMap; |
58 AcceleratorMap accelerators_; | 58 AcceleratorMap accelerators_; |
59 | 59 |
60 DISALLOW_COPY_AND_ASSIGN(AcceleratorManager); | 60 DISALLOW_COPY_AND_ASSIGN(AcceleratorManager); |
61 }; | 61 }; |
62 | 62 |
63 } // namespace ui | 63 } // namespace ui |
64 | 64 |
65 #endif // UI_BASE_ACCELERATOR_MANAGER_H_ | 65 #endif // UI_BASE_ACCELERATORS_ACCELERATOR_MANAGER_H_ |
OLD | NEW |