| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * Class to manage SwitchAccess and interact with other controllers. | 6 * Class to manage SwitchAccess and interact with other controllers. |
| 7 * | 7 * |
| 8 * @constructor | 8 * @constructor |
| 9 * @implements {SwitchAccessInterface} | 9 * @implements {SwitchAccessInterface} |
| 10 */ | 10 */ |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 */ | 68 */ |
| 69 moveToNode: function(doNext) { | 69 moveToNode: function(doNext) { |
| 70 this.automationManager_.moveToNode(doNext); | 70 this.automationManager_.moveToNode(doNext); |
| 71 }, | 71 }, |
| 72 | 72 |
| 73 /** | 73 /** |
| 74 * Perform the default action on the current node. | 74 * Perform the default action on the current node. |
| 75 * | 75 * |
| 76 * @override | 76 * @override |
| 77 */ | 77 */ |
| 78 doDefault: function() { | 78 selectCurrentNode: function() { |
| 79 this.automationManager_.doDefault(); | 79 this.automationManager_.selectCurrentNode(); |
| 80 }, | 80 }, |
| 81 | 81 |
| 82 /** | 82 /** |
| 83 * Open the options page in a new tab. | 83 * Open the options page in a new tab. |
| 84 * | 84 * |
| 85 * @override | 85 * @override |
| 86 */ | 86 */ |
| 87 showOptionsPage: function() { | 87 showOptionsPage: function() { |
| 88 let optionsPage = {url: 'options.html'}; | 88 let optionsPage = {url: 'options.html'}; |
| 89 chrome.tabs.create(optionsPage); | 89 chrome.tabs.create(optionsPage); |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 | 148 |
| 149 /** | 149 /** |
| 150 * Move to the parent of the current node if it has one. | 150 * Move to the parent of the current node if it has one. |
| 151 * | 151 * |
| 152 * @override | 152 * @override |
| 153 */ | 153 */ |
| 154 debugMoveToParent: function() { | 154 debugMoveToParent: function() { |
| 155 this.automationManager_.debugMoveToParent(); | 155 this.automationManager_.debugMoveToParent(); |
| 156 } | 156 } |
| 157 }; | 157 }; |
| OLD | NEW |