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

Side by Side Diff: ios/chrome/browser/ui/native_content_controller.h

Issue 2569713002: [ObjC ARC] Converts ios/chrome/browser/ui:ui to ARC. (Closed)
Patch Set: Created 4 years 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 | « ios/chrome/browser/ui/image_util.mm ('k') | ios/chrome/browser/ui/native_content_controller.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_CHROME_BROWSER_UI_NATIVE_CONTENT_CONTROLLER_H_ 5 #ifndef IOS_CHROME_BROWSER_UI_NATIVE_CONTENT_CONTROLLER_H_
6 #define IOS_CHROME_BROWSER_UI_NATIVE_CONTENT_CONTROLLER_H_ 6 #define IOS_CHROME_BROWSER_UI_NATIVE_CONTENT_CONTROLLER_H_
7 7
8 #import <Foundation/Foundation.h> 8 #import <Foundation/Foundation.h>
9 9
10 #import "ios/web/public/web_state/ui/crw_native_content.h" 10 #import "ios/web/public/web_state/ui/crw_native_content.h"
11 11
12 class GURL; 12 class GURL;
13 @class UIView; 13 @class UIView;
14 14
15 // Abstract base class for controllers that implement the behavior for native 15 // Abstract base class for controllers that implement the behavior for native
16 // views that are presented inside the web content area. Automatically removes 16 // views that are presented inside the web content area. Automatically removes
17 // |view| from the view hierarchy when it is destroyed. Subclasses are 17 // |view| from the view hierarchy when it is destroyed. Subclasses are
18 // responsible for setting the view (usually through loading a nib) and the 18 // responsible for setting the view (usually through loading a nib) and the
19 // page title. 19 // page title.
20 @interface NativeContentController : NSObject<CRWNativeContent> 20 @interface NativeContentController : NSObject<CRWNativeContent>
21 21
22 // Top-level view. 22 // Top-level view.
23 @property(nonatomic, retain) IBOutlet UIView* view; 23 @property(nonatomic, strong) IBOutlet UIView* view;
24 @property(nonatomic, copy) NSString* title; 24 @property(nonatomic, copy) NSString* title;
25 @property(nonatomic, readonly, assign) const GURL& url; 25 @property(nonatomic, readonly, assign) const GURL& url;
26 26
27 // Initializer that attempts to load the nib specified in |nibName|, which may 27 // Initializer that attempts to load the nib specified in |nibName|, which may
28 // be nil. The |url| is the url to be loaded. 28 // be nil. The |url| is the url to be loaded.
29 - (instancetype)initWithNibName:(NSString*)nibName 29 - (instancetype)initWithNibName:(NSString*)nibName
30 url:(const GURL&)url NS_DESIGNATED_INITIALIZER; 30 url:(const GURL&)url NS_DESIGNATED_INITIALIZER;
31 31
32 - (instancetype)init NS_UNAVAILABLE; 32 - (instancetype)init NS_UNAVAILABLE;
33 33
34 // Initializer with the |url| to be loaded. 34 // Initializer with the |url| to be loaded.
35 - (instancetype)initWithURL:(const GURL&)url; 35 - (instancetype)initWithURL:(const GURL&)url;
36 36
37 @end 37 @end
38 38
39 #endif // IOS_CHROME_BROWSER_UI_NATIVE_CONTENT_CONTROLLER_H_ 39 #endif // IOS_CHROME_BROWSER_UI_NATIVE_CONTENT_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/image_util.mm ('k') | ios/chrome/browser/ui/native_content_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698