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 718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
729 var output = new cvox.NavBraille({ | 729 var output = new cvox.NavBraille({ |
730 text: buff, | 730 text: buff, |
731 startIndex: startIndex, | 731 startIndex: startIndex, |
732 endIndex: endIndex | 732 endIndex: endIndex |
733 }); | 733 }); |
734 | 734 |
735 cvox.ChromeVox.braille.write(output); | 735 cvox.ChromeVox.braille.write(output); |
736 } | 736 } |
737 | 737 |
738 // Display. | 738 // Display. |
739 chrome.accessibilityPrivate.setFocusRing(this.locations_); | 739 if (cvox.ChromeVox.isChromeOS) |
| 740 chrome.accessibilityPrivate.setFocusRing(this.locations_); |
740 }, | 741 }, |
741 | 742 |
742 /** | 743 /** |
743 * Renders the given range using optional context previous range and event | 744 * Renders the given range using optional context previous range and event |
744 * type. | 745 * type. |
745 * @param {!cursors.Range} range | 746 * @param {!cursors.Range} range |
746 * @param {cursors.Range} prevRange | 747 * @param {cursors.Range} prevRange |
747 * @param {chrome.automation.EventType|string} type | 748 * @param {chrome.automation.EventType|string} type |
748 * @param {!Array<Spannable>} buff Buffer to receive rendered output. | 749 * @param {!Array<Spannable>} buff Buffer to receive rendered output. |
749 * @private | 750 * @private |
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1321 elem.end); | 1322 elem.end); |
1322 }); | 1323 }); |
1323 spansToRemove.forEach(result.removeSpan.bind(result)); | 1324 spansToRemove.forEach(result.removeSpan.bind(result)); |
1324 separator = Output.SPACE; | 1325 separator = Output.SPACE; |
1325 }); | 1326 }); |
1326 return result; | 1327 return result; |
1327 } | 1328 } |
1328 }; | 1329 }; |
1329 | 1330 |
1330 }); // goog.scope | 1331 }); // goog.scope |
OLD | NEW |