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

Unified Diff: chrome/common/extensions/extension.h

Issue 10201016: Conflict detection for Extension Keybinding. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 8 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 side-by-side diff with in-line comments
Download patch
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_;
}

Powered by Google App Engine
This is Rietveld 408576698