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_BROWSER_COORDINATOR_INTERNAL_H_ | 9 #ifndef IOS_CHROME_BROWSER_BROWSER_COORDINATOR_INTERNAL_H_ |
10 #define IOS_CHROME_BROWSER_BROWSER_COORDINATOR_INTERNAL_H_ | 10 #define IOS_CHROME_BROWSER_BROWSER_COORDINATOR_INTERNAL_H_ |
(...skipping 19 matching lines...) Expand all Loading... |
30 // controller through this property. | 30 // controller through this property. |
31 @property(nonatomic, readonly) UIViewController* viewController; | 31 @property(nonatomic, readonly) UIViewController* viewController; |
32 | 32 |
33 // The child coordinators of this coordinator. To add or remove from this set, | 33 // The child coordinators of this coordinator. To add or remove from this set, |
34 // use the -addChildCoordinator: and -removeChildCoordinator: methods. | 34 // use the -addChildCoordinator: and -removeChildCoordinator: methods. |
35 @property(nonatomic, readonly) NSSet<BrowserCoordinator*>* children; | 35 @property(nonatomic, readonly) NSSet<BrowserCoordinator*>* children; |
36 | 36 |
37 // The coordinator that added this coordinator as a child, if any. | 37 // The coordinator that added this coordinator as a child, if any. |
38 @property(nonatomic, readonly) BrowserCoordinator* parentCoordinator; | 38 @property(nonatomic, readonly) BrowserCoordinator* parentCoordinator; |
39 | 39 |
| 40 // YES if the receiver has been started; NO (the default) otherwise. Stopping |
| 41 // the receiver resets this property to NO. |
| 42 @property(nonatomic, readonly) BOOL started; |
| 43 |
40 // YES if the receiver is acting as an overlay coordinator; NO (the default) | 44 // YES if the receiver is acting as an overlay coordinator; NO (the default) |
41 // otherwise. | 45 // otherwise. |
42 @property(nonatomic, readonly) BOOL overlaying; | 46 @property(nonatomic, readonly) BOOL overlaying; |
43 | 47 |
44 // The coordinator (if any) in the coordinator hierarchy (starting with | 48 // The coordinator (if any) in the coordinator hierarchy (starting with |
45 // the receiver) that is overlaying. If the receiver isn't overlaying, | 49 // the receiver) that is overlaying. If the receiver isn't overlaying, |
46 // it recursively asks its children. | 50 // it recursively asks its children. |
47 @property(nonatomic, readonly) BrowserCoordinator* overlayCoordinator; | 51 @property(nonatomic, readonly) BrowserCoordinator* overlayCoordinator; |
48 | 52 |
49 // Adds |coordinator| as a child, taking ownership of it, setting the receiver's | 53 // Adds |coordinator| as a child, taking ownership of it, setting the receiver's |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 // nothing happens. | 85 // nothing happens. |
82 - (void)addOverlayCoordinator:(BrowserCoordinator*)overlayCoordinator; | 86 - (void)addOverlayCoordinator:(BrowserCoordinator*)overlayCoordinator; |
83 | 87 |
84 // Removes the current overlay coordinator (if any) as a child from its | 88 // Removes the current overlay coordinator (if any) as a child from its |
85 // parent. | 89 // parent. |
86 - (void)removeOverlayCoordinator; | 90 - (void)removeOverlayCoordinator; |
87 | 91 |
88 @end | 92 @end |
89 | 93 |
90 #endif // IOS_CHROME_BROWSER_BROWSER_COORDINATOR_INTERNAL_H_ | 94 #endif // IOS_CHROME_BROWSER_BROWSER_COORDINATOR_INTERNAL_H_ |
OLD | NEW |