| 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 JavaScript class for walking the leaf nodes of the dom. | 6 * @fileoverview A JavaScript class for walking the leaf nodes of the dom. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 | 9 |
| 10 goog.provide('cvox.ObjectWalker'); | 10 goog.provide('cvox.ObjectWalker'); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 cvox.ObjectWalker.prototype.stopNodeDescent = function(node) { | 28 cvox.ObjectWalker.prototype.stopNodeDescent = function(node) { |
| 29 return cvox.DomUtil.isLeafNode(node); | 29 return cvox.DomUtil.isLeafNode(node); |
| 30 }; | 30 }; |
| 31 | 31 |
| 32 // TODO(dtseng): Causes a circular dependency if put into AbstractNodeWalker. | 32 // TODO(dtseng): Causes a circular dependency if put into AbstractNodeWalker. |
| 33 /** | 33 /** |
| 34 * @override | 34 * @override |
| 35 */ | 35 */ |
| 36 cvox.AbstractNodeWalker.prototype.getDescription = function(prevSel, sel) { | 36 cvox.AbstractNodeWalker.prototype.getDescription = function(prevSel, sel) { |
| 37 return cvox.DescriptionUtil.getDescriptionFromNavigation( | 37 return cvox.DescriptionUtil.getDescriptionFromNavigation( |
| 38 prevSel.end.node, | 38 prevSel.end.node, sel.start.node, true, cvox.ChromeVox.verbosity); |
| 39 sel.start.node, | |
| 40 true, | |
| 41 cvox.ChromeVox.verbosity); | |
| 42 }; | 39 }; |
| 43 | 40 |
| 44 /** | 41 /** |
| 45 * @override | 42 * @override |
| 46 */ | 43 */ |
| 47 cvox.ObjectWalker.prototype.getBraille = function(prevSel, sel) { | 44 cvox.ObjectWalker.prototype.getBraille = function(prevSel, sel) { |
| 48 throw 'getBraille is unsupported'; | 45 throw 'getBraille is unsupported'; |
| 49 }; | 46 }; |
| 50 | 47 |
| 51 /** | 48 /** |
| 52 * @override | 49 * @override |
| 53 */ | 50 */ |
| 54 cvox.ObjectWalker.prototype.getGranularityMsg = function() { | 51 cvox.ObjectWalker.prototype.getGranularityMsg = function() { |
| 55 return Msgs.getMsg('object_strategy'); | 52 return Msgs.getMsg('object_strategy'); |
| 56 }; | 53 }; |
| OLD | NEW |