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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
134 login.HostPairingScreen.register(); | 134 login.HostPairingScreen.register(); |
135 login.DeviceDisabledScreen.register(); | 135 login.DeviceDisabledScreen.register(); |
136 login.ActiveDirectoryPasswordChangeScreen.register(/* lazyInit= */ true); | 136 login.ActiveDirectoryPasswordChangeScreen.register(/* lazyInit= */ true); |
137 | 137 |
138 cr.ui.Bubble.decorate($('bubble')); | 138 cr.ui.Bubble.decorate($('bubble')); |
139 login.HeaderBar.decorate($('login-header-bar')); | 139 login.HeaderBar.decorate($('login-header-bar')); |
140 | 140 |
141 Oobe.initializeA11yMenu(); | 141 Oobe.initializeA11yMenu(); |
142 | 142 |
143 chrome.send('screenStateInitialize'); | 143 chrome.send('screenStateInitialize'); |
144 chrome.send('screenStateInitializeForSignin'); | |
Alexander Alekseev
2017/02/17 03:56:38
We try to avoid duplicating events, as this makes
Wenzhao (Colin) Zang
2017/02/17 19:51:56
In order to replace all CallJS with CallJSOrDefer
Wenzhao (Colin) Zang
2017/02/17 22:58:16
We might need to separate CallJSOrDefer into a new
| |
144 }, | 145 }, |
145 | 146 |
146 /** | 147 /** |
147 * Initializes OOBE accessibility menu. | 148 * Initializes OOBE accessibility menu. |
148 */ | 149 */ |
149 initializeA11yMenu: function() { | 150 initializeA11yMenu: function() { |
150 cr.ui.Bubble.decorate($('accessibility-menu')); | 151 cr.ui.Bubble.decorate($('accessibility-menu')); |
151 $('connect-accessibility-link').addEventListener( | 152 $('connect-accessibility-link').addEventListener( |
152 'click', Oobe.handleAccessibilityLinkClick); | 153 'click', Oobe.handleAccessibilityLinkClick); |
153 $('eula-accessibility-link').addEventListener( | 154 $('eula-accessibility-link').addEventListener( |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
351 $('oobe-shield').setAttribute('md-mode', 'true'); | 352 $('oobe-shield').setAttribute('md-mode', 'true'); |
352 $('popup-overlay').setAttribute('md-mode', 'true'); | 353 $('popup-overlay').setAttribute('md-mode', 'true'); |
353 } else { | 354 } else { |
354 $('oobe').removeAttribute('md-mode'); | 355 $('oobe').removeAttribute('md-mode'); |
355 $('oobe-shield').removeAttribute('md-mode'); | 356 $('oobe-shield').removeAttribute('md-mode'); |
356 $('popup-overlay').removeAttribute('md-mode'); | 357 $('popup-overlay').removeAttribute('md-mode'); |
357 } | 358 } |
358 }, | 359 }, |
359 }; | 360 }; |
360 }); | 361 }); |
OLD | NEW |