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

Side by Side Diff: chrome/browser/resources/md_user_manager/user_manager_dialog.js

Issue 2024233003: MD User Manager: Refactors existing dialogs in User Manager into <user-manager-dialog> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@md-user-manager-locked-test
Patch Set: Initial Created 4 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
(Empty)
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
3 // found in the LICENSE file.
4
5 /**
6 * @fileoverview 'user-manager-dialog' is a modal dialog for the user manager.
7 */
8 Polymer({
9 is: 'user-manager-dialog',
10
11 properties: {
12 /**
13 * True if the dialog is currently hidden.
14 * @private {boolean}
15 */
16 dialogHidden_: {
17 type: Boolean,
18 value: true
19 }
20 },
21
22 /**
23 * Opens the dialog.
24 */
25 open: function() {
26 this.dialogHidden_ = false;
27
28 this.async(function() {
29 this.$$('paper-icon-button').focus();
Dan Beam 2016/06/02 00:49:06 does pressing "Eneter" immediately when shown perf
Moe 2016/06/03 21:51:49 For the error-dialog, yes. For the import-supervis
30 }.bind(this));
31 },
32
33 /**
34 * Closes the popup.
35 */
36 close: function() {
37 this.dialogHidden_ = true;
38 }
39 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698