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

Unified Diff: ios/clean/chrome/browser/ui/web_contents/web_contents_view_controller.h

Issue 2675763002: [ios clean] Consumer interface for WebContents (Closed)
Patch Set: Feedback. Created 3 years, 10 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/clean/chrome/browser/ui/web_contents/web_contents_view_controller.h
diff --git a/ios/clean/chrome/browser/ui/web_contents/web_contents_view_controller.h b/ios/clean/chrome/browser/ui/web_contents/web_contents_view_controller.h
index 7faed63fefbafd29ebe23943b09cf9ec0e7c80af..110b385bd800a489a489f58ecefd28ca89fa229e 100644
--- a/ios/clean/chrome/browser/ui/web_contents/web_contents_view_controller.h
+++ b/ios/clean/chrome/browser/ui/web_contents/web_contents_view_controller.h
@@ -11,28 +11,11 @@
#import <UIKit/UIKit.h>
-namespace web {
-class WebState;
-}
+#import "ios/clean/chrome/browser/ui/web_contents/web_contents_consumer.h"
// A view controller for displaying a web view with no other controls or
// decoration.
-@interface WebContentsViewController : UIViewController
-
-// Designated initializer. |webState| must not be null.
-- (instancetype)initWithWebState:(web::WebState*)webState
- NS_DESIGNATED_INITIALIZER;
-
-- (instancetype)init NS_UNAVAILABLE;
-
-- (instancetype)initWithCoder:(NSCoder*)aCoder NS_UNAVAILABLE;
-
-- (instancetype)initWithNibName:(NSString*)nibNameOrNil
- bundle:(NSBundle*)nibBundleOrNil NS_UNAVAILABLE;
-
-// The webState the receiver was initialized with.
-@property(nonatomic, readonly) web::WebState* webState;
-
+@interface WebContentsViewController : UIViewController<WebContentsConsumer>
@end
#endif // IOS_CLEAN_CHROME_BROWSER_UI_WEB_CONTENTS_WEB_CONTENTS_VIEW_CONTROLLER_H_

Powered by Google App Engine
This is Rietveld 408576698