OLD | NEW |
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 |
11 #include "base/strings/string16.h" | 11 #include "base/strings/string16.h" |
12 #include "ui/base/accelerators/accelerator.h" | 12 #include "ui/base/accelerators/accelerator.h" |
13 | 13 |
14 namespace base { | 14 namespace base { |
15 class DictionaryValue; | 15 class DictionaryValue; |
16 } | 16 } |
17 | 17 |
18 namespace extensions { | 18 namespace extensions { |
19 class Extension; | |
20 } | |
21 | |
22 namespace extensions { | |
23 | 19 |
24 class Command { | 20 class Command { |
25 public: | 21 public: |
26 Command(); | 22 Command(); |
27 Command(const std::string& command_name, | 23 Command(const std::string& command_name, |
28 const base::string16& description, | 24 const base::string16& description, |
29 const std::string& accelerator, | 25 const std::string& accelerator, |
30 bool global); | 26 bool global); |
31 Command(const Command& other); | 27 Command(const Command& other); |
32 ~Command(); | 28 ~Command(); |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 base::string16 description_; | 70 base::string16 description_; |
75 bool global_; | 71 bool global_; |
76 }; | 72 }; |
77 | 73 |
78 // A mapping of command name (std::string) to a command object. | 74 // A mapping of command name (std::string) to a command object. |
79 typedef std::map<std::string, Command> CommandMap; | 75 typedef std::map<std::string, Command> CommandMap; |
80 | 76 |
81 } // namespace extensions | 77 } // namespace extensions |
82 | 78 |
83 #endif // CHROME_COMMON_EXTENSIONS_COMMAND_H_ | 79 #endif // CHROME_COMMON_EXTENSIONS_COMMAND_H_ |
OLD | NEW |