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

Unified Diff: chrome/browser/ui/cocoa/passwords/passwords_bubble_cocoa.h

Issue 2808823002: MacViews: Allows the toolkit-views Manage Passwords Dialog to be used (Closed)
Patch Set: MacViews: Allows the toolkit-views Manage Passwords Dialog to be used (rebase) 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
Index: chrome/browser/ui/cocoa/passwords/passwords_bubble_cocoa.h
diff --git a/chrome/browser/ui/cocoa/passwords/passwords_bubble_cocoa.h b/chrome/browser/ui/cocoa/passwords/passwords_bubble_cocoa.h
index 7b98efdaf0816b955db41b3d0632561498d4dc6e..a9e4395d427c5847033a37ac071e1588e1973fc0 100644
--- a/chrome/browser/ui/cocoa/passwords/passwords_bubble_cocoa.h
+++ b/chrome/browser/ui/cocoa/passwords/passwords_bubble_cocoa.h
@@ -26,6 +26,9 @@ class ManagePasswordsBubbleCocoa {
// is already shown.
static void Show(content::WebContents* webContents, bool user_action);
+ // Closes the bubble. Does nothing if the bubble is not currently shown.
+ static void CloseCurrentBubble();
+
// Closes and deletes the bubble.
void Close(bool no_animation);
void Close();
@@ -72,4 +75,15 @@ class ManagePasswordsBubbleCocoa {
DISALLOW_COPY_AND_ASSIGN(ManagePasswordsBubbleCocoa);
};
+// Helper to hide a toolkit-views manage passwords bubble. Implemented in a
+// views-specific file.
+void CloseViewsManagePasswordsBubbleOnCocoaBrowser();
+
+// Helper to show a toolkit-views manage passwords bubble. Implemented in a
+// views-specific file.
+void ShowViewsManagePasswordsBubbleOnCocoaBrowser(
+ NSPoint anchor,
+ content::WebContents* web_contents,
+ bool user_action);
+
#endif // CHROME_BROWSER_UI_COCOA_PASSWORDS_PASSWORDS_BUBBLE_COCOA_H_

Powered by Google App Engine
This is Rietveld 408576698