Lines Matching refs:command

12 #include "chrome/common/extensions/command.h"
51 // An enum specifying whether the command is global in scope or not. Global
55 REGULAR, // Regular (non-globally scoped) command.
56 GLOBAL, // Global command (works when Chrome doesn't have focus)
88 // Gets the command (if any) for the browser action of an extension given
90 // the command is active. Returns false if the extension has no browser
91 // action. Returns false if the command is not active and |type| requested
92 // is ACTIVE_ONLY. |command| contains the command found and |active| (if not
93 // NULL) contains whether |command| is active.
96 Command* command,
99 // Gets the command (if any) for the page action of an extension given
101 // the command is active. Returns false if the extension has no page
102 // action. Returns false if the command is not active and |type| requested
103 // is ACTIVE_ONLY. |command| contains the command found and |active| (if not
104 // NULL) contains whether |command| is active.
107 Command* command,
121 // |extension_id| and command with the name |command_name|. If
125 // |accelerator| will be overwritten. If |global| is true, the command will
126 // be registered as a global command (be active even when Chrome does not have
135 // |command_name| is optional and if specified, causes only the command with
140 // Update the keybinding prefs (for a command with a matching |extension_id|
141 // and |command_name|) to |keystroke|. If the command had another key assigned
154 // Finds the command with the name |command_name| within an extension with id
156 // VKEY_UNKNOWN) if the command is not found.
158 const std::string& command) const;
160 // If the extension with |extension_id| binds a command to |accelerator|,
161 // returns true and assigns *|command| and *|command_type| to the command and
165 Command* command,
210 bool CanAutoAssign(const Command &command,
213 // Updates the record of |extension|'s most recent suggested command shortcut
217 // Remove suggested key command prefs that apply to commands that have been
221 // Returns true if the user modified a command's shortcut key from the
238 Command* command,