OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 cr.define('login', function() { | 9 cr.define('login', function() { |
10 | 10 |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 // Button header is always visible when sign in is presented. | 106 // Button header is always visible when sign in is presented. |
107 // Header is hidden once GAIA reports on successful sign in. | 107 // Header is hidden once GAIA reports on successful sign in. |
108 Oobe.getInstance().headerHidden = false; | 108 Oobe.getInstance().headerHidden = false; |
109 }, | 109 }, |
110 | 110 |
111 /** | 111 /** |
112 * Returns function which gets an event and passes it and self to listener. | 112 * Returns function which gets an event and passes it and self to listener. |
113 * @param {!Object} listener Listener to be wrapped. | 113 * @param {!Object} listener Listener to be wrapped. |
114 */ | 114 */ |
115 selfBind_: function(listener) { | 115 selfBind_: function(listener) { |
116 var selfBinded = function(e) { | 116 var selfBound = function(e) { |
117 listener(e, selfBinded); | 117 listener(e, selfBound); |
118 } | 118 }; |
119 return selfBinded; | 119 return selfBound; |
120 }, | 120 }, |
121 | 121 |
122 /** | 122 /** |
123 * Tracks first focus in event. | 123 * Tracks first focus in event. |
124 * @param {!Object} e Focus in event. | 124 * @param {!Object} e Focus in event. |
125 * @param {!Object} listener Listener which shold be removed from event | 125 * @param {!Object} listener Listener which shold be removed from event |
126 * listeners list. | 126 * listeners list. |
127 */ | 127 */ |
128 onFocusIn_: function(e, listener) { | 128 onFocusIn_: function(e, listener) { |
129 this.hasFocused_ = true; | 129 this.hasFocused_ = true; |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 }; | 307 }; |
308 | 308 |
309 GaiaSigninScreen.loadAuthExtension = function(data) { | 309 GaiaSigninScreen.loadAuthExtension = function(data) { |
310 $('gaia-signin').loadAuthExtension_(data); | 310 $('gaia-signin').loadAuthExtension_(data); |
311 }; | 311 }; |
312 | 312 |
313 return { | 313 return { |
314 GaiaSigninScreen: GaiaSigninScreen | 314 GaiaSigninScreen: GaiaSigninScreen |
315 }; | 315 }; |
316 }); | 316 }); |
OLD | NEW |