| 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 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 Loading... |
| 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.AbstractEarcons.SPECIAL_CONTENT); | 472 ret[0].pushEarcon(cvox.Earcon.SPECIAL_CONTENT); |
| 473 return ret; | 473 return ret; |
| 474 }; | 474 }; |
| OLD | NEW |