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

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

Issue 1362223003: Improve braille related message descriptions and clean up message handling in Chromevox. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@inputtypeexception
Patch Set: Move another braille message to Msgs.Untranslated Created 5 years, 2 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 cvox.MathShifter.prototype.sync = function(sel) { 71 cvox.MathShifter.prototype.sync = function(sel) {
72 var attachedNode = cvox.TraverseMath.getInstance().getAttachedActiveNode(); 72 var attachedNode = cvox.TraverseMath.getInstance().getAttachedActiveNode();
73 return attachedNode ? cvox.CursorSelection.fromNode(attachedNode) : sel; 73 return attachedNode ? cvox.CursorSelection.fromNode(attachedNode) : sel;
74 }; 74 };
75 75
76 76
77 /** 77 /**
78 * @override 78 * @override
79 */ 79 */
80 cvox.MathShifter.prototype.getName = function() { 80 cvox.MathShifter.prototype.getName = function() {
81 return cvox.ChromeVox.msgs.getMsg('math_shifter'); 81 return Msgs.getMsg('math_shifter');
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) {
(...skipping 66 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