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 #ifndef IOS_CHROME_BROWSER_ROOT_COORDINATOR_H_ | 5 #ifndef IOS_CHROME_BROWSER_ROOT_COORDINATOR_H_ |
6 #define IOS_CHROME_BROWSER_ROOT_COORDINATOR_H_ | 6 #define IOS_CHROME_BROWSER_ROOT_COORDINATOR_H_ |
7 | 7 |
8 #include <UIKit/UIKit.h> | 8 #include <UIKit/UIKit.h> |
9 | 9 |
10 #import "ios/chrome/browser/chrome_coordinator.h" | 10 #import "ios/chrome/browser/chrome_coordinator.h" |
11 | 11 |
12 // A coordinator specialization for the case where the coordinator is | 12 // A coordinator specialization for the case where the coordinator is |
13 // creating and managing the root view controller for a UIWindow. | 13 // creating and managing the root view controller for a UIWindow. |
14 | 14 |
15 @interface RootCoordinator : ChromeCoordinator | 15 @interface RootCoordinator : ChromeCoordinator |
16 | 16 |
17 - (nullable instancetype)initWithWindow:(nullable UIWindow*)window | 17 - (nullable instancetype)initWithWindow:(nullable UIWindow*)window |
18 NS_DESIGNATED_INITIALIZER; | 18 NS_DESIGNATED_INITIALIZER; |
19 | 19 |
20 - (nullable instancetype)initWithBaseViewController: | 20 - (nullable instancetype)initWithBaseViewController: |
21 (nullable UIViewController*)viewController NS_UNAVAILABLE; | 21 (nullable UIViewController*)viewController NS_UNAVAILABLE; |
22 | 22 |
23 @property(nonatomic, readonly, nullable) UIWindow* window; | 23 @property(weak, nonatomic, readonly, nullable) UIWindow* window; |
24 | 24 |
25 @end | 25 @end |
26 | 26 |
27 #endif // IOS_CHROME_BROWSER_ROOT_COORDINATOR_H_ | 27 #endif // IOS_CHROME_BROWSER_ROOT_COORDINATOR_H_ |
OLD | NEW |