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 #import "ios/web/public/block_types.h" | 10 #import "ios/web/public/block_types.h" |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 | 78 |
79 // Enables or disables usage of web views inside the native controller. | 79 // Enables or disables usage of web views inside the native controller. |
80 - (void)setWebUsageEnabled:(BOOL)webUsageEnabled; | 80 - (void)setWebUsageEnabled:(BOOL)webUsageEnabled; |
81 | 81 |
82 // Enables or disables the scrolling in the native view (when available). | 82 // Enables or disables the scrolling in the native view (when available). |
83 - (void)setScrollEnabled:(BOOL)enabled; | 83 - (void)setScrollEnabled:(BOOL)enabled; |
84 | 84 |
85 // Called when a snapshot of the content will be taken. | 85 // Called when a snapshot of the content will be taken. |
86 - (void)willUpdateSnapshot; | 86 - (void)willUpdateSnapshot; |
87 | 87 |
| 88 // Notifies the CRWNativeContent that it will be removed from superview. |
| 89 - (void)willBeDismissed; |
| 90 |
88 // The URL that will be displayed to the user when presenting this native | 91 // The URL that will be displayed to the user when presenting this native |
89 // content. | 92 // content. |
90 - (GURL)virtualURL; | 93 - (GURL)virtualURL; |
91 | 94 |
92 @end | 95 @end |
93 | 96 |
94 // CRWNativeContent delegate protocol. | 97 // CRWNativeContent delegate protocol. |
95 @protocol CRWNativeContentDelegate<NSObject> | 98 @protocol CRWNativeContentDelegate<NSObject> |
96 | 99 |
97 @optional | 100 @optional |
98 // Called when the content supplies a new title. | 101 // Called when the content supplies a new title. |
99 - (void)nativeContent:(id)content titleDidChange:(NSString*)title; | 102 - (void)nativeContent:(id)content titleDidChange:(NSString*)title; |
100 | 103 |
101 @end | 104 @end |
102 | 105 |
103 #endif // IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_NATIVE_CONTENT_H_ | 106 #endif // IOS_WEB_PUBLIC_WEB_STATE_UI_CRW_NATIVE_CONTENT_H_ |
OLD | NEW |