| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_COLLECTION
_UTILS_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_COLLECTION
_UTILS_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_COLLECTION
_UTILS_H_ | 6 #define IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_COLLECTION
_UTILS_H_ |
| 7 | 7 |
| 8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
| 9 | 9 |
| 10 namespace content_suggestions { | 10 namespace content_suggestions { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 CGRect doodleFrame(CGFloat width, BOOL logoIsShowing); | 27 CGRect doodleFrame(CGFloat width, BOOL logoIsShowing); |
| 28 // Returns the proper frame for the search field inside a view with a |width|. | 28 // Returns the proper frame for the search field inside a view with a |width|. |
| 29 // |logoIsShowing| refers to the Google logo or the doodle. | 29 // |logoIsShowing| refers to the Google logo or the doodle. |
| 30 CGRect searchFieldFrame(CGFloat width, BOOL logoIsShowing); | 30 CGRect searchFieldFrame(CGFloat width, BOOL logoIsShowing); |
| 31 // Returns the expected height of the NewTabPageHeaderView inside a view with a | 31 // Returns the expected height of the NewTabPageHeaderView inside a view with a |
| 32 // |width|. |logoIsShowing| refers to the Google logo or the doodle. | 32 // |width|. |logoIsShowing| refers to the Google logo or the doodle. |
| 33 // |promoCanShow| represents whether a what's new promo can be displayed. | 33 // |promoCanShow| represents whether a what's new promo can be displayed. |
| 34 CGFloat heightForLogoHeader(CGFloat width, | 34 CGFloat heightForLogoHeader(CGFloat width, |
| 35 BOOL logoIsShowing, | 35 BOOL logoIsShowing, |
| 36 BOOL promoCanShow); | 36 BOOL promoCanShow); |
| 37 // Configure the |searchHintLabel| for the fake omnibox, adding it to the |
| 38 // |searchTapTarget| and constrain it. |
| 39 void configureSearchHintLabel(UILabel* searchHintLabel, |
| 40 UIButton* searchTapTarget, |
| 41 CGFloat searchFieldWidth); |
| 42 // Configure the |voiceSearchButton|, adding it to the |searchTapTarget| and |
| 43 // constraining it. |
| 44 void configureVoiceSearchButton(UIButton* voiceSearchButton, |
| 45 UIButton* searchTapTarget); |
| 37 | 46 |
| 38 } // namespace content_suggestions | 47 } // namespace content_suggestions |
| 39 | 48 |
| 40 #endif // IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_COLLECT
ION_UTILS_H_ | 49 #endif // IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_COLLECT
ION_UTILS_H_ |
| OLD | NEW |