| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 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 |