| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 Provides output services for ChromeVox. | 6 * @fileoverview Provides output services for ChromeVox. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 goog.provide('Output'); | 9 goog.provide('Output'); |
| 10 goog.provide('Output.EventType'); | 10 goog.provide('Output.EventType'); |
| (...skipping 910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 921 var output = new cvox.NavBraille({ | 921 var output = new cvox.NavBraille({ |
| 922 text: buff, | 922 text: buff, |
| 923 startIndex: startIndex, | 923 startIndex: startIndex, |
| 924 endIndex: endIndex | 924 endIndex: endIndex |
| 925 }); | 925 }); |
| 926 | 926 |
| 927 cvox.ChromeVox.braille.write(output); | 927 cvox.ChromeVox.braille.write(output); |
| 928 } | 928 } |
| 929 | 929 |
| 930 // Display. | 930 // Display. |
| 931 if (cvox.ChromeVox.isChromeOS && | 931 if (this.speechCategory_ != cvox.TtsCategory.LIVE) |
| 932 this.speechCategory_ != cvox.TtsCategory.LIVE) { | |
| 933 chrome.accessibilityPrivate.setFocusRing(this.locations_); | 932 chrome.accessibilityPrivate.setFocusRing(this.locations_); |
| 934 } | |
| 935 }, | 933 }, |
| 936 | 934 |
| 937 /** | 935 /** |
| 938 * Renders the given range using optional context previous range and event | 936 * Renders the given range using optional context previous range and event |
| 939 * type. | 937 * type. |
| 940 * @param {!cursors.Range} range | 938 * @param {!cursors.Range} range |
| 941 * @param {cursors.Range} prevRange | 939 * @param {cursors.Range} prevRange |
| 942 * @param {EventType|Output.EventType} type | 940 * @param {EventType|Output.EventType} type |
| 943 * @param {!Array<Spannable>} buff Buffer to receive rendered output. | 941 * @param {!Array<Spannable>} buff Buffer to receive rendered output. |
| 944 * @private | 942 * @private |
| (...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1644 break; | 1642 break; |
| 1645 } | 1643 } |
| 1646 earconFinder = earconFinder.parent; | 1644 earconFinder = earconFinder.parent; |
| 1647 } | 1645 } |
| 1648 } | 1646 } |
| 1649 return null; | 1647 return null; |
| 1650 } | 1648 } |
| 1651 }; | 1649 }; |
| 1652 | 1650 |
| 1653 }); // goog.scope | 1651 }); // goog.scope |
| OLD | NEW |