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

Side by Side Diff: chrome/browser/ui/cocoa/accelerators_cocoa.h

Issue 6546073: More OOLing on Mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Yeap Created 9 years, 10 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 | « no previous file | chrome/browser/ui/cocoa/accelerators_cocoa.mm » ('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) 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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/accelerators_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698