Chromium Code Reviews| Index: chrome/common/extensions/extension.h |
| =================================================================== |
| --- chrome/common/extensions/extension.h (revision 134258) |
| +++ chrome/common/extensions/extension.h (working copy) |
| @@ -164,6 +164,9 @@ |
| ExtensionKeybinding(); |
| ~ExtensionKeybinding(); |
| + // The Keybinding platform value. |
| + static std::string KeybindingPlatform(); |
| + |
| // Parse the key binding. |
| bool Parse(base::DictionaryValue* command, |
| const std::string& command_name, |
| @@ -185,6 +188,7 @@ |
| std::string description_; |
| }; |
| + // A mapping of command name (std::string) to a keybinding object. |
| typedef std::map<std::string, ExtensionKeybinding> CommandMap; |
| struct TtsVoice { |
| @@ -590,12 +594,21 @@ |
| const std::vector<InputComponentInfo>& input_components() const { |
| return input_components_; |
| } |
| + // The browser action command keybinding that the extension wants to use, |
| + // which is not necessarily the one it can use, as it might be inacive. |
|
Yoyo Zhou
2012/05/01 01:51:30
nit: typo. %s/inacive/inactive/. Also delete the p
|
| + // (see also GetActiveBrowserActionCommand in ExtensionKeybindingRegistry). |
| const ExtensionKeybinding* browser_action_command() const { |
| return browser_action_command_.get(); |
| } |
| + // The page action command keybinding that the extension wants to use, |
| + // which is not necessarily the one it can use, as it might be inacive. |
| + // (see also GetActivePageActionCommand in ExtensionKeybindingRegistry). |
| const ExtensionKeybinding* page_action_command() const { |
| return page_action_command_.get(); |
| } |
| + // The map of named commands to keybindings that the extension wants to use, |
| + // which is not necessarily the one it can use, as they might be inacive. |
| + // (see also GetActiveNamedCommands in ExtensionKeybindingRegistry). |
| const CommandMap& named_commands() const { |
| return named_commands_; |
| } |