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

Side by Side Diff: chrome/browser/resources/chromeos/switch_access/testable_tree_walker.js

Issue 2777203006: Added auto-scan, made some small changes to how prefs are stored, refactored. (Closed)
Patch Set: Responded to comments. Removed closure_support.js Created 3 years, 8 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 * Subclass of SwitchAccess that exposes SwitchAccess's methods for testing. 6 * Subclass of AutomationTreeWalker that exposes AutomationTreeWalker's methods
7 * for testing.
David Tseng 2017/03/29 21:57:20 @extends {AutomationTreeWalker} (I know this doesn
elichtenberg 2017/03/30 21:46:56 Done.
7 */ 8 */
8 let TestableSwitchAccess = function() { 9 function TestableTreeWalker() {
9 SwitchAccess.call(this); 10 AutomationTreeWalker.call(this);
10 }; 11 };
11 12
12 TestableSwitchAccess.prototype = { 13 TestableTreeWalker.prototype = {
13 __proto__: SwitchAccess.prototype, 14 __proto__: AutomationTreeWalker.prototype,
14
15 init_: function() {},
16 15
17 getNextNode: function(node) { 16 getNextNode: function(node) {
David Tseng 2017/03/29 21:57:21 I don't see that much value in having this in its
elichtenberg 2017/03/30 21:46:56 I agree. I'm just going to access the private memb
18 return this.getNextNode_(node); 17 return this.getNextNode_(node);
19 }, 18 },
20 19
21 getPreviousNode: function(node) { 20 getPreviousNode: function(node) {
22 return this.getPreviousNode_(node); 21 return this.getPreviousNode_(node);
23 }, 22 },
24 23
25 getYoungestDescendant: function(node) { 24 getYoungestDescendant: function(node) {
26 return this.getYoungestDescendant_(node); 25 return this.getYoungestDescendant_(node);
27 }, 26 },
28 27
29 isInteresting: function(node) { 28 isInteresting: function(node) {
30 return this.isInteresting_(node); 29 return this.isInteresting_(node);
31 } 30 }
32 }; 31 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698