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_WEB_CONTENTS_WEB_COORDINATOR_H_ | 9 #ifndef IOS_CLEAN_CHROME_BROWSER_UI_WEB_CONTENTS_WEB_COORDINATOR_H_ |
10 #define IOS_CHROME_BROWSER_UI_WEB_CONTENTS_WEB_COORDINATOR_H_ | 10 #define IOS_CLEAN_CHROME_BROWSER_UI_WEB_CONTENTS_WEB_COORDINATOR_H_ |
11 | 11 |
12 #import "ios/chrome/browser/browser_coordinator.h" | 12 #import "ios/clean/chrome/browser/browser_coordinator.h" |
13 #import "ios/chrome/browser/web/web_mediator.h" | 13 #import "ios/clean/chrome/browser/web/web_mediator.h" |
14 | 14 |
15 namespace web { | 15 namespace web { |
16 class WebState; | 16 class WebState; |
17 } | 17 } |
18 | 18 |
19 // A coordinator for a UI element that displays the web view associated with | 19 // A coordinator for a UI element that displays the web view associated with |
20 // |webState|. | 20 // |webState|. |
21 @interface WebCoordinator : BrowserCoordinator | 21 @interface WebCoordinator : BrowserCoordinator |
22 | 22 |
23 // The mediator for the web state this coordinator is displaying. Other | 23 // The mediator for the web state this coordinator is displaying. Other |
24 // coordinators that interact with the web state should do so through this | 24 // coordinators that interact with the web state should do so through this |
25 // property, not by directly interacting with the web state. | 25 // property, not by directly interacting with the web state. |
26 @property(nonatomic, readonly) WebMediator* webMediator; | 26 @property(nonatomic, readonly) WebMediator* webMediator; |
27 | 27 |
28 // Sets the web state for this coordinator; this will create the webMediator | 28 // Sets the web state for this coordinator; this will create the webMediator |
29 // object. | 29 // object. |
30 - (void)setWebState:(web::WebState*)webState; | 30 - (void)setWebState:(web::WebState*)webState; |
31 | 31 |
32 @end | 32 @end |
33 | 33 |
34 #endif // IOS_CHROME_BROWSER_UI_WEB_CONTENTS_WEB_COORDINATOR_H_ | 34 #endif // IOS_CLEAN_CHROME_BROWSER_UI_WEB_CONTENTS_WEB_COORDINATOR_H_ |
OLD | NEW |