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 <include src="../../gaia_auth_host/gaia_auth_host.js"></include> | 9 <include src="../../gaia_auth_host/gaia_auth_host.js"> |
10 | 10 |
11 login.createScreen('GaiaSigninScreen', 'gaia-signin', function() { | 11 login.createScreen('GaiaSigninScreen', 'gaia-signin', function() { |
12 // Gaia loading time after which error message must be displayed and | 12 // Gaia loading time after which error message must be displayed and |
13 // lazy portal check should be fired. | 13 // lazy portal check should be fired. |
14 /** @const */ var GAIA_LOADING_PORTAL_SUSSPECT_TIME_SEC = 7; | 14 /** @const */ var GAIA_LOADING_PORTAL_SUSSPECT_TIME_SEC = 7; |
15 | 15 |
16 // Maximum Gaia loading time in seconds. | 16 // Maximum Gaia loading time in seconds. |
17 /** @const */ var MAX_GAIA_LOADING_TIME_SEC = 60; | 17 /** @const */ var MAX_GAIA_LOADING_TIME_SEC = 60; |
18 | 18 |
19 /** @const */ var HELP_TOPIC_ENTERPRISE_REPORTING = 2535613; | 19 /** @const */ var HELP_TOPIC_ENTERPRISE_REPORTING = 2535613; |
(...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
628 * For more info see C++ class 'WebUILoginView' which calls this method. | 628 * For more info see C++ class 'WebUILoginView' which calls this method. |
629 * @param {number} error Error code. | 629 * @param {number} error Error code. |
630 * @param {string} url The URL that failed to load. | 630 * @param {string} url The URL that failed to load. |
631 */ | 631 */ |
632 onFrameError: function(error, url) { | 632 onFrameError: function(error, url) { |
633 this.error_ = error; | 633 this.error_ = error; |
634 chrome.send('frameLoadingCompleted', [this.error_]); | 634 chrome.send('frameLoadingCompleted', [this.error_]); |
635 }, | 635 }, |
636 }; | 636 }; |
637 }); | 637 }); |
OLD | NEW |