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

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

Issue 16104008: First try at a user management screen for the desktop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix linux CrOS browser test Created 7 years, 5 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 26 matching lines...) Expand all
37 $('cancel-add-user-button').addEventListener('click', 37 $('cancel-add-user-button').addEventListener('click',
38 this.handleCancelAddUserClick_); 38 this.handleCancelAddUserClick_);
39 $('guest-user-header-bar-item').addEventListener('click', 39 $('guest-user-header-bar-item').addEventListener('click',
40 this.handleGuestClick_); 40 this.handleGuestClick_);
41 $('guest-user-button').addEventListener('click', 41 $('guest-user-button').addEventListener('click',
42 this.handleGuestClick_); 42 this.handleGuestClick_);
43 $('sign-out-user-button').addEventListener('click', 43 $('sign-out-user-button').addEventListener('click',
44 this.handleSignoutClick_); 44 this.handleSignoutClick_);
45 $('cancel-multiple-sign-in-button').addEventListener('click', 45 $('cancel-multiple-sign-in-button').addEventListener('click',
46 this.handleCancelMultipleSignInClick_); 46 this.handleCancelMultipleSignInClick_);
47
48 if (document.documentElement.getAttribute('screen') == 'login') 47 if (document.documentElement.getAttribute('screen') == 'login')
49 login.AppsMenuButton.decorate($('show-apps-button')); 48 login.AppsMenuButton.decorate($('show-apps-button'));
50 }, 49 },
51 50
52 /** 51 /**
53 * Tab index value for all button elements. 52 * Tab index value for all button elements.
54 * @type {number} 53 * @type {number}
55 */ 54 */
56 set buttonsTabIndex(tabIndex) { 55 set buttonsTabIndex(tabIndex) {
57 var buttons = this.getElementsByTagName('button'); 56 var buttons = this.getElementsByTagName('button');
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 * Convenience wrapper of animateIn. 246 * Convenience wrapper of animateIn.
248 */ 247 */
249 HeaderBar.animateIn = function() { 248 HeaderBar.animateIn = function() {
250 $('login-header-bar').animateIn(); 249 $('login-header-bar').animateIn();
251 } 250 }
252 251
253 return { 252 return {
254 HeaderBar: HeaderBar 253 HeaderBar: HeaderBar
255 }; 254 };
256 }); 255 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698