| 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 30 matching lines...) Expand all Loading... |
| 41 ChromeVoxState.instance; | 41 ChromeVoxState.instance; |
| 42 | 42 |
| 43 /** | 43 /** |
| 44 * Holds the un-composite tts object. | 44 * Holds the un-composite tts object. |
| 45 * @type {Object} | 45 * @type {Object} |
| 46 */ | 46 */ |
| 47 ChromeVoxState.backgroundTts; | 47 ChromeVoxState.backgroundTts; |
| 48 | 48 |
| 49 /** | 49 /** |
| 50 * @type {boolean} | 50 * @type {boolean} |
| 51 */ | 51 */ |
| 52 ChromeVoxState.isReadingContinuously; | 52 ChromeVoxState.isReadingContinuously; |
| 53 |
| 54 /** |
| 55 * The node the user has requested to display on a refreshable braille |
| 56 * display as an image, rather than as text. |
| 57 * @type {chrome.automation.AutomationNode}; |
| 58 */ |
| 59 ChromeVoxState.nodeDisplayingBrailleImage; |
| 53 | 60 |
| 54 ChromeVoxState.prototype = { | 61 ChromeVoxState.prototype = { |
| 55 /** @type {ChromeVoxMode} */ | 62 /** @type {ChromeVoxMode} */ |
| 56 get mode() { | 63 get mode() { |
| 57 return this.getMode(); | 64 return this.getMode(); |
| 58 }, | 65 }, |
| 59 | 66 |
| 60 /** | 67 /** |
| 61 * @return {ChromeVoxMode} The current mode. | 68 * @return {ChromeVoxMode} The current mode. |
| 62 * @protected | 69 * @protected |
| (...skipping 12 matching lines...) Expand all Loading... |
| 75 * @protected | 82 * @protected |
| 76 */ | 83 */ |
| 77 getCurrentRange: function() { | 84 getCurrentRange: function() { |
| 78 return null; | 85 return null; |
| 79 }, | 86 }, |
| 80 | 87 |
| 81 /** | 88 /** |
| 82 * @param {cursors.Range} newRange The new range. | 89 * @param {cursors.Range} newRange The new range. |
| 83 */ | 90 */ |
| 84 setCurrentRange: goog.abstractMethod, | 91 setCurrentRange: goog.abstractMethod, |
| 92 |
| 93 |
| 85 }; | 94 }; |
| OLD | NEW |