OLD | NEW |
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 Loading... |
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 Loading... |
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 }; |
OLD | NEW |