| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 | 52 |
| 53 // 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 |
| 54 // viewController (if any) as the child's baseViewController, and setting | 54 // viewController (if any) as the child's baseViewController, and setting |
| 55 // the receiver's |browser| as the child's |browser|. | 55 // the receiver's |browser| as the child's |browser|. |
| 56 - (void)addChildCoordinator:(BrowserCoordinator*)coordinator; | 56 - (void)addChildCoordinator:(BrowserCoordinator*)coordinator; |
| 57 | 57 |
| 58 // Removes |coordinator| as a child, relinquishing ownership of it. If | 58 // Removes |coordinator| as a child, relinquishing ownership of it. If |
| 59 // |coordinator| isn't a child of the receiver, this method does nothing. | 59 // |coordinator| isn't a child of the receiver, this method does nothing. |
| 60 - (void)removeChildCoordinator:(BrowserCoordinator*)coordinator; | 60 - (void)removeChildCoordinator:(BrowserCoordinator*)coordinator; |
| 61 | 61 |
| 62 // Called when this coordinator moves to a new parent coordinator. Subclasses |
| 63 // can override this method to run code that requires a configured |
| 64 // CoordinatorContext. |
| 65 - (void)coordinatorDidMoveToParentCoordinator: |
| 66 (BrowserCoordinator*)parentCoordinator; |
| 67 |
| 62 // Called when a child coordinator did start. This is a blank template method. | 68 // Called when a child coordinator did start. This is a blank template method. |
| 63 // Subclasses can override this method when they need to know when their | 69 // Subclasses can override this method when they need to know when their |
| 64 // children start. | 70 // children start. |
| 65 - (void)childCoordinatorDidStart:(BrowserCoordinator*)childCoordinator; | 71 - (void)childCoordinatorDidStart:(BrowserCoordinator*)childCoordinator; |
| 66 | 72 |
| 67 // Called when a child coordinator will stop. This is a blank template method. | 73 // Called when a child coordinator will stop. This is a blank template method. |
| 68 // Subclasses can override this method when they need to know when their | 74 // Subclasses can override this method when they need to know when their |
| 69 // children start. | 75 // children start. |
| 70 - (void)childCoordinatorWillStop:(BrowserCoordinator*)childCoordinator; | 76 - (void)childCoordinatorWillStop:(BrowserCoordinator*)childCoordinator; |
| 71 | 77 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 85 // nothing happens. | 91 // nothing happens. |
| 86 - (void)addOverlayCoordinator:(BrowserCoordinator*)overlayCoordinator; | 92 - (void)addOverlayCoordinator:(BrowserCoordinator*)overlayCoordinator; |
| 87 | 93 |
| 88 // Removes the current overlay coordinator (if any) as a child from its | 94 // Removes the current overlay coordinator (if any) as a child from its |
| 89 // parent. | 95 // parent. |
| 90 - (void)removeOverlayCoordinator; | 96 - (void)removeOverlayCoordinator; |
| 91 | 97 |
| 92 @end | 98 @end |
| 93 | 99 |
| 94 #endif // IOS_CHROME_BROWSER_BROWSER_COORDINATOR_INTERNAL_H_ | 100 #endif // IOS_CHROME_BROWSER_BROWSER_COORDINATOR_INTERNAL_H_ |
| OLD | NEW |