Lines Matching refs:command
131 * @param {Object} data Description of the network list or command.
348 createCallback_(menu, null, entry.label, entry.command);
481 command: createAddConnectionCallback_('WiFi'),
488 command: createAddConnectionCallback_('Cellular'),
500 entry.command = null;
505 entry.command = function() {
517 command: createAddConnectionCallback_('VPN'),
532 command: callback,
561 command: disconnectCallback,
571 command: function() {
580 command: function() {
588 command: function() {
607 value.command);
722 * @param {{key: string, subtitle: string, command: Function}} data
743 if (this.data.command)
744 this.addEventListener('click', this.data.command);
755 * Adds a command to a menu for modifying network settings.
759 * @param {?(string|!Function)} command Callback function or name
760 * of the command for |networkCommand|.
765 function createCallback_(menu, data, label, command, opt_iconURL) {
780 if (typeof command == 'string') {
784 chrome.send('networkCommand', [type, path, command]);
787 } else if (command != null) {
790 (/** @type {Function} */(command))(data);
795 (/** @type {Function} */(command))();
837 command: createAddConnectionCallback_('WiFi')
841 command: createAddConnectionCallback_('VPN')
958 if (entry.command)
960 /** @type {{key: string, subtitle: string, command: Function}} */(
1034 command: ethernetOptions,
1100 command: enableNetwork});