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

Side by Side Diff: chrome/browser/resources/chromeos/chromevox/common/description_util.js

Issue 1311463007: Rename some earcons based on actual usage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@earcons_by_name
Patch Set: Didn't mean to rename ALERT, revert that part Created 5 years, 3 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 A utility class for building NavDescriptions from the dom. 6 * @fileoverview A utility class for building NavDescriptions from the dom.
7 */ 7 */
8 8
9 9
10 goog.provide('cvox.DescriptionUtil'); 10 goog.provide('cvox.DescriptionUtil');
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 var traverse = cvox.TraverseMath.getInstance(); 462 var traverse = cvox.TraverseMath.getInstance();
463 speechEngine.parameterize(cvox.MathmlStore.getInstance()); 463 speechEngine.parameterize(cvox.MathmlStore.getInstance());
464 traverse.initialize(node); 464 traverse.initialize(node);
465 var ret = speechEngine.evaluateNode(traverse.activeNode); 465 var ret = speechEngine.evaluateNode(traverse.activeNode);
466 if (ret == []) { 466 if (ret == []) {
467 return [new cvox.NavDescription({'text': 'empty math'})]; 467 return [new cvox.NavDescription({'text': 'empty math'})];
468 } 468 }
469 if (cvox.ChromeVox.verbosity == cvox.VERBOSITY_VERBOSE) { 469 if (cvox.ChromeVox.verbosity == cvox.VERBOSITY_VERBOSE) {
470 ret[ret.length - 1].annotation = 'math'; 470 ret[ret.length - 1].annotation = 'math';
471 } 471 }
472 ret[0].pushEarcon(cvox.Earcon.SPECIAL_CONTENT); 472 ret[0].pushEarcon(cvox.Earcon.MATH);
473 return ret; 473 return ret;
474 }; 474 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698