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

Side by Side Diff: ios/web/web_state/ui/crw_web_controller.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 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 // TODO(stuartmorgan): Move all of the navigation APIs out of this class. 65 // TODO(stuartmorgan): Move all of the navigation APIs out of this class.
66 @interface CRWWebController : NSObject<CRWJSInjectionEvaluator, 66 @interface CRWWebController : NSObject<CRWJSInjectionEvaluator,
67 CRWRequestTrackerDelegate, 67 CRWRequestTrackerDelegate,
68 CRWTouchTrackingDelegate, 68 CRWTouchTrackingDelegate,
69 UIGestureRecognizerDelegate> 69 UIGestureRecognizerDelegate>
70 70
71 // Whether or not a UIWebView is allowed to exist in this CRWWebController. 71 // Whether or not a UIWebView is allowed to exist in this CRWWebController.
72 // Defaults to NO; this should be enabled before attempting to access the view. 72 // Defaults to NO; this should be enabled before attempting to access the view.
73 @property(nonatomic, assign) BOOL webUsageEnabled; 73 @property(nonatomic, assign) BOOL webUsageEnabled;
74 74
75 @property(nonatomic, assign) id<CRWWebDelegate> delegate; 75 @property(nonatomic, weak) id<CRWWebDelegate> delegate;
76 @property(nonatomic, weak) id<CRWWebUserInterfaceDelegate> UIDelegate; 76 @property(nonatomic, weak) id<CRWWebUserInterfaceDelegate> UIDelegate;
77 @property(nonatomic, assign) id<CRWNativeContentProvider> nativeProvider; 77 @property(nonatomic, weak) id<CRWNativeContentProvider> nativeProvider;
78 @property(nonatomic, assign) 78 @property(nonatomic, weak) id<CRWSwipeRecognizerProvider>
79 id<CRWSwipeRecognizerProvider> swipeRecognizerProvider; 79 swipeRecognizerProvider;
80 @property(nonatomic, readonly) web::WebState* webState; 80 @property(nonatomic, readonly) web::WebState* webState;
81 @property(nonatomic, readonly) web::WebStateImpl* webStateImpl; 81 @property(nonatomic, readonly) web::WebStateImpl* webStateImpl;
82 82
83 // The container view used to display content. If the view has been purged due 83 // The container view used to display content. If the view has been purged due
84 // to low memory, this will recreate it. 84 // to low memory, this will recreate it.
85 @property(nonatomic, readonly) UIView* view; 85 @property(weak, nonatomic, readonly) UIView* view;
86 86
87 // The web view proxy associated with this controller. 87 // The web view proxy associated with this controller.
88 @property(nonatomic, readonly) id<CRWWebViewProxy> webViewProxy; 88 @property(weak, nonatomic, readonly) id<CRWWebViewProxy> webViewProxy;
89 89
90 // The view that generates print data when printing. It is nil if printing 90 // The view that generates print data when printing. It is nil if printing
91 // is not supported. 91 // is not supported.
92 @property(nonatomic, readonly) UIView* viewForPrinting; 92 @property(weak, nonatomic, readonly) UIView* viewForPrinting;
93 93
94 // Content view was reset due to low memory. Use placeholder overlay view on 94 // Content view was reset due to low memory. Use placeholder overlay view on
95 // next creation. 95 // next creation.
96 @property(nonatomic, readwrite, assign) BOOL usePlaceholderOverlay; 96 @property(nonatomic, readwrite, assign) BOOL usePlaceholderOverlay;
97 97
98 // Returns the current page loading phase. 98 // Returns the current page loading phase.
99 @property(nonatomic, readonly) web::LoadPhase loadPhase; 99 @property(nonatomic, readonly) web::LoadPhase loadPhase;
100 100
101 // The fraction of the page load that has completed as a number between 0.0 101 // The fraction of the page load that has completed as a number between 0.0
102 // (nothing loaded) and 1.0 (fully loaded). 102 // (nothing loaded) and 1.0 (fully loaded).
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 323
324 // Acts on a single message from the JS object, parsed from JSON into a 324 // Acts on a single message from the JS object, parsed from JSON into a
325 // DictionaryValue. Returns NO if the format for the message was invalid. 325 // DictionaryValue. Returns NO if the format for the message was invalid.
326 - (BOOL)respondToMessage:(base::DictionaryValue*)crwMessage 326 - (BOOL)respondToMessage:(base::DictionaryValue*)crwMessage
327 userIsInteracting:(BOOL)userIsInteracting 327 userIsInteracting:(BOOL)userIsInteracting
328 originURL:(const GURL&)originURL; 328 originURL:(const GURL&)originURL;
329 329
330 @end 330 @end
331 331
332 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_ 332 #endif // IOS_WEB_WEB_STATE_UI_CRW_WEB_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ios/web/web_state/ui/crw_touch_tracking_recognizer.mm ('k') | ios/web/web_state/ui/crw_web_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698