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

Unified Diff: ios/clean/chrome/browser/ui/toolbar/toolbar_mediator.h

Issue 2908623004: [ios clean] Toolbar displays total number of tabs. (Closed)
Patch Set: Add comment. 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/toolbar/toolbar_mediator.h
diff --git a/ios/clean/chrome/browser/ui/toolbar/toolbar_mediator.h b/ios/clean/chrome/browser/ui/toolbar/toolbar_mediator.h
index e6059ed6cf68e49a67cb220b9d2cd9e3e5c39fd9..c7c38c259d033ec9e007cac72c9e4c3283fa2759 100644
--- a/ios/clean/chrome/browser/ui/toolbar/toolbar_mediator.h
+++ b/ios/clean/chrome/browser/ui/toolbar/toolbar_mediator.h
@@ -14,6 +14,7 @@
namespace web {
class WebState;
}
+class WebStateList;
// A mediator object that provides the relevant properties of a web state
// to a consumer.
@@ -23,10 +24,17 @@ class WebState;
// the lifetime of this object and may be null.
@property(nonatomic, assign) web::WebState* webState;
+// The WebStateList that this mediator listens for any changes on the total
+// number of Webstates.
+@property(nonatomic, assign) WebStateList* webStateList;
+
// The consumer for this object. This can change during the lifetime of this
// object and may be nil.
@property(nonatomic, strong) id<ToolbarConsumer> consumer;
+// Stops observing all objects.
+- (void)disconnect;
+
@end
#endif // IOS_CLEAN_CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_MEDIATOR_H_
« no previous file with comments | « ios/clean/chrome/browser/ui/toolbar/toolbar_coordinator.mm ('k') | ios/clean/chrome/browser/ui/toolbar/toolbar_mediator.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698