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

Unified Diff: ios/chrome/browser/ui/infobars/infobar_view.h

Issue 2831293002: Change target+selector for block in InfoBarView (Closed)
Patch Set: Address comment 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: ios/chrome/browser/ui/infobars/infobar_view.h
diff --git a/ios/chrome/browser/ui/infobars/infobar_view.h b/ios/chrome/browser/ui/infobars/infobar_view.h
index 1dca2431e89ad9d5a0b8bfff37e1ab296dbad427..57be6042ffbdaa4072bb6ae2511d3fbee22640b8 100644
--- a/ios/chrome/browser/ui/infobars/infobar_view.h
+++ b/ios/chrome/browser/ui/infobars/infobar_view.h
@@ -51,8 +51,9 @@ class InfoBarViewDelegate;
- (void)addLabel:(NSString*)label;
// Adds a message to the infobar that optionaly contains links initialized with
-// |stringAsLink:|. |action| is called on |target| when a link is clicked.
-- (void)addLabel:(NSString*)label target:(id)target action:(SEL)action;
+// |stringAsLink:|. |action| is called when a link is clicked, with the tag
+// associated with the link passed as a parameter..
+- (void)addLabel:(NSString*)label action:(void (^)(NSUInteger))action;
// Adds two buttons to the infobar. Button1 is the primary action of the infobar
// and in Material Design mode is shown with bold colors to reflect this role.

Powered by Google App Engine
This is Rietveld 408576698