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

Unified Diff: ios/clean/chrome/browser/ui/tools/tools_mediator.h

Issue 2906313003: [ios clean] ToolsMenu Mediator observes Webstate. (Closed)
Patch Set: Improved comments and test nits Created 3 years, 7 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/tools/tools_mediator.h
diff --git a/ios/clean/chrome/browser/ui/tools/tools_mediator.h b/ios/clean/chrome/browser/ui/tools/tools_mediator.h
index d13f54d914687f3b677f1b7a8a80d07c5a85993e..de0fefa89fae15353f803e0329375b54c83703f7 100644
--- a/ios/clean/chrome/browser/ui/tools/tools_mediator.h
+++ b/ios/clean/chrome/browser/ui/tools/tools_mediator.h
@@ -9,14 +9,22 @@
@protocol ToolsConsumer;
@class ToolsMenuConfiguration;
+namespace web {
+class WebState;
+}
// A mediator object that sets a ToolsMenuVC appeareance based on various data
// sources.
@interface ToolsMediator : NSObject
-- (instancetype)initWithConsumer:(id<ToolsConsumer>)consumer
- andConfiguration:(ToolsMenuConfiguration*)menuConfiguration
+- (nullable instancetype)initWithConsumer:(nonnull id<ToolsConsumer>)consumer
+ configuration:(nonnull ToolsMenuConfiguration*)
+ menuConfiguration
NS_DESIGNATED_INITIALIZER;
-- (instancetype)init NS_UNAVAILABLE;
+- (nullable instancetype)init NS_UNAVAILABLE;
+
+// The WebState whose properties this object mediates. This can change during
+// the lifetime of this object and may be null.
+@property(nonatomic, assign, nullable) web::WebState* webState;
@end
#endif // IOS_CLEAN_CHROME_BROWSER_UI_TOOLS_TOOLS_MEDIATOR_H_

Powered by Google App Engine
This is Rietveld 408576698