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

Side by Side Diff: chrome/browser/resources/chromeos/login/oobe-screen.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 cr.define('login', function() { 5 cr.define('login', function() {
6 /** @const */ var CALLBACK_USER_ACTED = 'userActed'; 6 /** @const */ var CALLBACK_USER_ACTED = 'userActed';
7 7
8 var OobeScreenBehavior = { 8 var OobeScreenBehavior = {
9 properties: { 9 properties: {
10 /** 10 /**
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 ready: function() { 48 ready: function() {
49 if (this.decorate_) { 49 if (this.decorate_) {
50 this.initialize(); 50 this.initialize();
51 } else { 51 } else {
52 this.ready_ = true; 52 this.ready_ = true;
53 } 53 }
54 }, 54 },
55 55
56 userActed: function(e) { 56 userActed: function(e) {
57 this.send(CALLBACK_USER_ACTED, 57 this.send(
58 e.detail.sourceEvent.target.getAttribute('action')); 58 CALLBACK_USER_ACTED,
59 e.detail.sourceEvent.target.getAttribute('action'));
59 }, 60 },
60 61
61 i18n: function(args) { 62 i18n: function(args) {
62 if (!(args instanceof Array)) 63 if (!(args instanceof Array))
63 args = [args]; 64 args = [args];
64 args[0] = 'login_' + this.name + '_' + args[0]; 65 args[0] = 'login_' + this.name + '_' + args[0];
65 return loadTimeData.getStringF.apply(loadTimeData, args); 66 return loadTimeData.getStringF.apply(loadTimeData, args);
66 }, 67 },
67 68
68 /** 69 /**
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 * @private 221 * @private
221 */ 222 */
222 getPropertyNameOf_: function(value) { 223 getPropertyNameOf_: function(value) {
223 for (var key in this) 224 for (var key in this)
224 if (this[key] === value) 225 if (this[key] === value)
225 return key; 226 return key;
226 return ''; 227 return '';
227 } 228 }
228 }; 229 };
229 230
230 return { 231 return {OobeScreenBehavior: OobeScreenBehavior};
231 OobeScreenBehavior: OobeScreenBehavior
232 };
233 }); 232 });
234
OLDNEW
« no previous file with comments | « chrome/browser/resources/chromeos/login/oobe.js ('k') | chrome/browser/resources/chromeos/login/oobe_dialog.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698