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

Side by Side Diff: ios/chrome/browser/ui/ntp/new_tab_page_view.h

Issue 2610923005: Replace ObjCPropertyReleaser with ReleaseProperties() project-wide. (Closed)
Patch Set: weak -> assign Created 3 years, 11 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_CHROME_BROWSER_UI_NTP_NEW_TAB_PAGE_VIEW_H_ 5 #ifndef IOS_CHROME_BROWSER_UI_NTP_NEW_TAB_PAGE_VIEW_H_
6 #define IOS_CHROME_BROWSER_UI_NTP_NEW_TAB_PAGE_VIEW_H_ 6 #define IOS_CHROME_BROWSER_UI_NTP_NEW_TAB_PAGE_VIEW_H_
7 7
8 #import <UIKit/UIKit.h> 8 #import <UIKit/UIKit.h>
9 9
10 @class NewTabPageBar; 10 @class NewTabPageBar;
11 11
12 // Container view for the new tab page so that the subviews don't get directly 12 // Container view for the new tab page so that the subviews don't get directly
13 // accessed from the view controller. 13 // accessed from the view controller.
14 @interface NewTabPageView : UIView 14 @interface NewTabPageView : UIView
15 @property(nonatomic, weak, readonly) UIScrollView* scrollView; 15 @property(nonatomic, assign, readonly) UIScrollView* scrollView;
16 @property(nonatomic, weak, readonly) NewTabPageBar* tabBar; 16 @property(nonatomic, assign, readonly) NewTabPageBar* tabBar;
Sidney San Martín 2017/01/05 03:24:05 Is this change correct? The compiler won't synthes
noyau (Ping after 24h) 2017/01/05 10:02:52 I'm confused by your statement. There is an explic
noyau (Ping after 24h) 2017/01/06 14:21:06 Ok. for MRR assign is correct and weak is incorrec
17 17
18 - (instancetype)initWithFrame:(CGRect)frame 18 - (instancetype)initWithFrame:(CGRect)frame
19 andScrollView:(UIScrollView*)scrollView 19 andScrollView:(UIScrollView*)scrollView
20 andTabBar:(NewTabPageBar*)tabBar NS_DESIGNATED_INITIALIZER; 20 andTabBar:(NewTabPageBar*)tabBar NS_DESIGNATED_INITIALIZER;
21 21
22 - (instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE; 22 - (instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE;
23 23
24 // initWithCoder would only be needed for building this view through .xib files. 24 // initWithCoder would only be needed for building this view through .xib files.
25 - (instancetype)initWithCoder:(NSCoder*)aDecoder NS_UNAVAILABLE; 25 - (instancetype)initWithCoder:(NSCoder*)aDecoder NS_UNAVAILABLE;
26 26
27 // Updates scrollView's content size to accommodate its panels. 27 // Updates scrollView's content size to accommodate its panels.
28 - (void)updateScrollViewContentSize; 28 - (void)updateScrollViewContentSize;
29 29
30 // Returns the frame of the item's view within the scrollView's content. 30 // Returns the frame of the item's view within the scrollView's content.
31 // |index| must be a valid index for tabBar's |items|. 31 // |index| must be a valid index for tabBar's |items|.
32 - (CGRect)panelFrameForItemAtIndex:(NSUInteger)index; 32 - (CGRect)panelFrameForItemAtIndex:(NSUInteger)index;
33 33
34 @end 34 @end
35 35
36 #endif // IOS_CHROME_BROWSER_UI_NTP_NEW_TAB_PAGE_VIEW_H_ 36 #endif // IOS_CHROME_BROWSER_UI_NTP_NEW_TAB_PAGE_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698