Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Side by Side Diff: chrome/browser/resources/chromeos/chromevox/walkers/object_walker.js

Issue 2943193002: Run clang-format on .js files in c/b/r/chromeos/chromevox (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698