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

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

Issue 2909503003: WebUI: Enable ESLint rule for missing semicolons. (Closed)
Patch Set: Undo local_ntp changes from this CL. 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 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 * Class containing predicates for the chrome automation API. Each predicate 6 * Class containing predicates for the chrome automation API. Each predicate
7 * can be run on one or more AutomationNodes and returns a boolean value. 7 * can be run on one or more AutomationNodes and returns a boolean value.
8 * 8 *
9 * @constructor 9 * @constructor
10 */ 10 */
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 // crbug.com/710559 115 // crbug.com/710559
116 // Work around for browser tabs 116 // Work around for browser tabs
117 if (role === chrome.automation.RoleType.TAB 117 if (role === chrome.automation.RoleType.TAB
118 && parent.role === chrome.automation.RoleType.TAB_LIST 118 && parent.role === chrome.automation.RoleType.TAB_LIST
119 && root.role === chrome.automation.RoleType.DESKTOP) 119 && root.role === chrome.automation.RoleType.DESKTOP)
120 return true; 120 return true;
121 } 121 }
122 122
123 // The general rule that applies to everything. 123 // The general rule that applies to everything.
124 return state[chrome.automation.StateType.FOCUSABLE] === true; 124 return state[chrome.automation.StateType.FOCUSABLE] === true;
125 } 125 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698