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

Side by Side Diff: chrome/browser/resources/chromeos/login/screen_tpm_error.js

Issue 2944703004: Run clang-format on .js files in c/b/r/chromeos (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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 Offline message screen implementation. 6 * @fileoverview Offline message screen implementation.
7 */ 7 */
8 8
9 login.createScreen('TPMErrorMessageScreen', 'tpm-error-message', function() { 9 login.createScreen('TPMErrorMessageScreen', 'tpm-error-message', function() {
10 return { 10 return {
11 EXTERNAL_API: [ 11 EXTERNAL_API: ['show'],
12 'show'
13 ],
14 12
15 /** 13 /**
16 * Buttons in oobe wizard's button strip. 14 * Buttons in oobe wizard's button strip.
17 * @type {array} Array of Buttons. 15 * @type {array} Array of Buttons.
18 */ 16 */
19 get buttons() { 17 get buttons() {
20 var rebootButton = this.ownerDocument.createElement('button'); 18 var rebootButton = this.ownerDocument.createElement('button');
21 rebootButton.id = 'reboot-button'; 19 rebootButton.id = 'reboot-button';
22 rebootButton.textContent = 20 rebootButton.textContent =
23 loadTimeData.getString('errorTpmFailureRebootButton'); 21 loadTimeData.getString('errorTpmFailureRebootButton');
24 rebootButton.addEventListener('click', function() { 22 rebootButton.addEventListener('click', function() {
25 chrome.send('rebootSystem'); 23 chrome.send('rebootSystem');
26 }); 24 });
27 return [rebootButton]; 25 return [rebootButton];
28 }, 26 },
29 27
30 /** 28 /**
31 * Show TPM screen. 29 * Show TPM screen.
32 */ 30 */
33 show: function() { 31 show: function() {
34 Oobe.showScreen({id: SCREEN_TPM_ERROR}); 32 Oobe.showScreen({id: SCREEN_TPM_ERROR});
35 } 33 }
36 }; 34 };
37 }); 35 });
38
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698