Chromium Code Reviews| 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; |
| + } |
| +}); |