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

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

Issue 2921783003: WebUI: Fix/suppress some existing violations of no-restricted-globals. (Closed)
Patch Set: Fix svg 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 * Alias for document.getElementById. 6 * Alias for document.getElementById.
7 * 7 *
8 * @param {string} id 8 * @param {string} id
9 * @return {Element} 9 * @return {Element}
10 */ 10 */
11 let $ = function(id) { 11 let $ = function(id) {
12 // eslint-disable-next-line no-restricted-properties
12 return document.getElementById(id); 13 return document.getElementById(id);
13 }; 14 };
14 15
15 /** 16 /**
16 * Class to manage the options page. 17 * Class to manage the options page.
17 * 18 *
18 * @constructor 19 * @constructor
19 */ 20 */
20 function SwitchAccessOptions() { 21 function SwitchAccessOptions() {
21 let background = chrome.extension.getBackgroundPage(); 22 let background = chrome.extension.getBackgroundPage();
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 $(key).value = updatedPrefs[key] / 1000; 104 $(key).value = updatedPrefs[key] / 1000;
104 break; 105 break;
105 } 106 }
106 } 107 }
107 } 108 }
108 }; 109 };
109 110
110 document.addEventListener('DOMContentLoaded', function() { 111 document.addEventListener('DOMContentLoaded', function() {
111 new SwitchAccessOptions(); 112 new SwitchAccessOptions();
112 }); 113 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/chromeos/select_to_speak/.eslintrc.js ('k') | chrome/browser/resources/hotword/audio_client.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698