/external/chromium_org/chrome/browser/extensions/api/commands/ |
D | command_service.cc | 199 FindCommandByName(extension_id, iter->second.command_name()); in GetNamedCommands() 213 (*command_map)[iter->second.command_name()] = command; in GetNamedCommands() 222 std::string command_name, in AddKeybindingPref() argument 230 Command existing_command = FindCommandByName(extension_id, command_name); in AddKeybindingPref() 237 (command_name != manifest_values::kPageActionCommandEvent && in AddKeybindingPref() 238 command_name != manifest_values::kBrowserActionCommandEvent)); in AddKeybindingPref() 266 RemoveKeybindingPrefs(extension_id, command_name); in AddKeybindingPref() 271 keybinding->SetString(kCommandName, command_name); in AddKeybindingPref() 281 suggested_key_prefs->Set(command_name, command_keys.release()); in AddKeybindingPref() 287 std::make_pair(extension_id, command_name); in AddKeybindingPref() [all …]
|
D | command_service.h | 130 std::string command_name, 138 const std::string& command_name); 144 const std::string& command_name, 151 const std::string& command_name, 224 const std::string& command_name); 229 const std::string& command_name); 234 const std::string& command_name);
|
D | commands.cc | 15 result->SetString("name", command.command_name()); in CreateCommandValue() 57 extension_->id(), iter->second.command_name()); in RunSync()
|
/external/chromium_org/chrome/browser/ui/views/extensions/ |
D | extension_keybinding_registry_views.cc | 37 const std::string& command_name) { in AddExtensionKeybinding() argument 39 if (ShouldIgnoreCommand(command_name)) in AddExtensionKeybinding() 55 if (!command_name.empty() && (iter->second.command_name() != command_name)) in AddExtensionKeybinding() 63 AddEventTarget(accelerator, extension->id(), iter->second.command_name()); in AddExtensionKeybinding() 69 const std::string& command_name) { in RemoveExtensionKeybindingImpl() argument 75 std::string extension_id, command_name; in AcceleratorPressed() local 76 GetFirstTarget(accelerator, &extension_id, &command_name); in AcceleratorPressed()
|
D | extension_keybinding_registry_views.h | 48 const std::string& command_name) OVERRIDE; 51 const std::string& command_name) OVERRIDE;
|
/external/chromium_org/chrome/browser/extensions/ |
D | extension_commands_global_registry.cc | 71 const std::string& command_name) { in AddExtensionKeybinding() argument 73 if (ShouldIgnoreCommand(command_name)) in AddExtensionKeybinding() 89 if (!command_name.empty() && (iter->second.command_name() != command_name)) in AddExtensionKeybinding() 94 << " " << command_name.c_str() in AddExtensionKeybinding() 103 AddEventTarget(accelerator, extension->id(), iter->second.command_name()); in AddExtensionKeybinding() 109 const std::string& command_name) { in RemoveExtensionKeybindingImpl() argument 110 VLOG(0) << "Removing keybinding for " << command_name.c_str(); in RemoveExtensionKeybindingImpl()
|
D | extension_keybinding_registry.cc | 50 const std::string& command_name) { in RemoveExtensionKeybinding() argument 57 (command_name.empty() || command_name == target->second)) in RemoveExtensionKeybinding() 66 RemoveExtensionKeybindingImpl(old->first, command_name); in RemoveExtensionKeybinding() 71 if (!command_name.empty()) in RemoveExtensionKeybinding() 137 const std::string& command_name) { in AddEventTarget() argument 139 std::make_pair(extension_id, command_name)); in AddEventTarget() 149 std::string* command_name) const { in GetFirstTarget() 157 *command_name = first_target->second; in GetFirstTarget()
|
D | extension_keybinding_registry.h | 78 const std::string& command_name) = 0; 83 const std::string& command_name); 88 const std::string& command_name) = 0; 110 const std::string& command_name); 119 std::string* command_name) const;
|
D | extension_commands_global_registry.h | 75 const std::string& command_name) OVERRIDE; 78 const std::string& command_name) OVERRIDE;
|
/external/chromium_org/chrome/common/extensions/ |
D | command_unittest.cc | 20 const char* command_name; member 34 SCOPED_TRACE(std::string("Command name: |") + data.command_name + "| key: |" + in CheckParse() 47 bool result = command.Parse(input.get(), data.command_name, i, &error); in CheckParse() 52 EXPECT_STREQ(data.command_name, command.command_name().c_str()); in CheckParse() 78 bool result = command.Parse(input.get(), data.command_name, i, &error); in CheckParse() 84 EXPECT_STREQ(data.command_name, command.command_name().c_str()); in CheckParse() 200 std::string command_name = "foo"; in TEST() local 216 EXPECT_TRUE(command.Parse(input.get(), command_name, 0, &error)); in TEST() 219 EXPECT_STREQ(command_name.c_str(), command.command_name().c_str()); in TEST() 241 EXPECT_FALSE(command.Parse(input.get(), command_name, 0, &error)); in TEST() [all …]
|
D | command.h | 27 Command(const std::string& command_name, 39 const std::string& command_name); 52 const std::string& command_name, 62 const std::string& command_name() const { return command_name_; } in command_name() function
|
D | command.cc | 31 bool IsNamedCommand(const std::string& command_name) { in IsNamedCommand() argument 32 return command_name != values::kPageActionCommandEvent && in IsNamedCommand() 33 command_name != values::kBrowserActionCommandEvent; in IsNamedCommand() 263 Command::Command(const std::string& command_name, in Command() argument 267 : command_name_(command_name), in Command() 272 IsNamedCommand(command_name), &error); in Command() 294 const std::string& command_name) { in StringToAccelerator() argument 298 IsNamedCommand(command_name), &error); in StringToAccelerator() 407 const std::string& command_name, in Parse() argument 410 DCHECK(!command_name.empty()); in Parse() [all …]
|
/external/chromium_org/chrome/browser/ui/cocoa/extensions/ |
D | extension_keybinding_registry_cocoa.mm | 52 std::string command_name; 53 if (!GetFirstTarget(accelerator, &extension_id, &command_name)) 63 if (command_name == values::kPageActionCommandEvent) { 65 } else if (command_name == values::kBrowserActionCommandEvent) { 86 const std::string& command_name) { 98 if (!command_name.empty() && (iter->second.command_name() != command_name)) 103 iter->second.command_name()); 117 browser_action.command_name()); 129 page_action.command_name()); 135 const std::string& command_name) {
|
D | extension_keybinding_registry_cocoa.h | 59 const std::string& command_name) OVERRIDE; 62 const std::string& command_name) OVERRIDE;
|
/external/chromium_org/chrome/common/extensions/api/commands/ |
D | commands_handler.cc | 111 std::string command_name = binding->command_name(); in Parse() local 112 if (command_name == manifest_values::kBrowserActionCommandEvent) { in Parse() 114 } else if (command_name == in Parse() 118 if (command_name[0] != '_') // All commands w/underscore are reserved. in Parse() 119 commands_info->named_commands[command_name] = *binding.get(); in Parse()
|
D | commands_manifest_unittest.cc | 46 ASSERT_STREQ("feature1", named_command->command_name().c_str()); in TEST_F() 55 browser_action->command_name().c_str()); in TEST_F() 63 page_action->command_name().c_str()); in TEST_F()
|
/external/chromium_org/chrome/browser/ui/webui/extensions/ |
D | command_handler.cc | 92 std::string command_name; in HandleSetExtensionCommandShortcut() local 95 !args->GetString(1, &command_name) || in HandleSetExtensionCommandShortcut() 103 command_service->UpdateKeybindingPrefs(extension_id, command_name, keystroke); in HandleSetExtensionCommandShortcut() 111 std::string command_name; in HandleSetCommandScope() local 114 !args->GetString(1, &command_name) || in HandleSetCommandScope() 122 if (command_service->SetScope(extension_id, command_name, global)) in HandleSetCommandScope() 184 (*extension)->id(), iter->second.command_name()); in GetAllCommands()
|
/external/chromium_org/sdch/open-vcdiff/src/ |
D | vcdiff_main.cc | 585 const char* const command_name = argv[0]; in main() local 589 std::cerr << command_name << ": Must specify exactly one command option" in main() 591 ShowUsageWithFlagsRestrict(command_name, "vcdiff"); in main() 596 std::cerr << command_name << " " << command_option in main() 598 ShowUsageWithFlagsRestrict(command_name, "vcdiff"); in main() 603 std::cerr << command_name << ": Option --buffersize cannot be 0" in main() 605 ShowUsageWithFlagsRestrict(command_name, "vcdiff"); in main() 630 std::cerr << command_name in main() 650 std::cerr << command_name << ": Unrecognized command option " in main() 652 ShowUsageWithFlagsRestrict(command_name, "vcdiff"); in main()
|
/external/chromium_org/chrome/test/chromedriver/ |
D | commands.cc | 132 const char* command_name, in ExecuteSessionCommandOnSessionThread() argument 151 VLOG(0) << "COMMAND " << command_name << " " in ExecuteSessionCommandOnSessionThread() 157 Status status = NotifyCommandListenersBeforeCommand(session, command_name); in ExecuteSessionCommandOnSessionThread() 205 VLOG(0) << "RESPONSE " << command_name in ExecuteSessionCommandOnSessionThread() 231 const char* command_name, in ExecuteSessionCommand() argument 245 command_name, in ExecuteSessionCommand()
|
D | command_listener_proxy.cc | 17 Status CommandListenerProxy::BeforeCommand(const std::string& command_name) { in BeforeCommand() argument 18 return command_listener_->BeforeCommand(command_name); in BeforeCommand()
|
D | command_listener_proxy_unittest.cc | 20 virtual Status BeforeCommand(const std::string& command_name) OVERRIDE { in BeforeCommand() argument 22 EXPECT_STREQ("cmd", command_name.c_str()); in BeforeCommand()
|
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/tool/ |
D | multicommandtool.py | 266 def command_by_name(self, command_name): argument 268 if command_name == command.name: 293 (command_name, args) = self._split_command_name_from_args(argv[1:]) 298 command = self.command_by_name(command_name) or self.help_command 300 option_parser.error("%s is not a recognized command" % command_name)
|
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/tool/bot/ |
D | commitannouncer.py | 139 command_name = message[len(prefix):].strip() 140 if command_name in self.commands: 141 return self.commands[command_name]
|
/external/lldb/source/API/ |
D | SBCommandInterpreter.cpp | 363 SBCommandInterpreter::SetCommandOverrideCallback (const char *command_name, in SetCommandOverrideCallback() argument 367 if (command_name && command_name[0] && m_opaque_ptr) in SetCommandOverrideCallback() 369 std::string command_name_str (command_name); in SetCommandOverrideCallback()
|
/external/chromium_org/tools/telemetry/telemetry/ |
D | test_runner.py | 362 command_name = 'run' 365 command_name = arg 369 commands = _MatchingCommands(command_name) 372 % (command_name, _ScriptName()))
|