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

Side by Side Diff: ios/web/web_state/ui/crw_web_controller_container_view.h

Issue 2453473002: Zero-out crw_web_controller's container view delegate in dealloc. (Closed)
Patch Set: Comments Created 4 years, 1 month 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_WEB_STATE_UI_CRW_WEB_CONTROLLER_CONTAINER_VIEW_H_ 5 #ifndef IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_CONTAINER_VIEW_H_
6 #define IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_CONTAINER_VIEW_H_ 6 #define IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_CONTAINER_VIEW_H_
7 7
8 #import <UIKit/UIKit.h> 8 #import <UIKit/UIKit.h>
9 9
10 #include "ios/web/public/web_state/ui/crw_content_view.h" 10 #include "ios/web/public/web_state/ui/crw_content_view.h"
(...skipping 21 matching lines...) Expand all
32 @interface CRWWebControllerContainerView : UIView 32 @interface CRWWebControllerContainerView : UIView
33 33
34 #pragma mark Content Views 34 #pragma mark Content Views
35 // The web view content view being displayed. 35 // The web view content view being displayed.
36 @property(nonatomic, retain, readonly) 36 @property(nonatomic, retain, readonly)
37 CRWWebViewContentView* webViewContentView; 37 CRWWebViewContentView* webViewContentView;
38 // The native controller whose content is being displayed. 38 // The native controller whose content is being displayed.
39 @property(nonatomic, retain, readonly) id<CRWNativeContent> nativeController; 39 @property(nonatomic, retain, readonly) id<CRWNativeContent> nativeController;
40 // The currently displayed transient content view. 40 // The currently displayed transient content view.
41 @property(nonatomic, retain, readonly) CRWContentView* transientContentView; 41 @property(nonatomic, retain, readonly) CRWContentView* transientContentView;
42 @property(nonatomic, assign) id<CRWWebControllerContainerViewDelegate>
43 delegate; // weak
42 44
43 // Designated initializer. |proxy|'s content view will be updated as different 45 // Designated initializer. |proxy|'s content view will be updated as different
44 // content is added to the container. 46 // content is added to the container.
45 - (instancetype)initWithDelegate: 47 - (instancetype)initWithDelegate:
46 (id<CRWWebControllerContainerViewDelegate>)delegate 48 (id<CRWWebControllerContainerViewDelegate>)delegate
47 NS_DESIGNATED_INITIALIZER; 49 NS_DESIGNATED_INITIALIZER;
48 50
49 // CRWWebControllerContainerView should be initialized via 51 // CRWWebControllerContainerView should be initialized via
50 // |-initWithContentViewProxy:|. 52 // |-initWithContentViewProxy:|.
51 - (instancetype)initWithCoder:(NSCoder*)decoder NS_UNAVAILABLE; 53 - (instancetype)initWithCoder:(NSCoder*)decoder NS_UNAVAILABLE;
(...skipping 28 matching lines...) Expand all
80 82
81 // Removes |toolbar| as a subview. 83 // Removes |toolbar| as a subview.
82 - (void)removeToolbar:(UIView*)toolbar; 84 - (void)removeToolbar:(UIView*)toolbar;
83 85
84 // Removes all toolbars added via |-addToolbar:|. 86 // Removes all toolbars added via |-addToolbar:|.
85 - (void)removeAllToolbars; 87 - (void)removeAllToolbars;
86 88
87 @end 89 @end
88 90
89 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_CONTAINER_VIEW_H_ 91 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_CONTAINER_VIEW_H_
OLDNEW
« no previous file with comments | « ios/web/web_state/ui/crw_web_controller.mm ('k') | 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