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

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

Issue 2916473002: [ObjC ARC] Converts ios/web:web to ARC. (Closed)
Patch Set: Tweaks to unit test memory management Created 3 years, 6 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 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_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_ 5 #ifndef IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_
6 #define IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_ 6 #define IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_
7 7
8 #import <UIKit/UIKit.h> 8 #import <UIKit/UIKit.h>
9 9
10 #import "ios/web/net/crw_request_tracker_delegate.h" 10 #import "ios/web/net/crw_request_tracker_delegate.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 // This is an abstract class which must not be instantiated directly. 53 // This is an abstract class which must not be instantiated directly.
54 // TODO(stuartmorgan): Move all of the navigation APIs out of this class. 54 // TODO(stuartmorgan): Move all of the navigation APIs out of this class.
55 @interface CRWWebController : NSObject<CRWJSInjectionEvaluator, 55 @interface CRWWebController : NSObject<CRWJSInjectionEvaluator,
56 CRWTouchTrackingDelegate, 56 CRWTouchTrackingDelegate,
57 UIGestureRecognizerDelegate> 57 UIGestureRecognizerDelegate>
58 58
59 // Whether or not a UIWebView is allowed to exist in this CRWWebController. 59 // Whether or not a UIWebView is allowed to exist in this CRWWebController.
60 // Defaults to NO; this should be enabled before attempting to access the view. 60 // Defaults to NO; this should be enabled before attempting to access the view.
61 @property(nonatomic, assign) BOOL webUsageEnabled; 61 @property(nonatomic, assign) BOOL webUsageEnabled;
62 62
63 @property(nonatomic, assign) id<CRWWebDelegate> delegate; 63 @property(nonatomic, weak) id<CRWWebDelegate> delegate;
64 @property(nonatomic, assign) id<CRWNativeContentProvider> nativeProvider; 64 @property(nonatomic, weak) id<CRWNativeContentProvider> nativeProvider;
65 @property(nonatomic, assign) 65 @property(nonatomic, weak) id<CRWSwipeRecognizerProvider>
66 id<CRWSwipeRecognizerProvider> swipeRecognizerProvider; 66 swipeRecognizerProvider;
67 @property(nonatomic, readonly) web::WebState* webState; 67 @property(nonatomic, readonly) web::WebState* webState;
68 @property(nonatomic, readonly) web::WebStateImpl* webStateImpl; 68 @property(nonatomic, readonly) web::WebStateImpl* webStateImpl;
69 69
70 // The container view used to display content. If the view has been purged due 70 // The container view used to display content. If the view has been purged due
71 // to low memory, this will recreate it. 71 // to low memory, this will recreate it.
72 @property(nonatomic, readonly) UIView* view; 72 @property(weak, nonatomic, readonly) UIView* view;
73 73
74 // The web view proxy associated with this controller. 74 // The web view proxy associated with this controller.
75 @property(nonatomic, readonly) id<CRWWebViewProxy> webViewProxy; 75 @property(weak, nonatomic, readonly) id<CRWWebViewProxy> webViewProxy;
76 76
77 // The view that generates print data when printing. It is nil if printing 77 // The view that generates print data when printing. It is nil if printing
78 // is not supported. 78 // is not supported.
79 @property(nonatomic, readonly) UIView* viewForPrinting; 79 @property(weak, nonatomic, readonly) UIView* viewForPrinting;
80 80
81 // Content view was reset due to low memory. Use placeholder overlay view on 81 // Content view was reset due to low memory. Use placeholder overlay view on
82 // next creation. 82 // next creation.
83 @property(nonatomic, readwrite, assign) BOOL usePlaceholderOverlay; 83 @property(nonatomic, readwrite, assign) BOOL usePlaceholderOverlay;
84 84
85 // Returns the current page loading phase. 85 // Returns the current page loading phase.
86 @property(nonatomic, readonly) web::LoadPhase loadPhase; 86 @property(nonatomic, readonly) web::LoadPhase loadPhase;
87 87
88 // The fraction of the page load that has completed as a number between 0.0 88 // The fraction of the page load that has completed as a number between 0.0
89 // (nothing loaded) and 1.0 (fully loaded). 89 // (nothing loaded) and 1.0 (fully loaded).
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 271
272 // Returns the number of observers registered for this CRWWebController. 272 // Returns the number of observers registered for this CRWWebController.
273 - (NSUInteger)observerCount; 273 - (NSUInteger)observerCount;
274 274
275 // Loads the HTML into the page at the given URL. 275 // Loads the HTML into the page at the given URL.
276 - (void)loadHTML:(NSString*)HTML forURL:(const GURL&)URL; 276 - (void)loadHTML:(NSString*)HTML forURL:(const GURL&)URL;
277 277
278 @end 278 @end
279 279
280 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_ 280 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698