OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_HEADER_VIEW_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_NTP_NEW_TAB_PAGE_HEADER_VIEW_H_ |
6 #define IOS_CHROME_BROWSER_UI_NTP_NEW_TAB_PAGE_HEADER_VIEW_H_ | 6 #define IOS_CHROME_BROWSER_UI_NTP_NEW_TAB_PAGE_HEADER_VIEW_H_ |
7 | 7 |
8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
9 | 9 |
10 #import "ios/chrome/browser/ui/toolbar/toolbar_owner.h" | 10 #import "ios/chrome/browser/ui/toolbar/toolbar_owner.h" |
11 | 11 |
12 @protocol GoogleLandingDataSource; | 12 @protocol GoogleLandingDataSource; |
13 | 13 |
14 // Header view for the Material Design NTP. The header view contains all views | 14 // Header view for the Material Design NTP. The header view contains all views |
15 // that are displayed above the list of most visited sites, which includes the | 15 // that are displayed above the list of most visited sites, which includes the |
16 // toolbar buttons, Google doodle, and fake omnibox. | 16 // toolbar buttons, Google doodle, and fake omnibox. |
17 @interface NewTabPageHeaderView : UICollectionReusableView<ToolbarOwner> | 17 @interface NewTabPageHeaderView : UICollectionReusableView<ToolbarOwner> |
18 | 18 |
19 // Return the toolbar view; | 19 // Return the toolbar view; |
20 @property(nonatomic, readonly) UIView* toolBarView; | 20 @property(weak, nonatomic, readonly) UIView* toolBarView; |
sdefresne
2017/05/17 16:27:11
Revert, the property is not synthesized (it is a c
stkhapugin
2017/05/30 18:22:42
Done.
| |
21 | 21 |
22 // Creates a NewTabPageToolbarController using the given |toolbarDelegate|, | 22 // Creates a NewTabPageToolbarController using the given |toolbarDelegate|, |
23 // |focuser| and |readingListModel|, and adds the toolbar view to self. | 23 // |focuser| and |readingListModel|, and adds the toolbar view to self. |
24 - (void)addToolbarWithDataSource:(id<GoogleLandingDataSource>)dataSource | 24 - (void)addToolbarWithDataSource:(id<GoogleLandingDataSource>)dataSource |
25 dispatcher:(id)dispatcher; | 25 dispatcher:(id)dispatcher; |
26 | 26 |
27 // Changes the frame of |searchField| based on its |initialFrame| and the scroll | 27 // Changes the frame of |searchField| based on its |initialFrame| and the scroll |
28 // view's y |offset|. Also adjust the alpha values for |_searchBoxBorder| and | 28 // view's y |offset|. Also adjust the alpha values for |_searchBoxBorder| and |
29 // |_shadow| and the constant values for the |constraints|. | 29 // |_shadow| and the constant values for the |constraints|. |
30 - (void)updateSearchField:(UIView*)searchField | 30 - (void)updateSearchField:(UIView*)searchField |
(...skipping 15 matching lines...) Expand all Loading... | |
46 | 46 |
47 // |YES| if the toolbar can show the forward arrow. | 47 // |YES| if the toolbar can show the forward arrow. |
48 - (void)setCanGoForward:(BOOL)canGoForward; | 48 - (void)setCanGoForward:(BOOL)canGoForward; |
49 | 49 |
50 // |YES| if the toolbar can show the back arrow. | 50 // |YES| if the toolbar can show the back arrow. |
51 - (void)setCanGoBack:(BOOL)canGoBack; | 51 - (void)setCanGoBack:(BOOL)canGoBack; |
52 | 52 |
53 @end | 53 @end |
54 | 54 |
55 #endif // IOS_CHROME_BROWSER_UI_NTP_NEW_TAB_PAGE_HEADER_VIEW_H_ | 55 #endif // IOS_CHROME_BROWSER_UI_NTP_NEW_TAB_PAGE_HEADER_VIEW_H_ |
OLD | NEW |