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_EXTENSION_COMMANDS_H_ | 5 #ifndef CHROME_COMMON_EXTENSIONS_COMMAND_H_ |
6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_COMMANDS_H_ | 6 #define CHROME_COMMON_EXTENSIONS_COMMAND_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <map> | 10 #include <map> |
11 | 11 |
12 #include "base/string16.h" | 12 #include "base/string16.h" |
13 #include "ui/base/accelerators/accelerator.h" | 13 #include "ui/base/accelerators/accelerator.h" |
14 | 14 |
15 namespace base { | 15 namespace base { |
16 class DictionaryValue; | 16 class DictionaryValue; |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 std::string command_name_; | 55 std::string command_name_; |
56 ui::Accelerator accelerator_; | 56 ui::Accelerator accelerator_; |
57 string16 description_; | 57 string16 description_; |
58 }; | 58 }; |
59 | 59 |
60 // A mapping of command name (std::string) to a command object. | 60 // A mapping of command name (std::string) to a command object. |
61 typedef std::map<std::string, Command> CommandMap; | 61 typedef std::map<std::string, Command> CommandMap; |
62 | 62 |
63 } // namespace extensions | 63 } // namespace extensions |
64 | 64 |
65 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_COMMANDS_H_ | 65 #endif // CHROME_COMMON_EXTENSIONS_COMMAND_H_ |
OLD | NEW |