OLD | NEW |
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_CHROME_BROWSER_TABS_TAB_MODEL_SELECTED_TAB_OBSERVER_H_ | 5 #ifndef IOS_CHROME_BROWSER_TABS_TAB_MODEL_SELECTED_TAB_OBSERVER_H_ |
6 #define IOS_CHROME_BROWSER_TABS_TAB_MODEL_SELECTED_TAB_OBSERVER_H_ | 6 #define IOS_CHROME_BROWSER_TABS_TAB_MODEL_SELECTED_TAB_OBSERVER_H_ |
7 | 7 |
8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
9 | 9 |
10 #import "ios/chrome/browser/web_state_list/web_state_list_observer_bridge.h" | 10 #import "ios/shared/chrome/browser/tabs/web_state_list_observer_bridge.h" |
11 | 11 |
12 @class TabModel; | 12 @class TabModel; |
13 | 13 |
14 // Listen to WebStateList active WebState change events and then save the | 14 // Listen to WebStateList active WebState change events and then save the |
15 // old Tab state, fire notification and save the session if necessary. | 15 // old Tab state, fire notification and save the session if necessary. |
16 @interface TabModelSelectedTabObserver : NSObject<WebStateListObserving> | 16 @interface TabModelSelectedTabObserver : NSObject<WebStateListObserving> |
17 | 17 |
18 - (instancetype)initWithTabModel:(TabModel*)tabModel NS_DESIGNATED_INITIALIZER; | 18 - (instancetype)initWithTabModel:(TabModel*)tabModel NS_DESIGNATED_INITIALIZER; |
19 | 19 |
20 - (instancetype)init NS_UNAVAILABLE; | 20 - (instancetype)init NS_UNAVAILABLE; |
21 | 21 |
22 @end | 22 @end |
23 | 23 |
24 #endif // IOS_CHROME_BROWSER_TABS_TAB_MODEL_SELECTED_TAB_OBSERVER_H_ | 24 #endif // IOS_CHROME_BROWSER_TABS_TAB_MODEL_SELECTED_TAB_OBSERVER_H_ |
OLD | NEW |