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

Side by Side Diff: ios/clean/chrome/browser/ui/tab_collection/tab_collection_mediator.h

Issue 2780423003: [ios] Use web_state_list in web_contents_mediator. (Closed)
Patch Set: Update unittests. Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef IOS_CLEAN_CHROME_BROWSER_UI_TAB_COLLECTION_TAB_COLLECTION_MEDIATOR_H_ 5 #ifndef IOS_CLEAN_CHROME_BROWSER_UI_TAB_COLLECTION_TAB_COLLECTION_MEDIATOR_H_
6 #define IOS_CLEAN_CHROME_BROWSER_UI_TAB_COLLECTION_TAB_COLLECTION_MEDIATOR_H_ 6 #define IOS_CLEAN_CHROME_BROWSER_UI_TAB_COLLECTION_TAB_COLLECTION_MEDIATOR_H_
7 7
8 #import <Foundation/Foundation.h>
9
8 #import "ios/clean/chrome/browser/ui/tab_collection/tab_collection_data_source.h " 10 #import "ios/clean/chrome/browser/ui/tab_collection/tab_collection_data_source.h "
9 #import "ios/shared/chrome/browser/tabs/web_state_list_observer_bridge.h" 11 #import "ios/shared/chrome/browser/tabs/web_state_list_observer_bridge.h"
10 12
11 @protocol TabCollectionConsumer; 13 @protocol TabCollectionConsumer;
12 class WebStateList; 14 class WebStateList;
13 15
14 // Mediator listens for web state list changes, then updates the consumer. 16 // Mediator listens for web state list changes, then updates the consumer.
15 // This also serves as data source for a tab collection. 17 // This also serves as data source for a tab collection.
16 @interface TabCollectionMediator 18 @interface TabCollectionMediator
17 : NSObject<TabCollectionDataSource, WebStateListObserving> 19 : NSObject<TabCollectionDataSource, WebStateListObserving>
18 20
19 // The source of changes and backing of the data source. 21 // The source of changes and backing of the data source.
20 @property(nonatomic, assign) WebStateList* webStateList; 22 @property(nonatomic, assign) WebStateList* webStateList;
21 23
22 // This consumer is updated whenever there are relevant changes to the web state 24 // This consumer is updated whenever there are relevant changes to the web state
23 // list. 25 // list.
24 @property(nonatomic, weak) id<TabCollectionConsumer> consumer; 26 @property(nonatomic, weak) id<TabCollectionConsumer> consumer;
25 27
26 @end 28 @end
27 29
28 #endif // IOS_CLEAN_CHROME_BROWSER_UI_TAB_COLLECTION_TAB_COLLECTION_MEDIATOR_H_ 30 #endif // IOS_CLEAN_CHROME_BROWSER_UI_TAB_COLLECTION_TAB_COLLECTION_MEDIATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698