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

Unified Diff: chrome/browser/resources/settings/certificate_manager_page/certificate_subentry.js

Issue 2792663002: MD Settings: Restore focus after closing dialogs, for certificate page. (Closed)
Patch Set: Add better explanation for |anchor| parameter in openDialog_ 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/settings/certificate_manager_page/certificate_password_encryption_dialog.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/settings/certificate_manager_page/certificate_subentry.js
diff --git a/chrome/browser/resources/settings/certificate_manager_page/certificate_subentry.js b/chrome/browser/resources/settings/certificate_manager_page/certificate_subentry.js
index 715320dd05a744915306863d1b30702aa8319bfb..cd76f4b9d55b4f294410c0efb2baf52de77ad93f 100644
--- a/chrome/browser/resources/settings/certificate_manager_page/certificate_subentry.js
+++ b/chrome/browser/resources/settings/certificate_manager_page/certificate_subentry.js
@@ -51,6 +51,7 @@ Polymer({
action: action,
subnode: this.model,
certificateType: this.certificateType,
+ anchor: this.$.dots,
}));
},
@@ -69,7 +70,7 @@ Polymer({
// Otherwise propagate the error to the parents, such that a dialog
// displaying the error will be shown.
- this.fire('certificates-error', error);
+ this.fire('certificates-error', {error: error, anchor: this.$.dots});
},
/**
@@ -158,6 +159,6 @@ Polymer({
onDotsTap_: function() {
var actionMenu = /** @type {!CrActionMenuElement} */(
this.$.menu.get());
- actionMenu.showAt(assert(this.$$('paper-icon-button')));
+ actionMenu.showAt(this.$.dots);
},
});
« no previous file with comments | « chrome/browser/resources/settings/certificate_manager_page/certificate_password_encryption_dialog.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698