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

Unified Diff: chrome/browser/resources/settings/passwords_and_forms_page/password_edit_dialog.js

Issue 1817123003: Implement the password edit UI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 9 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/settings/passwords_and_forms_page/password_edit_dialog.js
diff --git a/chrome/browser/resources/settings/passwords_and_forms_page/password_edit_dialog.js b/chrome/browser/resources/settings/passwords_and_forms_page/password_edit_dialog.js
new file mode 100644
index 0000000000000000000000000000000000000000..b992e2cc44775d6572adbec47033b42314f81dde
--- /dev/null
+++ b/chrome/browser/resources/settings/passwords_and_forms_page/password_edit_dialog.js
@@ -0,0 +1,40 @@
+// 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 'password-edit-dialog' is the dialog that allows showing a
+ * saved password.
+ */
+
+(function() {
+'use strict';
+
+Polymer({
+ is: 'password-edit-dialog',
+
+ properties: {
+ /**
+ * The password that is being displayed.
+ * @type {!chrome.passwordsPrivate.PasswordUiEntry}
+ */
+ item: {
+ type: Object,
+ value: null,
+ },
+ },
+
+ /** Opens the dialog. */
+ open: function() {
+ this.$.dialog.open();
+ },
+
+ /**
+ * Creates an empty password of specified length.
+ * @param {number} length
+ * @return {string} password
+ * @private
+ */
+ getEmptyPassword_: function(length) { return ' '.repeat(length); },
+});
+})();

Powered by Google App Engine
This is Rietveld 408576698