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

Side by Side Diff: chrome/common/extensions/command.h

Issue 1731483003: chrome: Add out-of-line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 #ifndef CHROME_COMMON_EXTENSIONS_COMMAND_H_ 5 #ifndef CHROME_COMMON_EXTENSIONS_COMMAND_H_
6 #define CHROME_COMMON_EXTENSIONS_COMMAND_H_ 6 #define CHROME_COMMON_EXTENSIONS_COMMAND_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 10 matching lines...) Expand all
21 21
22 namespace extensions { 22 namespace extensions {
23 23
24 class Command { 24 class Command {
25 public: 25 public:
26 Command(); 26 Command();
27 Command(const std::string& command_name, 27 Command(const std::string& command_name,
28 const base::string16& description, 28 const base::string16& description,
29 const std::string& accelerator, 29 const std::string& accelerator,
30 bool global); 30 bool global);
31 Command(const Command& other);
31 ~Command(); 32 ~Command();
32 33
33 // The platform value for the Command. 34 // The platform value for the Command.
34 static std::string CommandPlatform(); 35 static std::string CommandPlatform();
35 36
36 // Parse a string as an accelerator. If the accelerator is unparsable then 37 // Parse a string as an accelerator. If the accelerator is unparsable then
37 // a generic ui::Accelerator object will be returns (with key_code Unknown). 38 // a generic ui::Accelerator object will be returns (with key_code Unknown).
38 static ui::Accelerator StringToAccelerator(const std::string& accelerator, 39 static ui::Accelerator StringToAccelerator(const std::string& accelerator,
39 const std::string& command_name); 40 const std::string& command_name);
40 41
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 base::string16 description_; 74 base::string16 description_;
74 bool global_; 75 bool global_;
75 }; 76 };
76 77
77 // A mapping of command name (std::string) to a command object. 78 // A mapping of command name (std::string) to a command object.
78 typedef std::map<std::string, Command> CommandMap; 79 typedef std::map<std::string, Command> CommandMap;
79 80
80 } // namespace extensions 81 } // namespace extensions
81 82
82 #endif // CHROME_COMMON_EXTENSIONS_COMMAND_H_ 83 #endif // CHROME_COMMON_EXTENSIONS_COMMAND_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698