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_CRW_WEB_VIEW_PROXY_H_ |
6 #define IOS_WEB_PUBLIC_WEB_STATE_CRW_WEB_VIEW_PROXY_H_ | 6 #define IOS_WEB_PUBLIC_WEB_STATE_CRW_WEB_VIEW_PROXY_H_ |
7 | 7 |
8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
9 | 9 |
10 #include "ios/web/public/web_view_type.h" | 10 #include "ios/web/public/web_view_type.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 // Unregister the registered insets for the given caller. | 42 // Unregister the registered insets for the given caller. |
43 - (void)unregisterInsetsForCaller:(id)caller; | 43 - (void)unregisterInsetsForCaller:(id)caller; |
44 | 44 |
45 // Wrapper around the addSubview method of the webview. | 45 // Wrapper around the addSubview method of the webview. |
46 - (void)addSubview:(UIView*)view; | 46 - (void)addSubview:(UIView*)view; |
47 | 47 |
48 // Returns YES if it makes sense to search for text right now. | 48 // Returns YES if it makes sense to search for text right now. |
49 - (BOOL)hasSearchableTextContent; | 49 - (BOOL)hasSearchableTextContent; |
50 | 50 |
51 // Returns the currently visible keyboard accessory, or nil. | 51 // Returns the currently visible keyboard accessory, or nil. |
52 // TODO(jdonnelly): Remove this once downstream code is updated to use | |
53 // keyboardAccessory. | |
54 - (UIView*)getKeyboardAccessory; | |
55 | |
56 // Returns the currently visible keyboard accessory, or nil. | |
57 - (UIView*)keyboardAccessory; | 52 - (UIView*)keyboardAccessory; |
58 | 53 |
59 // Returns the currently visible keyboard input assistant item, or nil. Only | 54 // Returns the currently visible keyboard input assistant item, or nil. Only |
60 // valid on iOS 9 or above. | 55 // valid on iOS 9 or above. |
61 #if defined(__IPHONE_9_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_9_0 | 56 #if defined(__IPHONE_9_0) && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_9_0 |
62 - (UITextInputAssistantItem*)inputAssistantItem; | 57 - (UITextInputAssistantItem*)inputAssistantItem; |
63 #endif | 58 #endif |
64 | 59 |
65 @end | 60 @end |
66 | 61 |
67 #endif // IOS_WEB_PUBLIC_WEB_STATE_CRW_WEB_VIEW_PROXY_H_ | 62 #endif // IOS_WEB_PUBLIC_WEB_STATE_CRW_WEB_VIEW_PROXY_H_ |
OLD | NEW |