| Index: chrome/browser/resources/chromeos/switch_access/switch_access_interface.js
|
| diff --git a/chrome/browser/resources/chromeos/switch_access/switch_access_interface.js b/chrome/browser/resources/chromeos/switch_access/switch_access_interface.js
|
| index 8de1a9d166c958d1ed98cfe6b12bb530d11f73cd..27413ed499d2e70d2bd36873f46a9b18787ecfa1 100644
|
| --- a/chrome/browser/resources/chromeos/switch_access/switch_access_interface.js
|
| +++ b/chrome/browser/resources/chromeos/switch_access/switch_access_interface.js
|
| @@ -7,27 +7,117 @@
|
| *
|
| * @interface
|
| */
|
| -function SwitchAccessInterface() {
|
| - /**
|
| - * @type {SwitchAccessPrefs}
|
| - */
|
| - this.switchAccessPrefs = null;
|
| -}
|
| +function SwitchAccessInterface() {}
|
|
|
| SwitchAccessInterface.prototype = {
|
| + /**
|
| + * Move to the next/previous interesting node. If |doNext| is true, move to
|
| + * the next node. Otherwise, move to the previous node.
|
| + *
|
| + * @param {boolean} doNext
|
| + */
|
| moveToNode: function(doNext) {},
|
|
|
| + /**
|
| + * Perform the default action on the current node.
|
| + */
|
| selectCurrentNode: function() {},
|
|
|
| + /**
|
| + * Open the options page in a new tab.
|
| + */
|
| showOptionsPage: function() {},
|
|
|
| + /**
|
| + * Return a list of the names of all user commands.
|
| + *
|
| + * @return {!Array<string>}
|
| + */
|
| + getCommands: function() {},
|
| +
|
| + /**
|
| + * Return the default key code for a command.
|
| + *
|
| + * @param {string} command
|
| + * @return {number}
|
| + */
|
| + getDefaultKeyCodeFor: function(command) {},
|
| +
|
| + /**
|
| + * Run the function binding for the specified command.
|
| + *
|
| + * @param {string} command
|
| + */
|
| + runCommand: function(command) {},
|
| +
|
| + /**
|
| + * Perform actions as the result of actions by the user. Currently, restarts
|
| + * auto-scan if it is enabled.
|
| + */
|
| performedUserAction: function() {},
|
|
|
| + /**
|
| + * Set the value of the preference |key| to |value| in chrome.storage.sync.
|
| + * this.prefs_ is not set until handleStorageChange_.
|
| + *
|
| + * @param {string} key
|
| + * @param {boolean|string|number} value
|
| + */
|
| + setPref: function(key, value) {},
|
| +
|
| + /**
|
| + * Get the value of type 'boolean' of the preference |key|. Will throw a type
|
| + * error if the value of |key| is not 'boolean'.
|
| + *
|
| + * @param {string} key
|
| + * @return {boolean}
|
| + */
|
| + getBooleanPref: function(key) {},
|
| +
|
| + /**
|
| + * Get the value of type 'number' of the preference |key|. Will throw a type
|
| + * error if the value of |key| is not 'number'.
|
| + *
|
| + * @param {string} key
|
| + * @return {number}
|
| + */
|
| + getNumberPref: function(key) {},
|
| +
|
| + /**
|
| + * Get the value of type 'string' of the preference |key|. Will throw a type
|
| + * error if the value of |key| is not 'string'.
|
| + *
|
| + * @param {string} key
|
| + * @return {string}
|
| + */
|
| + getStringPref: function(key) {},
|
| +
|
| + /**
|
| + * Returns true if |keyCode| is already used to run a command from the
|
| + * keyboard.
|
| + *
|
| + * @param {number} keyCode
|
| + * @return {boolean}
|
| + */
|
| + keyCodeIsUsed: function(keyCode) {},
|
| +
|
| + /**
|
| + * Move to the next sibling of the current node if it has one.
|
| + */
|
| debugMoveToNext: function() {},
|
|
|
| + /**
|
| + * Move to the previous sibling of the current node if it has one.
|
| + */
|
| debugMoveToPrevious: function() {},
|
|
|
| + /**
|
| + * Move to the first child of the current node if it has one.
|
| + */
|
| debugMoveToFirstChild: function() {},
|
|
|
| + /**
|
| + * Move to the parent of the current node if it has one.
|
| + */
|
| debugMoveToParent: function() {}
|
| };
|
|
|