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

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

Issue 2590473002: Upstream Chrome on iOS source code [5/11]. (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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef IOS_CHROME_BROWSER_UI_NTP_NEW_TAB_PAGE_BAR_H_
6 #define IOS_CHROME_BROWSER_UI_NTP_NEW_TAB_PAGE_BAR_H_
7
8 #import <UIKit/UIKit.h>
9
10 #import "ios/chrome/browser/ui/ntp/google_landing_controller.h"
11
12 @class NewTabPageBarItem;
13
14 @protocol NewTabPageBarDelegate
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.
17 - (void)newTabBarItemDidChange:(NewTabPageBarItem*)selectedItem
18 changePanel:(BOOL)changePanel;
19 @end
20
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
23 // create a "speech bubble" effect.
24 @interface NewTabPageBar : UIView<UIGestureRecognizerDelegate>
25
26 @property(nonatomic, retain) NSArray* items;
27 @property(nonatomic, assign) NSUInteger selectedIndex;
28 @property(nonatomic, assign) CGFloat overlayPercentage;
29 @property(nonatomic, readonly, retain) NSArray* buttons;
30 @property(nonatomic, assign) id<NewTabPageBarDelegate> delegate;
31
32 // Changes the colors of the buttons and overlay depending on the content offset
33 // of the scroll view. Tablet Incognito only.
34 - (void)updateColorsForScrollView:(UIScrollView*)scrollView;
35
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.
38 - (void)setShadowAlpha:(CGFloat)alpha;
39
40 @end
41
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