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

Side by Side Diff: chrome/browser/resources/chromeos/chromevox/walkers/math_shifter.js

Issue 1306773003: Make earcon ids strings instead of numbers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_unused_earcons
Patch Set: Fixed test 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 class for walking mathml expressions. 6 * @fileoverview A class for walking mathml expressions.
7 */ 7 */
8 8
9 goog.provide('cvox.MathShifter'); 9 goog.provide('cvox.MathShifter');
10 10
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 }; 82 };
83 83
84 84
85 /** 85 /**
86 * @override 86 * @override
87 */ 87 */
88 cvox.MathShifter.prototype.getDescription = function(prevSel, sel) { 88 cvox.MathShifter.prototype.getDescription = function(prevSel, sel) {
89 var descs = cvox.SpeechRuleEngine.getInstance().evaluateNode( 89 var descs = cvox.SpeechRuleEngine.getInstance().evaluateNode(
90 cvox.TraverseMath.getInstance().activeNode); 90 cvox.TraverseMath.getInstance().activeNode);
91 if (this.bumped_ && descs.length > 0) { 91 if (this.bumped_ && descs.length > 0) {
92 descs[0].pushEarcon(cvox.AbstractEarcons.WRAP_EDGE); 92 descs[0].pushEarcon(cvox.Earcon.WRAP_EDGE);
93 } 93 }
94 return descs; 94 return descs;
95 }; 95 };
96 96
97 97
98 /** 98 /**
99 * @override 99 * @override
100 */ 100 */
101 cvox.MathShifter.prototype.getBraille = function(prevSel, sel) { 101 cvox.MathShifter.prototype.getBraille = function(prevSel, sel) {
102 return new cvox.NavBraille({ 102 return new cvox.NavBraille({
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 158
159 159
160 /** 160 /**
161 * The active domain of the MathShifter. 161 * The active domain of the MathShifter.
162 * 162 *
163 * @return {string} The name of the current Math Domain. 163 * @return {string} The name of the current Math Domain.
164 */ 164 */
165 cvox.MathShifter.prototype.getDomainMsg = function() { 165 cvox.MathShifter.prototype.getDomainMsg = function() {
166 return cvox.TraverseMath.getInstance().domain; 166 return cvox.TraverseMath.getInstance().domain;
167 }; 167 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698