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

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

Issue 1610653002: Integrate the account chooser dialog on Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments Created 4 years, 11 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_utils.h
diff --git a/chrome/browser/ui/cocoa/passwords/passwords_bubble_utils.h b/chrome/browser/ui/cocoa/passwords/passwords_bubble_utils.h
index ab77dfb19b3a2ee8c953a14ba8477489b38ae7a1..582e57263ba630cb2418a2897baba89944ca0c0e 100644
--- a/chrome/browser/ui/cocoa/passwords/passwords_bubble_utils.h
+++ b/chrome/browser/ui/cocoa/passwords/passwords_bubble_utils.h
@@ -10,10 +10,9 @@
#import <Cocoa/Cocoa.h>
#include "base/strings/string16.h"
+#include "ui/gfx/range/range.h"
-namespace autofill {
-struct PasswordForm;
-} // autofill
+@class HyperlinkTextView;
const CGFloat kDesiredBubbleWidth = 370;
const CGFloat kFramePadding = 16;
@@ -43,4 +42,13 @@ std::pair<CGFloat, CGFloat> GetResizedColumns(
// Returns a password text field initialized with |text|.
NSSecureTextField* PasswordLabel(const base::string16& text);
+// Returns a button of the standard style for the bubble.
+NSButton* DialogButton(NSString* title);
+
+// Returns the title label with |text|. Nonempty |range| may specify a link
+// range.
+HyperlinkTextView* TitleLabelWithLink(const base::string16& text,
+ gfx::Range range,
+ id<NSTextViewDelegate> delegate);
+
#endif // CHROME_BROWSER_UI_COCOA_PASSWORDS_PASSWORDS_BUBBLE_UTILS_H_

Powered by Google App Engine
This is Rietveld 408576698