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

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

Issue 9580039: more logs in login.js|html (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/resources/chromeos/login/login.html ('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 (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 Login UI based on a stripped down OOBE controller. 6 * @fileoverview Login UI based on a stripped down OOBE controller.
7 * TODO(xiyuan): Refactoring this to get a better structure. 7 * TODO(xiyuan): Refactoring this to get a better structure.
8 */ 8 */
9 9
10 var localStrings = new LocalStrings(); 10 var localStrings = new LocalStrings();
(...skipping 14 matching lines...) Expand all
25 25
26 Oobe.prototype = { 26 Oobe.prototype = {
27 __proto__: DisplayManager.prototype, 27 __proto__: DisplayManager.prototype,
28 }; 28 };
29 29
30 /** 30 /**
31 * Initializes the OOBE flow. This will cause all C++ handlers to 31 * Initializes the OOBE flow. This will cause all C++ handlers to
32 * be invoked to do final setup. 32 * be invoked to do final setup.
33 */ 33 */
34 Oobe.initialize = function() { 34 Oobe.initialize = function() {
35 login.AccountPickerScreen.register(); 35 try {
36 login.GaiaSigninScreen.register(); 36 console.log("## Oobe.initialize");
37 oobe.OAuthEnrollmentScreen.register(); 37 login.AccountPickerScreen.register();
38 oobe.UserImageScreen.register(); 38 login.GaiaSigninScreen.register();
39 login.ErrorMessageScreen.register(); 39 oobe.OAuthEnrollmentScreen.register();
40 40 oobe.UserImageScreen.register();
41 cr.ui.Bubble.decorate($('bubble')); 41 login.ErrorMessageScreen.register();
42 login.HeaderBar.decorate($('login-header-bar')); 42 cr.ui.Bubble.decorate($('bubble'));
43 43 login.HeaderBar.decorate($('login-header-bar'));
44 chrome.send('screenStateInitialize', []); 44 console.log("## calling screenStateInitialize");
45 chrome.send('screenStateInitialize', []);
46 } catch (err) {
47 console.log("## error in initialize " + err.message);
48 }
45 }; 49 };
46 50
47 /** 51 /**
48 * Handle accelerators. These are passed from native code instead of a JS 52 * Handle accelerators. These are passed from native code instead of a JS
49 * event handler in order to make sure that embedded iframes cannot swallow 53 * event handler in order to make sure that embedded iframes cannot swallow
50 * them. 54 * them.
51 * @param {string} name Accelerator name. 55 * @param {string} name Accelerator name.
52 */ 56 */
53 Oobe.handleAccelerator = function(name) { 57 Oobe.handleAccelerator = function(name) {
54 Oobe.getInstance().handleAccelerator(name); 58 Oobe.getInstance().handleAccelerator(name);
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 // Export 166 // Export
163 return { 167 return {
164 Oobe: Oobe 168 Oobe: Oobe
165 }; 169 };
166 }); 170 });
167 171
168 var Oobe = cr.ui.Oobe; 172 var Oobe = cr.ui.Oobe;
169 173
170 disableTextSelectAndDrag(); 174 disableTextSelectAndDrag();
171 175
176 console.log("## registering DOMContentLoaded");
172 document.addEventListener('DOMContentLoaded', cr.ui.Oobe.initialize); 177 document.addEventListener('DOMContentLoaded', cr.ui.Oobe.initialize);
OLDNEW
« no previous file with comments | « chrome/browser/resources/chromeos/login/login.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698