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

Unified 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, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/md_user_manager/user_manager_dialog.js
diff --git a/chrome/browser/resources/md_user_manager/user_manager_dialog.js b/chrome/browser/resources/md_user_manager/user_manager_dialog.js
new file mode 100644
index 0000000000000000000000000000000000000000..770f0cc06f940ce1eda145bc00d0d8fac29df71c
--- /dev/null
+++ b/chrome/browser/resources/md_user_manager/user_manager_dialog.js
@@ -0,0 +1,39 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+/**
+ * @fileoverview 'user-manager-dialog' is a modal dialog for the user manager.
+ */
+Polymer({
+ is: 'user-manager-dialog',
+
+ properties: {
+ /**
+ * True if the dialog is currently hidden.
+ * @private {boolean}
+ */
+ dialogHidden_: {
+ type: Boolean,
+ value: true
+ }
+ },
+
+ /**
+ * Opens the dialog.
+ */
+ open: function() {
+ this.dialogHidden_ = false;
+
+ this.async(function() {
+ 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
+ }.bind(this));
+ },
+
+ /**
+ * Closes the popup.
+ */
+ close: function() {
+ this.dialogHidden_ = true;
+ }
+});

Powered by Google App Engine
This is Rietveld 408576698