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

Side by Side Diff: chrome/browser/resources/settings/people_page/users_add_user_dialog.js

Issue 2817803002: MD Settings: CrOS: Focus elements on dialog close (Closed)
Patch Set: . Created 3 years, 8 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 6 * @fileoverview
7 * 'settings-users-add-user-dialog' is the dialog shown for adding new allowed 7 * 'settings-users-add-user-dialog' is the dialog shown for adding new allowed
8 * users to a ChromeOS device. 8 * users to a ChromeOS device.
9 */ 9 */
10 (function() { 10 (function() {
(...skipping 22 matching lines...) Expand all
33 is: 'settings-users-add-user-dialog', 33 is: 'settings-users-add-user-dialog',
34 34
35 properties: { 35 properties: {
36 /** @private */ 36 /** @private */
37 isValid_: { 37 isValid_: {
38 type: Boolean, 38 type: Boolean,
39 value: false, 39 value: false,
40 }, 40 },
41 }, 41 },
42 42
43 open: function() { 43 attached: function() {
dpapad 2017/04/13 00:16:40 I could not find any callers of open() in this CL
stevenjb 2017/04/13 00:39:09 Ugh, too many balls in the air. I started to conve
44 this.isValid_ = false; 44 this.isValid_ = false;
45 this.$.dialog.showModal(); 45 this.$.dialog.showModal();
46 }, 46 },
47 47
48 /** @private */ 48 /** @private */
49 onCancelTap_: function() { 49 onCancelTap_: function() {
50 this.$.dialog.cancel(); 50 this.$.dialog.cancel();
51 }, 51 },
52 52
53 /** 53 /**
(...skipping 28 matching lines...) Expand all
82 82
83 chrome.usersPrivate.addWhitelistedUser( 83 chrome.usersPrivate.addWhitelistedUser(
84 userEmail, 84 userEmail,
85 /* callback */ function(success) {}); 85 /* callback */ function(success) {});
86 this.$.addUserInput.value = ''; 86 this.$.addUserInput.value = '';
87 this.$.dialog.close(); 87 this.$.dialog.close();
88 }, 88 },
89 }); 89 });
90 90
91 })(); 91 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698