| 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 * Interface for controllers to interact with main SwitchAccess class. | 6 * Interface for controllers to interact with main SwitchAccess class. |
| 7 * | 7 * |
| 8 * @interface | 8 * @interface |
| 9 */ | 9 */ |
| 10 function SwitchAccessInterface() { | 10 function SwitchAccessInterface() { |
| 11 /** | 11 /** |
| 12 * @type {SwitchAccessPrefs} | 12 * @type {SwitchAccessPrefs} |
| 13 */ | 13 */ |
| 14 this.switchAccessPrefs = null; | 14 this.switchAccessPrefs = null; |
| 15 }; | 15 }; |
| 16 | 16 |
| 17 SwitchAccessInterface.prototype = { | 17 SwitchAccessInterface.prototype = { |
| 18 moveToNode: function(doNext) {}, | 18 moveToNode: function(doNext) {}, |
| 19 | 19 |
| 20 doDefault: function() {}, | 20 selectCurrentNode: function() {}, |
| 21 | 21 |
| 22 showOptionsPage: function() {}, | 22 showOptionsPage: function() {}, |
| 23 | 23 |
| 24 performedUserAction: function() {}, | 24 performedUserAction: function() {}, |
| 25 | 25 |
| 26 debugMoveToNext: function() {}, | 26 debugMoveToNext: function() {}, |
| 27 | 27 |
| 28 debugMoveToPrevious: function() {}, | 28 debugMoveToPrevious: function() {}, |
| 29 | 29 |
| 30 debugMoveToFirstChild: function() {}, | 30 debugMoveToFirstChild: function() {}, |
| 31 | 31 |
| 32 debugMoveToParent: function() {} | 32 debugMoveToParent: function() {} |
| 33 }; | 33 }; |
| OLD | NEW |