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_ |
11 | 11 |
12 #import "ios/chrome/browser/browser_coordinator.h" | 12 #import "ios/clean/chrome/browser/browser_coordinator.h" |
13 | 13 |
14 // Internal API for subclasses and categories of BrowserCoordinator. | 14 // Internal API for subclasses and categories of BrowserCoordinator. |
15 // | 15 // |
16 // This API can be used to create and manage 'overlay coordinators'. | 16 // This API can be used to create and manage 'overlay coordinators'. |
17 // Overlay coordinators are intended to be used for UI elements that | 17 // Overlay coordinators are intended to be used for UI elements that |
18 // sit on top of the regular UI, and which may need to be dismissed | 18 // sit on top of the regular UI, and which may need to be dismissed |
19 // by coordinators that don't have direct access to them. Typical uses | 19 // by coordinators that don't have direct access to them. Typical uses |
20 // would be alerts, login prompts, or other UI that might be dismissed | 20 // would be alerts, login prompts, or other UI that might be dismissed |
21 // if (for example) an external event causes a web page to load. | 21 // if (for example) an external event causes a web page to load. |
22 // Overlay coordinators can be added by any coordinator in the coordinator | 22 // Overlay coordinators can be added by any coordinator in the coordinator |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 // must override this method to determines how the overlay is added. | 67 // must override this method to determines how the overlay is added. |
68 - (void)addOverlayCoordinator:(BrowserCoordinator*)overlayCoordinator; | 68 - (void)addOverlayCoordinator:(BrowserCoordinator*)overlayCoordinator; |
69 | 69 |
70 // Removes the current overlay coordinator (if any) as a child from its | 70 // Removes the current overlay coordinator (if any) as a child from its |
71 // parent. | 71 // parent. |
72 - (void)removeOverlayCoordinator; | 72 - (void)removeOverlayCoordinator; |
73 | 73 |
74 @end | 74 @end |
75 | 75 |
76 #endif // IOS_CHROME_BROWSER_BROWSER_COORDINATOR_INTERNAL_H_ | 76 #endif // IOS_CHROME_BROWSER_BROWSER_COORDINATOR_INTERNAL_H_ |
OLD | NEW |