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

Side by Side Diff: ui/login/screen.js

Issue 2094193004: Strip comments and whitespace from Javascript resources (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Respond to comments, plus rebases. Created 4 years, 5 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
« tools/grit/grit_rule.gni ('K') | « tools/grit/grit_rule.gni ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 /** 5 /**
6 * @fileoverview Base class for all login WebUI screens. 6 * @fileoverview Base class for all login WebUI screens.
7 */ 7 */
8 cr.define('login', function() { 8 cr.define('login', function() {
9 /** @const */ var CALLBACK_CONTEXT_CHANGED = 'contextChanged'; 9 /** @const */ var CALLBACK_CONTEXT_CHANGED = 'contextChanged';
10 /** @const */ var CALLBACK_USER_ACTED = 'userActed'; 10 /** @const */ var CALLBACK_USER_ACTED = 'userActed';
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 var screen = $(id); 377 var screen = $(id);
378 screen.__proto__ = new Constructor(); 378 screen.__proto__ = new Constructor();
379 379
380 if (opt_lazy_init !== undefined && opt_lazy_init) 380 if (opt_lazy_init !== undefined && opt_lazy_init)
381 screen.deferredInitialization = function() { screen.initialize(); } 381 screen.deferredInitialization = function() { screen.initialize(); }
382 else 382 else
383 screen.initialize(); 383 screen.initialize();
384 Oobe.getInstance().registerScreen(screen); 384 Oobe.getInstance().registerScreen(screen);
385 }; 385 };
386 386
387 cr.define('login', function() { 387 cr.exportPath('login'); // ensures window.login exists
388 var result = {}; 388 login[name] = api; // exposes globally
Dan Beam 2016/07/14 17:47:59 you probably don't need to copy this comments, or
389 result[name] = api;
390 return result;
391 });
392 } 389 }
393 }; 390 };
394 }); 391 });
OLDNEW
« tools/grit/grit_rule.gni ('K') | « tools/grit/grit_rule.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698