Searched refs:command_name (Results 1 - 25 of 32) sorted by relevance

12

/external/chromium_org/chrome/browser/extensions/
H A Dextension_commands_global_registry.cc54 const std::string& command_name) {
56 if (ShouldIgnoreCommand(command_name))
72 if (!command_name.empty() && (iter->second.command_name() != command_name))
76 << " " << command_name.c_str()
80 std::make_pair(extension->id(), iter->second.command_name()));
93 const std::string& command_name) {
94 VLOG(0) << "Removing keybinding for " << command_name.c_str();
52 AddExtensionKeybinding( const extensions::Extension* extension, const std::string& command_name) argument
91 RemoveExtensionKeybindingImpl( const ui::Accelerator& accelerator, const std::string& command_name) argument
H A Dextension_commands_global_registry.h59 const std::string& command_name) OVERRIDE;
62 const std::string& command_name) OVERRIDE;
H A Dextension_keybinding_registry.h65 // |command_name| is optional, but if not blank then only the command
69 const std::string& command_name) = 0;
70 // Remove extension bindings for |extension|. |command_name| is optional,
74 const std::string& command_name);
79 const std::string& command_name) = 0;
H A Dextension_keybinding_registry.cc40 const std::string& command_name) {
47 (command_name.empty() || command_name == target->second))
56 RemoveExtensionKeybindingImpl(old->first, command_name);
59 // If a specific command_name was requested, it has now been deleted so no
61 if (!command_name.empty())
38 RemoveExtensionKeybinding( const Extension* extension, const std::string& command_name) argument
/external/chromium_org/chrome/browser/ui/views/extensions/
H A Dextension_keybinding_registry_views.cc39 const std::string& command_name) {
41 if (ShouldIgnoreCommand(command_name))
57 if (!command_name.empty() && (iter->second.command_name() != command_name))
61 std::make_pair(extension->id(), iter->second.command_name()));
77 const std::string& command_name) {
37 AddExtensionKeybinding( const extensions::Extension* extension, const std::string& command_name) argument
75 RemoveExtensionKeybindingImpl( const ui::Accelerator& accelerator, const std::string& command_name) argument
H A Dextension_keybinding_registry_views.h48 const std::string& command_name) OVERRIDE;
51 const std::string& command_name) OVERRIDE;
/external/chromium_org/chrome/common/extensions/
H A Dcommand.h27 Command(const std::string& command_name,
39 const std::string& command_name);
47 const std::string& command_name,
57 const std::string& command_name() const { return command_name_; } function in class:extensions::Command
H A Dcommand_unittest.cc58 const char* command_name; member in struct:__anon6969
63 // test |command_name| being blank as it is used as a key in the manifest,
127 SCOPED_TRACE(std::string("Command name: |") + kTests[i].command_name +
135 command.Parse(input.get(), kTests[i].command_name, i, &error);
141 EXPECT_STREQ(kTests[i].command_name, command.command_name().c_str());
155 result = command.Parse(input.get(), kTests[i].command_name, i, &error);
161 EXPECT_STREQ(kTests[i].command_name, command.command_name().c_str());
170 std::string command_name local
[all...]
H A Dcommand.cc33 bool IsNamedCommand(const std::string& command_name) { argument
34 return command_name != values::kPageActionCommandEvent &&
35 command_name != values::kBrowserActionCommandEvent &&
36 command_name != values::kScriptBadgeCommandEvent;
257 Command::Command(const std::string& command_name, argument
261 : command_name_(command_name),
266 IsNamedCommand(command_name), &error);
288 const std::string& command_name) {
292 IsNamedCommand(command_name), &error);
385 const std::string& command_name,
287 StringToAccelerator(const std::string& accelerator, const std::string& command_name) argument
384 Parse(const base::DictionaryValue* command, const std::string& command_name, int index, base::string16* error) argument
[all...]
/external/chromium_org/chrome/browser/ui/gtk/extensions/
H A Dextension_keybinding_registry_gtk.cc60 const std::string& command_name) {
72 if (!command_name.empty() && (iter->second.command_name() != command_name))
77 std::make_pair(extension->id(), iter->second.command_name()));
108 std::make_pair(extension->id(), browser_action.command_name()));
122 std::make_pair(extension->id(), page_action.command_name()));
136 std::make_pair(extension->id(), script_badge.command_name()));
144 const std::string& command_name) {
147 if (!ShouldIgnoreCommand(command_name)) {
58 AddExtensionKeybinding( const extensions::Extension* extension, const std::string& command_name) argument
142 RemoveExtensionKeybindingImpl( const ui::Accelerator& accelerator, const std::string& command_name) argument
[all...]
H A Dextension_keybinding_registry_gtk.h60 const std::string& command_name) OVERRIDE;
63 const std::string& command_name) OVERRIDE;
/external/chromium_org/chrome/browser/ui/cocoa/extensions/
H A Dextension_keybinding_registry_cocoa.h57 const std::string& command_name) OVERRIDE;
60 const std::string& command_name) OVERRIDE;
/external/chromium_org/chrome/browser/extensions/api/commands/
H A Dcommand_service.cc37 const char kCommandName[] = "command_name";
191 FindCommandByName(extension_id, iter->second.command_name());
205 (*command_map)[iter->second.command_name()] = command;
214 std::string command_name,
222 (command_name != manifest_values::kPageActionCommandEvent &&
223 command_name != manifest_values::kBrowserActionCommandEvent &&
224 command_name != manifest_values::kScriptBadgeCommandEvent));
251 keybinding->SetString(kCommandName, command_name);
257 std::make_pair(extension_id, command_name);
288 const std::string& command_name,
211 AddKeybindingPref( const ui::Accelerator& accelerator, std::string extension_id, std::string command_name, bool allow_overrides, bool global) argument
287 UpdateKeybindingPrefs(const std::string& extension_id, const std::string& command_name, const std::string& keystroke) argument
302 SetScope(const std::string& extension_id, const std::string& command_name, bool global) argument
330 std::string command_name; local
421 RemoveKeybindingPrefs(const std::string& extension_id, const std::string& command_name) argument
[all...]
H A Dcommand_service.h119 // |extension_id| and command with the name |command_name|. If
128 std::string command_name,
133 // |command_name| is optional and if specified, causes only the command with
134 // the name |command_name| to be removed.
136 const std::string& command_name);
139 // and |command_name|) to |keystroke|. If the command had another key assigned
142 const std::string& command_name,
149 const std::string& command_name,
152 // Finds the command with the name |command_name| within an extension with id
H A Dcommands.cc14 result->SetString("name", command.command_name());
64 extension_->id(), iter->second.command_name());
/external/chromium_org/chrome/common/extensions/api/commands/
H A Dcommands_handler.cc108 std::string command_name = binding->command_name(); local
109 if (command_name == manifest_values::kBrowserActionCommandEvent) {
111 } else if (command_name ==
114 } else if (command_name ==
118 if (command_name[0] != '_') // All commands w/underscore are reserved.
119 commands_info->named_commands[command_name] = *binding.get();
H A Dcommands_manifest_unittest.cc45 ASSERT_STREQ("feature1", named_command->command_name().c_str());
53 browser_action->command_name().c_str());
61 page_action->command_name().c_str());
/external/chromium_org/chrome/browser/ui/webui/extensions/
H A Dcommand_handler.cc90 std::string command_name; local
93 !args->GetString(1, &command_name) ||
101 command_service->UpdateKeybindingPrefs(extension_id, command_name, keystroke);
109 std::string command_name; local
112 !args->GetString(1, &command_name) ||
120 if (command_service->SetScope(extension_id, command_name, global))
182 (*extension)->id(), iter->second.command_name());
/external/chromium_org/chrome/test/chromedriver/
H A Dcommands.h55 const char* command_name,
H A Dcommands.cc131 const char* command_name,
150 VLOG(0) << "COMMAND " << command_name << " "
193 VLOG(0) << "RESPONSE " << command_name
212 const char* command_name,
226 command_name,
130 ExecuteSessionCommandOnSessionThread( const char* command_name, const SessionCommand& command, bool return_ok_without_session, scoped_ptr<base::DictionaryValue> params, scoped_refptr<base::SingleThreadTaskRunner> cmd_task_runner, const CommandCallback& callback_on_cmd, const base::Closure& terminate_on_cmd) argument
210 ExecuteSessionCommand( SessionThreadMap* session_thread_map, const char* command_name, const SessionCommand& command, bool return_ok_without_session, const base::DictionaryValue& params, const std::string& session_id, const CommandCallback& callback) argument
/external/chromium/sdch/open-vcdiff/src/
H A Dvcdiff_main.cc581 const char* const command_name = argv[0]; local
585 std::cerr << command_name << ": Must specify exactly one command option"
587 ShowUsageWithFlagsRestrict(command_name, "vcdiff");
592 std::cerr << command_name << " " << command_option
594 ShowUsageWithFlagsRestrict(command_name, "vcdiff");
599 std::cerr << command_name << ": Option --buffersize cannot be 0"
601 ShowUsageWithFlagsRestrict(command_name, "vcdiff");
626 std::cerr << command_name
646 std::cerr << command_name << ": Unrecognized command option "
648 ShowUsageWithFlagsRestrict(command_name, "vcdif
[all...]
/external/chromium_org/sdch/open-vcdiff/src/
H A Dvcdiff_main.cc585 const char* const command_name = argv[0]; local
589 std::cerr << command_name << ": Must specify exactly one command option"
591 ShowUsageWithFlagsRestrict(command_name, "vcdiff");
596 std::cerr << command_name << " " << command_option
598 ShowUsageWithFlagsRestrict(command_name, "vcdiff");
603 std::cerr << command_name << ": Option --buffersize cannot be 0"
605 ShowUsageWithFlagsRestrict(command_name, "vcdiff");
630 std::cerr << command_name
650 std::cerr << command_name << ": Unrecognized command option "
652 ShowUsageWithFlagsRestrict(command_name, "vcdif
[all...]
/external/open-vcdiff/src/
H A Dvcdiff_main.cc585 const char* const command_name = argv[0]; local
589 std::cerr << command_name << ": Must specify exactly one command option"
591 ShowUsageWithFlagsRestrict(command_name, "vcdiff");
596 std::cerr << command_name << " " << command_option
598 ShowUsageWithFlagsRestrict(command_name, "vcdiff");
603 std::cerr << command_name << ": Option --buffersize cannot be 0"
605 ShowUsageWithFlagsRestrict(command_name, "vcdiff");
630 std::cerr << command_name
650 std::cerr << command_name << ": Unrecognized command option "
652 ShowUsageWithFlagsRestrict(command_name, "vcdif
[all...]
/external/chromium_org/tools/telemetry/telemetry/
H A Dtest_runner.py209 command_name = 'run'
212 command_name = arg
217 if command.name.startswith(command_name)]
220 % (command_name, _GetScriptName()))
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/tool/
H A Dmulticommandtool.py266 def command_by_name(self, command_name):
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)

Completed in 1847 milliseconds

12