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

Unified Diff: chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.h

Issue 267183002: Password manager: Implement password generation UI for Mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More implementation Created 6 years, 7 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/autofill/autofill_popup_view_cocoa.h
diff --git a/chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.h b/chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.h
index c51a6ed8d061e6ed1544759e3113ecbb4f427321..9ae2c684f1790376a4a5e4cd39567c3f11e1ea47 100644
--- a/chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.h
+++ b/chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.h
@@ -11,10 +11,43 @@
namespace autofill {
class AutofillPopupController;
+class AutofillPopupViewDelegate;
} // namespace autofill
+@interface AutofillPopupBaseViewCocoa : BaseView {
+ @private
+ __weak autofill::AutofillPopupViewDelegate* delegate_;
+}
+
+- (NSColor*)backgroundColor;
+- (NSColor*)borderColor;
+- (NSColor*)separatorColor;
+- (NSColor*)highlightColor;
+- (NSColor*)nameColor;
+- (NSColor*)warningColor;
+- (NSColor*)subtextColor;
+
+// Informs the view that its controller has been (or will imminently be)
+// destroyed.
+- (void)controllerDestroyed;
+
+- (id)initWithAutofillPopupViewDelegate:
+ (autofill::AutofillPopupViewDelegate*)delegate frame:(NSRect)frame;
+
+ // Draw the popup's background and border.
+- (void)drawBackgroundAndBorderInRect:(NSRect)dirtyRect;
+
+// Draws a thin separator in the popup UI.
+- (void)drawSeparatorWithBounds:(NSRect)bounds;
+
+// Messages from AutofillPopupViewBridge:
+- (void)updateBoundsAndRedrawPopup;
+- (void)showPopup;
+- (void)hidePopup;
+@end
+
// Draws the native Autofill popup view on Mac.
-@interface AutofillPopupViewCocoa : BaseView {
+@interface AutofillPopupViewCocoa : AutofillPopupBaseViewCocoa {
@private
// The cross-platform controller for this view.
__weak autofill::AutofillPopupController* controller_;
@@ -24,9 +57,7 @@ class AutofillPopupController;
- (id)initWithController:(autofill::AutofillPopupController*)controller
frame:(NSRect)frame;
-// Informs the view that its controller has been (or will imminently be)
-// destroyed.
-- (void)controllerDestroyed;
+- (void)invalidateRow:(size_t)row;
@end

Powered by Google App Engine
This is Rietveld 408576698