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_CLEAN_CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_COORDINATOR_H_ | 9 #ifndef IOS_CLEAN_CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_COORDINATOR_H_ |
10 #define IOS_CLEAN_CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_COORDINATOR_H_ | 10 #define IOS_CLEAN_CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_COORDINATOR_H_ |
11 | 11 |
12 #import "ios/clean/chrome/browser/browser_coordinator.h" | 12 #import "ios/clean/chrome/browser/browser_coordinator.h" |
13 #import "ios/web/public/web_state/web_state_observer_bridge.h" | 13 |
14 namespace web { | |
15 class WebState; | |
16 } | |
14 | 17 |
15 // Coordinator to run a toolbar -- a UI element housing controls. | 18 // Coordinator to run a toolbar -- a UI element housing controls. |
16 @interface ToolbarCoordinator : BrowserCoordinator<CRWWebStateObserver> | 19 @interface ToolbarCoordinator : BrowserCoordinator |
20 // The web state this ToolbarCoordinator is handling. | |
21 @property(nonatomic, assign) web::WebState* webState; | |
edchin
2017/02/21 18:39:08
If this webState is required, consider a custom in
sczs
2017/02/21 19:04:09
I was thinking the exact same thing! But I'm not s
| |
17 @end | 22 @end |
18 | 23 |
19 #endif // IOS_CLEAN_CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_COORDINATOR_H_ | 24 #endif // IOS_CLEAN_CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_COORDINATOR_H_ |
OLD | NEW |