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

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

Issue 2908623004: [ios clean] Toolbar displays total number of tabs. (Closed)
Patch Set: Minor comment changes. 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 2afe96d3c03f66e2fd448f3a5a6e7bef38d584f7..6cdd4d8ee655e36ee891bfddc3ef718b4809da25 100644
--- a/ios/clean/chrome/browser/ui/toolbar/toolbar_mediator.h
+++ b/ios/clean/chrome/browser/ui/toolbar/toolbar_mediator.h
@@ -12,6 +12,7 @@
namespace web {
class WebState;
}
+class WebStateList;
// A mediator object that provides the relevant properties of a web state
// to a consumer.
@@ -21,10 +22,17 @@ class WebState;
// the lifetime of this object and may be null.
@property(nonatomic, assign) web::WebState* webState;
edchin 2017/05/27 16:25:06 Perhaps in another CL: This webState should be tak
sczs 2017/05/30 00:18:21 Thanks for pointing this out! Will follow the Phan
+// 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_

Powered by Google App Engine
This is Rietveld 408576698