Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(264)

Side by Side Diff: chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js

Issue 2104663003: Prepare ChromeVox for webstore release. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix key maps. Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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');
11 11
12 goog.require('EarconEngine'); 12 goog.require('EarconEngine');
13 goog.require('Spannable'); 13 goog.require('Spannable');
14 goog.require('Stubs');
14 goog.require('constants'); 15 goog.require('constants');
15 goog.require('cursors.Cursor'); 16 goog.require('cursors.Cursor');
16 goog.require('cursors.Range'); 17 goog.require('cursors.Range');
17 goog.require('cursors.Unit'); 18 goog.require('cursors.Unit');
18 goog.require('cvox.AbstractEarcons'); 19 goog.require('cvox.AbstractEarcons');
19 goog.require('cvox.ChromeVox'); 20 goog.require('cvox.ChromeVox');
20 goog.require('cvox.NavBraille'); 21 goog.require('cvox.NavBraille');
21 goog.require('cvox.TtsCategory'); 22 goog.require('cvox.TtsCategory');
22 goog.require('cvox.ValueSelectionSpan'); 23 goog.require('cvox.ValueSelectionSpan');
23 goog.require('cvox.ValueSpan'); 24 goog.require('cvox.ValueSpan');
(...skipping 897 matching lines...) Expand 10 before | Expand all | Expand 10 after
921 var output = new cvox.NavBraille({ 922 var output = new cvox.NavBraille({
922 text: buff, 923 text: buff,
923 startIndex: startIndex, 924 startIndex: startIndex,
924 endIndex: endIndex 925 endIndex: endIndex
925 }); 926 });
926 927
927 cvox.ChromeVox.braille.write(output); 928 cvox.ChromeVox.braille.write(output);
928 } 929 }
929 930
930 // Display. 931 // Display.
931 if (cvox.ChromeVox.isChromeOS && 932 if (this.speechCategory_ != cvox.TtsCategory.LIVE)
932 this.speechCategory_ != cvox.TtsCategory.LIVE) {
933 chrome.accessibilityPrivate.setFocusRing(this.locations_); 933 chrome.accessibilityPrivate.setFocusRing(this.locations_);
934 }
935 }, 934 },
936 935
937 /** 936 /**
938 * Renders the given range using optional context previous range and event 937 * Renders the given range using optional context previous range and event
939 * type. 938 * type.
940 * @param {!cursors.Range} range 939 * @param {!cursors.Range} range
941 * @param {cursors.Range} prevRange 940 * @param {cursors.Range} prevRange
942 * @param {EventType|Output.EventType} type 941 * @param {EventType|Output.EventType} type
943 * @param {!Array<Spannable>} buff Buffer to receive rendered output. 942 * @param {!Array<Spannable>} buff Buffer to receive rendered output.
944 * @private 943 * @private
(...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after
1644 break; 1643 break;
1645 } 1644 }
1646 earconFinder = earconFinder.parent; 1645 earconFinder = earconFinder.parent;
1647 } 1646 }
1648 } 1647 }
1649 return null; 1648 return null;
1650 } 1649 }
1651 }; 1650 };
1652 1651
1653 }); // goog.scope 1652 }); // goog.scope
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698