OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_UI_CRW_NATIVE_CONTENT_H_ | 5 #ifndef IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_NATIVE_CONTENT_H_ |
6 #define IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_NATIVE_CONTENT_H_ | 6 #define IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_NATIVE_CONTENT_H_ |
7 | 7 |
8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
9 | 9 |
10 #include "url/gurl.h" | 10 #include "url/gurl.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 - (void)wasShown; | 47 - (void)wasShown; |
48 | 48 |
49 // Notifies the CRWNativeContent that it has been hidden. | 49 // Notifies the CRWNativeContent that it has been hidden. |
50 - (void)wasHidden; | 50 - (void)wasHidden; |
51 | 51 |
52 // Returns |YES| if CRWNativeContent wants the keyboard shield when the keyboard | 52 // Returns |YES| if CRWNativeContent wants the keyboard shield when the keyboard |
53 // is up. | 53 // is up. |
54 - (BOOL)wantsKeyboardShield; | 54 - (BOOL)wantsKeyboardShield; |
55 | 55 |
56 // Returns |YES| if CRWNativeContent wants the hint text displayed. | 56 // Returns |YES| if CRWNativeContent wants the hint text displayed. |
57 // TODO(shreyasv): Remove this. This is chrome level concept and should not | 57 // TODO(crbug.com/374984): Remove this. This is chrome level concept and should |
58 // exist in the web/ layer. crbug.com/374984. | 58 // not exist in the web/ layer. |
59 - (BOOL)wantsLocationBarHintText; | 59 - (BOOL)wantsLocationBarHintText; |
60 | 60 |
61 // Dismisses on-screen keyboard if necessary. | 61 // Dismisses on-screen keyboard if necessary. |
62 - (void)dismissKeyboard; | 62 - (void)dismissKeyboard; |
63 | 63 |
64 // Dismisses any outstanding modal interaction elements (e.g. modal view | 64 // Dismisses any outstanding modal interaction elements (e.g. modal view |
65 // controllers, context menus, etc). | 65 // controllers, context menus, etc). |
66 - (void)dismissModals; | 66 - (void)dismissModals; |
67 | 67 |
68 // A native content controller should do any clean up at this time when | 68 // A native content controller should do any clean up at this time when |
(...skipping 14 matching lines...) Expand all Loading... |
83 // CRWNativeContent delegate protocol. | 83 // CRWNativeContent delegate protocol. |
84 @protocol CRWNativeContentDelegate<NSObject> | 84 @protocol CRWNativeContentDelegate<NSObject> |
85 | 85 |
86 @optional | 86 @optional |
87 // Called when the content supplies a new title. | 87 // Called when the content supplies a new title. |
88 - (void)nativeContent:(id)content titleDidChange:(NSString*)title; | 88 - (void)nativeContent:(id)content titleDidChange:(NSString*)title; |
89 | 89 |
90 @end | 90 @end |
91 | 91 |
92 #endif // IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_NATIVE_CONTENT_H_ | 92 #endif // IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_NATIVE_CONTENT_H_ |
OLD | NEW |