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 CHROME_BROWSER_UI_COCOA_ACCELERATORS_COCOA_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_ACCELERATORS_COCOA_H_ |
6 #define CHROME_BROWSER_UI_COCOA_ACCELERATORS_COCOA_H_ | 6 #define CHROME_BROWSER_UI_COCOA_ACCELERATORS_COCOA_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 | 10 |
11 #include "ui/base/models/accelerator_cocoa.h" | 11 #include "ui/base/accelerators/accelerator_cocoa.h" |
12 | 12 |
13 template <typename T> struct DefaultSingletonTraits; | 13 template <typename T> struct DefaultSingletonTraits; |
14 | 14 |
15 // This class maintains a map of command_ids to AcceleratorCocoa objects (see | 15 // This class maintains a map of command_ids to AcceleratorCocoa objects (see |
16 // chrome/app/chrome_command_ids.h). Currently, this only lists the commands | 16 // chrome/app/chrome_command_ids.h). Currently, this only lists the commands |
17 // that are used in the Wrench menu. | 17 // that are used in the Wrench menu. |
18 // | 18 // |
19 // It is recommended that this class be used as a singleton so that the key map | 19 // It is recommended that this class be used as a singleton so that the key map |
20 // isn't created multiple places. | 20 // isn't created multiple places. |
21 // | 21 // |
(...skipping 17 matching lines...) Expand all Loading... |
39 | 39 |
40 AcceleratorsCocoa(); | 40 AcceleratorsCocoa(); |
41 ~AcceleratorsCocoa(); | 41 ~AcceleratorsCocoa(); |
42 | 42 |
43 AcceleratorCocoaMap accelerators_; | 43 AcceleratorCocoaMap accelerators_; |
44 | 44 |
45 DISALLOW_COPY_AND_ASSIGN(AcceleratorsCocoa); | 45 DISALLOW_COPY_AND_ASSIGN(AcceleratorsCocoa); |
46 }; | 46 }; |
47 | 47 |
48 #endif // CHROME_BROWSER_UI_COCOA_ACCELERATORS_COCOA_H_ | 48 #endif // CHROME_BROWSER_UI_COCOA_ACCELERATORS_COCOA_H_ |
OLD | NEW |