Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(171)

Side by Side Diff: ios/web/public/web_state/ui/crw_native_content.h

Issue 2589213002: Add CRWNativeContent willBeDismissed. (Closed)
Patch Set: feedback Created 3 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | ios/web/web_state/ui/crw_web_controller_container_view.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | ios/web/web_state/ui/crw_web_controller_container_view.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698