| 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 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 Oobe.getInstance().showScreen(screen); | 62 Oobe.getInstance().showScreen(screen); |
| 63 }; | 63 }; |
| 64 | 64 |
| 65 /** | 65 /** |
| 66 * Dummy Oobe functions not present with stripped login UI. | 66 * Dummy Oobe functions not present with stripped login UI. |
| 67 */ | 67 */ |
| 68 Oobe.enableContinueButton = function(enable) {}; | 68 Oobe.enableContinueButton = function(enable) {}; |
| 69 Oobe.setUsageStats = function(checked) {}; | 69 Oobe.setUsageStats = function(checked) {}; |
| 70 Oobe.setOemEulaUrl = function(oemEulaUrl) {}; | 70 Oobe.setOemEulaUrl = function(oemEulaUrl) {}; |
| 71 Oobe.setUpdateProgress = function(progress) {}; | 71 Oobe.setUpdateProgress = function(progress) {}; |
| 72 Oobe.setUpdateEstimatedTimeLeft = function(days, hours, minutes, seconds) {}; |
| 73 Oobe.setUpdateDownloadingRate = function(rate) {}; |
| 72 Oobe.setUpdateMessage = function(message) {}; | 74 Oobe.setUpdateMessage = function(message) {}; |
| 73 Oobe.showUpdateCurtain = function(enable) {}; | 75 Oobe.showUpdateCurtain = function(enable) {}; |
| 76 Oobe.showUpdateDownloadingStats = function(enable) {}; |
| 74 Oobe.setTpmPassword = function(password) {}; | 77 Oobe.setTpmPassword = function(password) {}; |
| 75 Oobe.reloadContent = function(data) {}; | 78 Oobe.reloadContent = function(data) {}; |
| 76 | 79 |
| 77 /** | 80 /** |
| 78 * Updates version label visibilty. | 81 * Updates version label visibilty. |
| 79 * @param {boolean} show True if version label should be visible. | 82 * @param {boolean} show True if version label should be visible. |
| 80 */ | 83 */ |
| 81 Oobe.showVersion = function(show) { | 84 Oobe.showVersion = function(show) { |
| 82 Oobe.getInstance().showVersion(show); | 85 Oobe.getInstance().showVersion(show); |
| 83 }; | 86 }; |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 return { | 176 return { |
| 174 Oobe: Oobe | 177 Oobe: Oobe |
| 175 }; | 178 }; |
| 176 }); | 179 }); |
| 177 | 180 |
| 178 var Oobe = cr.ui.Oobe; | 181 var Oobe = cr.ui.Oobe; |
| 179 | 182 |
| 180 disableTextSelectAndDrag(); | 183 disableTextSelectAndDrag(); |
| 181 | 184 |
| 182 document.addEventListener('DOMContentLoaded', cr.ui.Oobe.initialize); | 185 document.addEventListener('DOMContentLoaded', cr.ui.Oobe.initialize); |
| OLD | NEW |