| OLD | NEW |
| (Empty) |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef IOS_SHARED_CHROME_BROWSER_TABS_WEB_STATE_HANDLE_H_ | |
| 6 #define IOS_SHARED_CHROME_BROWSER_TABS_WEB_STATE_HANDLE_H_ | |
| 7 | |
| 8 namespace web { | |
| 9 class WebState; | |
| 10 class WebStateImpl; | |
| 11 } | |
| 12 | |
| 13 // Wraps a web::WebState instance in an Objective-C instance. Allows using | |
| 14 // Objective-C collection to reference web::WebStates. | |
| 15 @protocol WebStateHandle | |
| 16 | |
| 17 // Returns the wrapped web::WebState. | |
| 18 @property(nonatomic, readonly) web::WebState* webState; | |
| 19 | |
| 20 // Returns the wrapped web::WebState as a web::WebStateImpl. Deprecated, | |
| 21 // use webState instead if possible. | |
| 22 @property(nonatomic, readonly) web::WebStateImpl* webStateImpl; | |
| 23 | |
| 24 @end | |
| 25 | |
| 26 #endif // IOS_SHARED_CHROME_BROWSER_TABS_WEB_STATE_HANDLE_H_ | |
| OLD | NEW |