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

Unified Diff: ios/chrome/browser/infobars/infobar_controller.h

Issue 2592113002: Remove legacy InfoBarViewProtocol. (Closed)
Patch Set: Rebase. Created 3 years, 12 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/infobars/infobar_controller.h
diff --git a/ios/chrome/browser/infobars/infobar_controller.h b/ios/chrome/browser/infobars/infobar_controller.h
index a3dc828063a64427365bc840d8a34c7e38659c09..37fe2c19afd67c956531b09ef617f0790f4996d1 100644
--- a/ios/chrome/browser/infobars/infobar_controller.h
+++ b/ios/chrome/browser/infobars/infobar_controller.h
@@ -7,7 +7,7 @@
#import <UIKit/UIKit.h>
-@protocol InfoBarViewProtocol;
+@class InfoBarView;
class InfoBarViewDelegate;
namespace infobars {
class InfoBarDelegate;
@@ -17,6 +17,7 @@ class InfoBarDelegate;
@interface InfoBarController : NSObject
@property(nonatomic, readonly) InfoBarViewDelegate* delegate;
+
// Designated initializer.
- (instancetype)initWithDelegate:(InfoBarViewDelegate*)delegate
NS_DESIGNATED_INITIALIZER;
@@ -25,9 +26,8 @@ class InfoBarDelegate;
// Creates a view and lays out all the infobar elements in it. Will not add
// it as a subview yet. This method must be overriden in subclasses.
-- (UIView<InfoBarViewProtocol>*)viewForDelegate:
- (infobars::InfoBarDelegate*)delegate
- frame:(CGRect)bounds;
+- (InfoBarView*)viewForDelegate:(infobars::InfoBarDelegate*)delegate
+ frame:(CGRect)bounds;
// Creates the view.
- (void)layoutForDelegate:(infobars::InfoBarDelegate*)delegate
@@ -47,7 +47,7 @@ class InfoBarDelegate;
- (void)removeView;
// Accesses the view.
-- (UIView<InfoBarViewProtocol>*)view;
+- (InfoBarView*)view;
@end
« no previous file with comments | « ios/chrome/browser/infobars/infobar_container_view.mm ('k') | ios/chrome/browser/infobars/infobar_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698