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

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

Issue 2396553002: [ARC] Converts part of ios/web/ui to ARC.
Patch Set: co Created 4 years, 2 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
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 15 matching lines...) Expand all
26 (CRWWebControllerContainerView*)containerView; 26 (CRWWebControllerContainerView*)containerView;
27 27
28 @end 28 @end
29 29
30 // Container view class that manages the display of content within 30 // Container view class that manages the display of content within
31 // CRWWebController. 31 // CRWWebController.
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, strong, 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, strong, 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, strong, readonly) CRWContentView* transientContentView;
42 42
43 // Designated initializer. |proxy|'s content view will be updated as different 43 // Designated initializer. |proxy|'s content view will be updated as different
44 // content is added to the container. 44 // content is added to the container.
45 - (instancetype)initWithDelegate: 45 - (instancetype)initWithDelegate:
46 (id<CRWWebControllerContainerViewDelegate>)delegate 46 (id<CRWWebControllerContainerViewDelegate>)delegate
47 NS_DESIGNATED_INITIALIZER; 47 NS_DESIGNATED_INITIALIZER;
48 48
49 - (void)setDelegate:(id<CRWWebControllerContainerViewDelegate>)delegate;
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;
52 - (instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE; 54 - (instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE;
53 55
54 // Returns YES if the container view is currently displaying content. 56 // Returns YES if the container view is currently displaying content.
55 - (BOOL)isViewAlive; 57 - (BOOL)isViewAlive;
56 58
57 // Removes all subviews and resets state to default. 59 // Removes all subviews and resets state to default.
58 - (void)resetContent; 60 - (void)resetContent;
(...skipping 21 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