| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 * @fileoverview An interface for querying and modifying the global | 6 * @fileoverview An interface for querying and modifying the global |
| 7 * ChromeVox state, to avoid direct dependencies on the Background | 7 * ChromeVox state, to avoid direct dependencies on the Background |
| 8 * object and to facilitate mocking for tests. | 8 * object and to facilitate mocking for tests. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 }, | 46 }, |
| 47 | 47 |
| 48 /** | 48 /** |
| 49 * @return {ChromeVoxMode} The current mode. | 49 * @return {ChromeVoxMode} The current mode. |
| 50 * @protected | 50 * @protected |
| 51 */ | 51 */ |
| 52 getMode: function() { | 52 getMode: function() { |
| 53 return ChromeVoxMode.NEXT; | 53 return ChromeVoxMode.NEXT; |
| 54 }, | 54 }, |
| 55 | 55 |
| 56 /** | |
| 57 * Sets the current ChromeVox mode. | |
| 58 * @param {ChromeVoxMode} mode | |
| 59 * @param {boolean=} opt_injectClassic Injects ChromeVox classic into tabs; | |
| 60 * defaults to false. | |
| 61 */ | |
| 62 setMode: goog.abstractMethod, | |
| 63 | |
| 64 /** | |
| 65 * Refreshes the current mode based on a node. | |
| 66 * @param {!chrome.automation.AutomationNode} url | |
| 67 */ | |
| 68 refreshMode: goog.abstractMethod, | |
| 69 | |
| 70 /** @type {cursors.Range} */ | 56 /** @type {cursors.Range} */ |
| 71 get currentRange() { | 57 get currentRange() { |
| 72 return this.getCurrentRange(); | 58 return this.getCurrentRange(); |
| 73 }, | 59 }, |
| 74 | 60 |
| 75 /** | 61 /** |
| 76 * @return {cursors.Range} The current range. | 62 * @return {cursors.Range} The current range. |
| 77 * @protected | 63 * @protected |
| 78 */ | 64 */ |
| 79 getCurrentRange: function() { | 65 getCurrentRange: function() { |
| 80 return null; | 66 return null; |
| 81 }, | 67 }, |
| 82 | 68 |
| 83 /** | 69 /** |
| 84 * @param {cursors.Range} newRange The new range. | 70 * @param {cursors.Range} newRange The new range. |
| 85 */ | 71 */ |
| 86 setCurrentRange: goog.abstractMethod, | 72 setCurrentRange: goog.abstractMethod, |
| 87 }; | 73 }; |
| OLD | NEW |