Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Side by Side Diff: ui/login/account_picker/screen_account_picker.js

Issue 698023004: Reposition the "invalid password" bubble if the User Manager is resized. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698