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

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

Issue 111443008: Multiprofiles: cancellation of adding a profile on ESC-pressing at account picker screen. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years 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 (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 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 */ 69 */
70 exit: function() { 70 exit: function() {
71 // Check and disable the sign out button so that we can never have two 71 // Check and disable the sign out button so that we can never have two
72 // sign out requests generated in a row. 72 // sign out requests generated in a row.
73 if ($('pod-row').lockedPod && !$('sign-out-user-button').disabled) { 73 if ($('pod-row').lockedPod && !$('sign-out-user-button').disabled) {
74 $('sign-out-user-button').disabled = true; 74 $('sign-out-user-button').disabled = true;
75 chrome.send('signOutUser'); 75 chrome.send('signOutUser');
76 } 76 }
77 }, 77 },
78 78
79 /* Cancel user adding if ESC was pressed.
80 */
81 cancel: function() {
82 chrome.send('cancelUserAdding');
dzhioev (left Google) 2013/12/16 15:22:54 Check if display type == DISPLAY_TYPE.USER_ADDING.
merkulova 2013/12/16 15:32:41 Done.
83 },
84
79 /** 85 /**
80 * Event handler that is invoked just after the frame is shown. 86 * Event handler that is invoked just after the frame is shown.
81 * @param {string} data Screen init payload. 87 * @param {string} data Screen init payload.
82 */ 88 */
83 onAfterShow: function(data) { 89 onAfterShow: function(data) {
84 $('pod-row').handleAfterShow(); 90 $('pod-row').handleAfterShow();
85 }, 91 },
86 92
87 /** 93 /**
88 * Event handler that is invoked just before the frame is shown. 94 * Event handler that is invoked just before the frame is shown.
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 * is used by the chrome.screenlockPrivate API. 253 * is used by the chrome.screenlockPrivate API.
248 * @param {string} username Username of pod to add button 254 * @param {string} username Username of pod to add button
249 * @param {string} iconURL URL of the button icon 255 * @param {string} iconURL URL of the button icon
250 */ 256 */
251 showUserPodButton: function(username, iconURL) { 257 showUserPodButton: function(username, iconURL) {
252 $('pod-row').showUserPodButton(username, iconURL); 258 $('pod-row').showUserPodButton(username, iconURL);
253 } 259 }
254 }; 260 };
255 }); 261 });
256 262
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