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

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

Issue 2760453002: Creating options page and storing preferences. (Closed)
Patch Set: Responded to comments Created 3 years, 9 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
« no previous file with comments | « chrome/browser/resources/chromeos/switch_access/test_support.js ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 SwitchAccess that exposes SwitchAccess's methods for testing.
7 */ 7 */
8 let TestableSwitchAccess = function() { 8 let TestableSwitchAccess = function() {
9 SwitchAccess.call(this); 9 SwitchAccess.call(this);
10 }; 10 };
11 11
12 TestableSwitchAccess.prototype = { 12 TestableSwitchAccess.prototype = {
13 __proto__: SwitchAccess.prototype, 13 __proto__: SwitchAccess.prototype,
14 14
15 init_: function() {},
16
15 getNextNode: function(node) { 17 getNextNode: function(node) {
16 return this.getNextNode_(node); 18 return this.getNextNode_(node);
17 }, 19 },
18 20
19 getPreviousNode: function(node) { 21 getPreviousNode: function(node) {
20 return this.getPreviousNode_(node); 22 return this.getPreviousNode_(node);
21 }, 23 },
22 24
23 getYoungestDescendant: function(node) { 25 getYoungestDescendant: function(node) {
24 return this.getYoungestDescendant_(node); 26 return this.getYoungestDescendant_(node);
25 }, 27 },
26 28
27 isInteresting: function(node) { 29 isInteresting: function(node) {
28 return this.isInteresting_(node); 30 return this.isInteresting_(node);
29 } 31 }
30 }; 32 };
OLDNEW
« no previous file with comments | « chrome/browser/resources/chromeos/switch_access/test_support.js ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698