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

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

Issue 2955363002: [ObjC ARC] Converts ios/chrome/browser/ui/ntp:ntp_internal to ARC. (Closed)
Patch Set: rebase Created 3 years, 5 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_BAR_H_ 5 #ifndef IOS_CHROME_BROWSER_UI_NTP_NEW_TAB_PAGE_BAR_H_
6 #define IOS_CHROME_BROWSER_UI_NTP_NEW_TAB_PAGE_BAR_H_ 6 #define IOS_CHROME_BROWSER_UI_NTP_NEW_TAB_PAGE_BAR_H_
7 7
8 #import <UIKit/UIKit.h> 8 #import <UIKit/UIKit.h>
9 9
10 #import "ios/chrome/browser/ui/ntp/google_landing_view_controller.h" 10 #import "ios/chrome/browser/ui/ntp/google_landing_view_controller.h"
11 11
12 @class NewTabPageBarItem; 12 @class NewTabPageBarItem;
13 13
14 @protocol NewTabPageBarDelegate 14 @protocol NewTabPageBarDelegate
15 // Called when new tab page bar item is selected and the selection is changed. 15 // Called when new tab page bar item is selected and the selection is changed.
16 // If |changePanel| is true, bring the panel into view in the scroll view. 16 // If |changePanel| is true, bring the panel into view in the scroll view.
17 - (void)newTabBarItemDidChange:(NewTabPageBarItem*)selectedItem 17 - (void)newTabBarItemDidChange:(NewTabPageBarItem*)selectedItem
18 changePanel:(BOOL)changePanel; 18 changePanel:(BOOL)changePanel;
19 @end 19 @end
20 20
21 // The bar in the new tab page that switches between the provided choices. 21 // The bar in the new tab page that switches between the provided choices.
22 // It also draws a notch pointing to the center of the selected choice to 22 // It also draws a notch pointing to the center of the selected choice to
23 // create a "speech bubble" effect. 23 // create a "speech bubble" effect.
24 @interface NewTabPageBar : UIView<UIGestureRecognizerDelegate> 24 @interface NewTabPageBar : UIView<UIGestureRecognizerDelegate>
25 25
26 @property(nonatomic, retain) NSArray* items; 26 @property(nonatomic, strong) NSArray* items;
27 @property(nonatomic, assign) NSUInteger selectedIndex; 27 @property(nonatomic, assign) NSUInteger selectedIndex;
28 @property(nonatomic, assign) CGFloat overlayPercentage; 28 @property(nonatomic, assign) CGFloat overlayPercentage;
29 @property(nonatomic, readonly, retain) NSArray* buttons; 29 @property(nonatomic, readonly, strong) NSArray* buttons;
30 @property(nonatomic, assign) id<NewTabPageBarDelegate> delegate; 30 @property(nonatomic, weak) id<NewTabPageBarDelegate> delegate;
31 31
32 // Changes the colors of the buttons and overlay depending on the content offset 32 // Changes the colors of the buttons and overlay depending on the content offset
33 // of the scroll view. Tablet Incognito only. 33 // of the scroll view. Tablet Incognito only.
34 - (void)updateColorsForScrollView:(UIScrollView*)scrollView; 34 - (void)updateColorsForScrollView:(UIScrollView*)scrollView;
35 35
36 // Updates the alpha of the shadow image. When the alpha changes from 0 to 1 or 36 // Updates the alpha of the shadow image. When the alpha changes from 0 to 1 or
37 // 1 to 0, the alpha change is animated. 37 // 1 to 0, the alpha change is animated.
38 - (void)setShadowAlpha:(CGFloat)alpha; 38 - (void)setShadowAlpha:(CGFloat)alpha;
39 39
40 @end 40 @end
41 41
42 #endif // IOS_CHROME_BROWSER_UI_NTP_NEW_TAB_PAGE_BAR_H_ 42 #endif // IOS_CHROME_BROWSER_UI_NTP_NEW_TAB_PAGE_BAR_H_
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/ntp/most_visited_layout.mm ('k') | ios/chrome/browser/ui/ntp/new_tab_page_bar.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698