| 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 Out of the box experience flow (OOBE). | 6 * @fileoverview Out of the box experience flow (OOBE). |
| 7 * This is the main code for the OOBE WebUI implementation. | 7 * This is the main code for the OOBE WebUI implementation. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 // <include src="login_shared.js"> | 10 // <include src="login_shared.js"> |
| (...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 }, | 326 }, |
| 327 | 327 |
| 328 /** | 328 /** |
| 329 * This method takes care of switching to material-design OOBE. | 329 * This method takes care of switching to material-design OOBE. |
| 330 * @private | 330 * @private |
| 331 */ | 331 */ |
| 332 setMDMode_: function() { | 332 setMDMode_: function() { |
| 333 if (loadTimeData.getString('newOobeUI') == 'on') { | 333 if (loadTimeData.getString('newOobeUI') == 'on') { |
| 334 $('oobe').setAttribute('md-mode', 'true'); | 334 $('oobe').setAttribute('md-mode', 'true'); |
| 335 $('oobe-shield').setAttribute('md-mode', 'true'); | 335 $('oobe-shield').setAttribute('md-mode', 'true'); |
| 336 $('popup-overlay').setAttribute('md-mode', 'true'); |
| 336 } else { | 337 } else { |
| 337 $('oobe').removeAttribute('md-mode'); | 338 $('oobe').removeAttribute('md-mode'); |
| 338 $('oobe-shield').removeAttribute('md-mode'); | 339 $('oobe-shield').removeAttribute('md-mode'); |
| 340 $('popup-overlay').removeAttribute('md-mode'); |
| 339 } | 341 } |
| 340 }, | 342 }, |
| 341 }; | 343 }; |
| 342 }); | 344 }); |
| OLD | NEW |