OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 Account picker screen implementation. | 6 * @fileoverview Account picker screen implementation. |
7 */ | 7 */ |
8 | 8 |
9 login.createScreen('AccountPickerScreen', 'account-picker', function() { | 9 login.createScreen('AccountPickerScreen', 'account-picker', function() { |
10 /** | 10 /** |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 }, | 47 }, |
48 | 48 |
49 /** @override */ | 49 /** @override */ |
50 getPreferredSize: function() { | 50 getPreferredSize: function() { |
51 return {width: this.preferredWidth_, height: this.preferredHeight_}; | 51 return {width: this.preferredWidth_, height: this.preferredHeight_}; |
52 }, | 52 }, |
53 | 53 |
54 /** @override */ | 54 /** @override */ |
55 onWindowResize: function() { | 55 onWindowResize: function() { |
56 $('pod-row').onWindowResize(); | 56 $('pod-row').onWindowResize(); |
| 57 |
| 58 // Reposition the error bubble, if there is one. Since we are just |
| 59 // moving the bubble, the number of login attempts tried doesn't matter. |
| 60 if ($('bubble')) |
| 61 this.showErrorBubble(0, undefined /* Reuses the existing message. */); |
57 }, | 62 }, |
58 | 63 |
59 /** | 64 /** |
60 * Sets preferred size for account picker screen. | 65 * Sets preferred size for account picker screen. |
61 */ | 66 */ |
62 setPreferredSize: function(width, height) { | 67 setPreferredSize: function(width, height) { |
63 this.preferredWidth_ = width; | 68 this.preferredWidth_ = width; |
64 this.preferredHeight_ = height; | 69 this.preferredHeight_ = height; |
65 }, | 70 }, |
66 | 71 |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 * @param {string} userID The user ID of the public session | 346 * @param {string} userID The user ID of the public session |
342 * @param {string} locale The locale to which this list of keyboard layouts | 347 * @param {string} locale The locale to which this list of keyboard layouts |
343 * applies | 348 * applies |
344 * @param {!Object} list List of available keyboard layouts | 349 * @param {!Object} list List of available keyboard layouts |
345 */ | 350 */ |
346 setPublicSessionKeyboardLayouts: function(userID, locale, list) { | 351 setPublicSessionKeyboardLayouts: function(userID, locale, list) { |
347 $('pod-row').setPublicSessionKeyboardLayouts(userID, locale, list); | 352 $('pod-row').setPublicSessionKeyboardLayouts(userID, locale, list); |
348 } | 353 } |
349 }; | 354 }; |
350 }); | 355 }); |
351 | |
OLD | NEW |