Lines Matching refs:Command
5 #include "chrome/common/extensions/command.h"
30 "Command key is not supported. Note: Ctrl means Command on Mac";
83 // Either the developer specified Command+foo in the manifest for Mac or
84 // they specified Ctrl and it got normalized to Command (to get Ctrl on
86 // as Command.
90 // If we see "Command+foo" in the Default section it can mean two
93 // on Mac to "Command+foo". This is fine. Treat it as Command.
97 // No other platform supports Command.
187 bool command = (modifiers & ui::EF_COMMAND_DOWN) != 0;
196 // On Mac Command can also be used in combination with Shift or on its own,
198 if (key == ui::VKEY_UNKNOWN || (ctrl && alt) || (command && alt) ||
199 (shift && !ctrl && !alt && !command)) {
212 (shift || ctrl || alt || command)) {
224 // For Mac, we convert "Ctrl" to "Command" and "MacCtrl" to "Ctrl". Other
253 Command::Command() : global_(false) {}
255 Command::Command(const std::string& command_name,
267 Command::~Command() {}
270 std::string Command::CommandPlatform() {
285 ui::Accelerator Command::StringToAccelerator(const std::string& accelerator,
289 ParseImpl(accelerator, Command::CommandPlatform(), 0,
295 std::string Command::AcceleratorToString(const ui::Accelerator& accelerator) {
383 bool Command::IsMediaKey(const ui::Accelerator& accelerator) {
393 bool Command::Parse(const base::DictionaryValue* command,
401 if (!command->GetString(keys::kDescription, &description) ||
416 if (command->GetDictionary(keys::kSuggestedKey, &suggested_key_dict)) {
439 if (command->GetString(keys::kSuggestedKey, &suggested_key_string) &&
451 command->GetBoolean(keys::kGlobal, &global);
456 // Before we normalize Ctrl to Command we must detect when the developer
457 // specified Command in the Default section, which will work on Mac after
461 iter->second.find("Command
521 base::DictionaryValue* Command::ToValue(const Extension* extension,