OLD | NEW |
---|---|
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 Loading... | |
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 Loading... | |
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 |
OLD | NEW |