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 23 matching lines...) Expand all Loading... |
34 | 34 |
35 /** | 35 /** |
36 * Handles interactions with the accessibility tree, including moving to and | 36 * Handles interactions with the accessibility tree, including moving to and |
37 * selecting nodes. | 37 * selecting nodes. |
38 * | 38 * |
39 * @private {AutomationManager} | 39 * @private {AutomationManager} |
40 */ | 40 */ |
41 this.automationManager_ = null; | 41 this.automationManager_ = null; |
42 | 42 |
43 this.init_(); | 43 this.init_(); |
44 }; | 44 } |
45 | 45 |
46 SwitchAccess.prototype = { | 46 SwitchAccess.prototype = { |
47 /** | 47 /** |
48 * Set up preferences, controllers, and event listeners. | 48 * Set up preferences, controllers, and event listeners. |
49 * | 49 * |
50 * @private | 50 * @private |
51 */ | 51 */ |
52 init_: function() { | 52 init_: function() { |
53 this.switchAccessPrefs = new SwitchAccessPrefs(); | 53 this.switchAccessPrefs = new SwitchAccessPrefs(); |
54 this.autoScanManager_ = new AutoScanManager(this); | 54 this.autoScanManager_ = new AutoScanManager(this); |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 /** | 157 /** |
158 * Move to the parent of the current node if it has one. | 158 * Move to the parent of the current node if it has one. |
159 * | 159 * |
160 * @override | 160 * @override |
161 */ | 161 */ |
162 debugMoveToParent: function() { | 162 debugMoveToParent: function() { |
163 if (this.automationManager_) | 163 if (this.automationManager_) |
164 this.automationManager_.debugMoveToParent(); | 164 this.automationManager_.debugMoveToParent(); |
165 } | 165 } |
166 }; | 166 }; |
OLD | NEW |