OLD | NEW |
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 Oobe signin screen implementation. | 6 * @fileoverview Oobe signin screen implementation. |
7 */ | 7 */ |
8 | 8 |
9 login.createScreen('GaiaSigninScreen', 'gaia-signin', function() { | 9 login.createScreen('GaiaSigninScreen', 'gaia-signin', function() { |
10 // Gaia loading time after which error message must be displayed and | 10 // Gaia loading time after which error message must be displayed and |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 for (var i in cr.login.GaiaAuthHost.SUPPORTED_PARAMS) { | 311 for (var i in cr.login.GaiaAuthHost.SUPPORTED_PARAMS) { |
312 var name = cr.login.GaiaAuthHost.SUPPORTED_PARAMS[i]; | 312 var name = cr.login.GaiaAuthHost.SUPPORTED_PARAMS[i]; |
313 if (data[name]) | 313 if (data[name]) |
314 params[name] = data[name]; | 314 params[name] = data[name]; |
315 } | 315 } |
316 | 316 |
317 if (data.localizedStrings) | 317 if (data.localizedStrings) |
318 params.localizedStrings = data.localizedStrings; | 318 params.localizedStrings = data.localizedStrings; |
319 | 319 |
320 if (this.isNewGaiaFlow) { | 320 if (this.isNewGaiaFlow) { |
321 $('inner-container').classList.add('minute-maid'); | 321 $('inner-container').classList.add('new-gaia-flow'); |
322 $('progress-dots').hidden = true; | 322 $('progress-dots').hidden = true; |
323 if (data.enterpriseDomain) | 323 if (data.enterpriseDomain) |
324 params.enterpriseDomain = data.enterpriseDomain; | 324 params.enterpriseDomain = data.enterpriseDomain; |
325 params.chromeType = data.chromeType; | 325 params.chromeType = data.chromeType; |
326 params.isNewGaiaFlowChromeOS = true; | 326 params.isNewGaiaFlowChromeOS = true; |
327 $('login-header-bar').showGuestButton = true; | 327 $('login-header-bar').showGuestButton = true; |
328 } | 328 } |
329 | 329 |
330 if (data.gaiaEndpoint) | 330 if (data.gaiaEndpoint) |
331 params.gaiaPath = data.gaiaEndpoint; | 331 params.gaiaPath = data.gaiaEndpoint; |
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
743 * For more info see C++ class 'WebUILoginView' which calls this method. | 743 * For more info see C++ class 'WebUILoginView' which calls this method. |
744 * @param {number} error Error code. | 744 * @param {number} error Error code. |
745 * @param {string} url The URL that failed to load. | 745 * @param {string} url The URL that failed to load. |
746 */ | 746 */ |
747 onFrameError: function(error, url) { | 747 onFrameError: function(error, url) { |
748 this.error_ = error; | 748 this.error_ = error; |
749 chrome.send('frameLoadingCompleted', [this.error_]); | 749 chrome.send('frameLoadingCompleted', [this.error_]); |
750 }, | 750 }, |
751 }; | 751 }; |
752 }); | 752 }); |
OLD | NEW |