OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 // ====== New Architecture ===== | 5 // ====== New Architecture ===== |
6 // = This code is only used in the new iOS Chrome architecture. = | 6 // = This code is only used in the new iOS Chrome architecture. = |
7 // ============================================================================ | 7 // ============================================================================ |
8 | 8 |
9 #ifndef IOS_CHROME_BROWSER_UI_TAB_TAB_COORDINATOR_H_ | 9 #ifndef IOS_CLEAN_CHROME_BROWSER_UI_TAB_TAB_COORDINATOR_H_ |
10 #define IOS_CHROME_BROWSER_UI_TAB_TAB_COORDINATOR_H_ | 10 #define IOS_CLEAN_CHROME_BROWSER_UI_TAB_TAB_COORDINATOR_H_ |
11 | 11 |
12 #import <UIKit/UIKit.h> | 12 #import <UIKit/UIKit.h> |
13 #import "ios/chrome/browser/browser_coordinator.h" | 13 #import "ios/clean/chrome/browser/browser_coordinator.h" |
14 | 14 |
15 namespace web { | 15 namespace web { |
16 class WebState; | 16 class WebState; |
17 } | 17 } |
18 | 18 |
19 // Coordinator that runs a tab: A composed UI consisting of a web view plus | 19 // Coordinator that runs a tab: A composed UI consisting of a web view plus |
20 // additional UI components such as a toolbar. | 20 // additional UI components such as a toolbar. |
21 @interface TabCoordinator : BrowserCoordinator | 21 @interface TabCoordinator : BrowserCoordinator |
22 | 22 |
23 // The webState representing the web page that will be displayed in this tab. | 23 // The webState representing the web page that will be displayed in this tab. |
24 // Calling code should assign this before starting this coordinator. | 24 // Calling code should assign this before starting this coordinator. |
25 // This coordinator doesn't assume ownersip of |webState|. | 25 // This coordinator doesn't assume ownersip of |webState|. |
26 @property(nonatomic, assign) web::WebState* webState; | 26 @property(nonatomic, assign) web::WebState* webState; |
27 | 27 |
28 // An opaque key provided by this coordinator's parent which can be passed in | 28 // An opaque key provided by this coordinator's parent which can be passed in |
29 // to a transition animation to synchronize the presentation with the presenting | 29 // to a transition animation to synchronize the presentation with the presenting |
30 // view controller, if any. | 30 // view controller, if any. |
31 @property(nonatomic, copy) NSObject* presentationKey; | 31 @property(nonatomic, copy) NSObject* presentationKey; |
32 | 32 |
33 @end | 33 @end |
34 | 34 |
35 #endif // IOS_CHROME_BROWSER_UI_TAB_TAB_COORDINATOR_H_ | 35 #endif // IOS_CLEAN_CHROME_BROWSER_UI_TAB_TAB_COORDINATOR_H_ |
OLD | NEW |