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

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

Issue 1453133002: Eliminate Chromevox log spam. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « chrome/browser/resources/chromeos/chromevox/cvox2/background/desktop_automation_handler.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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');
(...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « chrome/browser/resources/chromeos/chromevox/cvox2/background/desktop_automation_handler.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698