| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef IOS_WEB_PUBLIC_WEB_STATE_CRW_WEB_VIEW_PROXY_H_ | 5 #ifndef IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_WEB_VIEW_PROXY_H_ |
| 6 #define IOS_WEB_PUBLIC_WEB_STATE_CRW_WEB_VIEW_PROXY_H_ | 6 #define IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_WEB_VIEW_PROXY_H_ |
| 7 | 7 |
| 8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
| 9 | 9 |
| 10 | |
| 11 @class CRWWebViewScrollViewProxy; | 10 @class CRWWebViewScrollViewProxy; |
| 12 | 11 |
| 13 // Provides an interface for embedders to access the WebState's web view in a | 12 // Provides an interface for embedders to access the WebState's web view in a |
| 14 // limited and controlled manner. | 13 // limited and controlled manner. |
| 15 // TODO(crbug.com/546152): rename protocol to CRWContentViewProxy. | 14 // TODO(crbug.com/546152): rename protocol to CRWContentViewProxy. |
| 16 @protocol CRWWebViewProxy<NSObject> | 15 @protocol CRWWebViewProxy<NSObject> |
| 17 | 16 |
| 18 // The web view's bounding rectangle (relative to its parent). | 17 // The web view's bounding rectangle (relative to its parent). |
| 19 @property(readonly, assign) CGRect bounds; | 18 @property(readonly, assign) CGRect bounds; |
| 20 | 19 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 // valid on iOS 9 or above. | 66 // valid on iOS 9 or above. |
| 68 #if defined(__IPHONE_9_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_9_0 | 67 #if defined(__IPHONE_9_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_9_0 |
| 69 - (UITextInputAssistantItem*)inputAssistantItem; | 68 - (UITextInputAssistantItem*)inputAssistantItem; |
| 70 #endif | 69 #endif |
| 71 | 70 |
| 72 // Wrapper around the becomeFirstResponder method of the webview. | 71 // Wrapper around the becomeFirstResponder method of the webview. |
| 73 - (BOOL)becomeFirstResponder; | 72 - (BOOL)becomeFirstResponder; |
| 74 | 73 |
| 75 @end | 74 @end |
| 76 | 75 |
| 77 #endif // IOS_WEB_PUBLIC_WEB_STATE_CRW_WEB_VIEW_PROXY_H_ | 76 #endif // IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_WEB_VIEW_PROXY_H_ |
| OLD | NEW |