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

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

Issue 2040143006: Implement the Sync promo in the password bubble on Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix tests Created 4 years, 6 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/base_passwords_content_view_controller.h
diff --git a/chrome/browser/ui/cocoa/passwords/base_passwords_content_view_controller.h b/chrome/browser/ui/cocoa/passwords/base_passwords_content_view_controller.h
index 3dcb1b084fb6e6f2b2ae582feeb28df8eb1daa26..0519e60aad22e95b27b0c49aec63b94dd0042daa 100644
--- a/chrome/browser/ui/cocoa/passwords/base_passwords_content_view_controller.h
+++ b/chrome/browser/ui/cocoa/passwords/base_passwords_content_view_controller.h
@@ -12,11 +12,14 @@ class ManagePasswordsBubbleModel;
// Handles user interaction with the content view.
@protocol BasePasswordsContentViewDelegate<NSObject>
+// Returns the model object.
+@property(nonatomic, readonly) ManagePasswordsBubbleModel* model;
+
// The user performed an action that should dismiss the bubble.
- (void)viewShouldDismiss;
-// Returns the model object.
-@property(nonatomic, readonly) ManagePasswordsBubbleModel* model;
+// The bubble should update its state.
+- (void)refreshBubble;
@end
@@ -25,19 +28,18 @@ class ManagePasswordsBubbleModel;
@private
id<BasePasswordsContentViewDelegate> delegate_; // Weak.
}
+@property(nonatomic, assign) id<BasePasswordsContentViewDelegate> delegate;
+
- (instancetype)initWithDelegate:(id<BasePasswordsContentViewDelegate>)delegate;
- (NSButton*)addButton:(NSString*)title
toView:(NSView*)view
target:(id)target
action:(SEL)action;
- (NSTextField*)addTitleLabel:(NSString*)title toView:(NSView*)view;
-- (void)bubbleWillDisappear;
// Returns the default button for the bubble.
- (NSButton*)defaultButton;
-@property(nonatomic, assign) id<BasePasswordsContentViewDelegate> delegate;
-
@end
#endif // CHROME_BROWSER_UI_COCOA_PASSWORDS_BASE_PASSWORDS_CONTENT_VIEW_CONTROLLER_H_

Powered by Google App Engine
This is Rietveld 408576698