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
3 // found in the LICENSE file.
6 * @fileoverview A JavaScript class for walking the leaf nodes of the dom.
7 * This is a bare class that tries to limit dependencies. It should only be used
8 * when traversal of the leaf nodes is required (e.g. by other walkers), but
9 * no other walker functionality (such as being able to describe the position).
10 * It should not be used for user-visible navigation.
14 goog
.provide('cvox.BareObjectWalker');
16 goog
.require('cvox.AbstractNodeWalker');
20 * @extends {cvox.AbstractNodeWalker}
22 cvox
.BareObjectWalker = function() {
25 goog
.inherits(cvox
.BareObjectWalker
, cvox
.AbstractNodeWalker
);
30 cvox
.BareObjectWalker
.prototype.stopNodeDescent = function(node
) {
31 return cvox
.DomUtil
.isLeafNode(node
);