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

Side by Side Diff: chrome/browser/resources/chromeos/login/md_header_bar.js

Issue 2910203003: Handling edge cases of new login screen (Closed)
Patch Set: Adjust animation duration and add small screen handling Created 3 years, 6 months 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
OLDNEW
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 Login UI header bar implementation. 6 * @fileoverview Login UI header bar implementation.
7 */ 7 */
8 8
9 cr.define('login', function() { 9 cr.define('login', function() {
10 /** 10 /**
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 * Whether action box button is in active state. 121 * Whether action box button is in active state.
122 * @type {boolean} 122 * @type {boolean}
123 */ 123 */
124 get isMoreSettingsActive() { 124 get isMoreSettingsActive() {
125 return this.getMoreSettingsMenu.classList.contains('active'); 125 return this.getMoreSettingsMenu.classList.contains('active');
126 }, 126 },
127 set isMoreSettingsActive(active) { 127 set isMoreSettingsActive(active) {
128 if (active == this.isMoreSettingsActive) 128 if (active == this.isMoreSettingsActive)
129 return; 129 return;
130 this.getMoreSettingsMenu.classList.toggle('active', active); 130 this.getMoreSettingsMenu.classList.toggle('active', active);
131 $('more-settings-button').tabIndex = active ? -1 : 0; 131 $('more-settings-button').tabIndex = active ? -1 : 4;
132 }, 132 },
133 133
134 /** 134 /**
135 * Add user button click handler. 135 * Add user button click handler.
136 * 136 *
137 * @private 137 * @private
138 */ 138 */
139 handleAddUserClick_: function(e) { 139 handleAddUserClick_: function(e) {
140 Oobe.showSigninUI(); 140 Oobe.showSigninUI();
141 // Prevent further propagation of click event. Otherwise, the click event 141 // Prevent further propagation of click event. Otherwise, the click event
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 * Convenience wrapper of animateIn. 456 * Convenience wrapper of animateIn.
457 */ 457 */
458 HeaderBar.animateIn = function(fast, callback) { 458 HeaderBar.animateIn = function(fast, callback) {
459 $('login-header-bar').animateIn(fast, callback); 459 $('login-header-bar').animateIn(fast, callback);
460 }; 460 };
461 461
462 return { 462 return {
463 HeaderBar: HeaderBar 463 HeaderBar: HeaderBar
464 }; 464 };
465 }); 465 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/chromeos/login/md_header_bar.css ('k') | ui/login/account_picker/md_screen_account_picker.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698