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

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

Issue 2831293002: Change target+selector for block in InfoBarView (Closed)
Patch Set: Update 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..d54d0815ddab10da371c9269d827df8ea592d4e6 100644
--- a/ios/chrome/browser/ui/infobars/infobar_view.h
+++ b/ios/chrome/browser/ui/infobars/infobar_view.h
@@ -51,8 +51,8 @@ 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.
jif 2017/04/21 11:12:48 Can you explain what NSUInteger is? For example:
gambard 2017/04/21 11:34:05 Done.
+- (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.
« no previous file with comments | « ios/chrome/browser/translate/before_translate_infobar_controller.mm ('k') | ios/chrome/browser/ui/infobars/infobar_view.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698