| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 // Returns NULL if there is no accelerator for the command. | 31 // Returns NULL if there is no accelerator for the command. |
| 32 const ui::AcceleratorCocoa* GetAcceleratorForCommand(int command_id); | 32 const ui::AcceleratorCocoa* GetAcceleratorForCommand(int command_id); |
| 33 | 33 |
| 34 // Returns the singleton instance. | 34 // Returns the singleton instance. |
| 35 static AcceleratorsCocoa* GetInstance(); | 35 static AcceleratorsCocoa* GetInstance(); |
| 36 | 36 |
| 37 private: | 37 private: |
| 38 friend struct DefaultSingletonTraits<AcceleratorsCocoa>; | 38 friend struct DefaultSingletonTraits<AcceleratorsCocoa>; |
| 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 |