Chromium Code Reviews| 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 10 matching lines...) Expand all Loading... | |
| 21 CGRect doodleFrame(CGFloat width, BOOL logoIsShowing); | 21 CGRect doodleFrame(CGFloat width, BOOL logoIsShowing); |
| 22 // Returns the proper frame for the search field inside a view with a |width|. | 22 // Returns the proper frame for the search field inside a view with a |width|. |
| 23 // |logoIsShowing| refers to the Google logo or the doodle. | 23 // |logoIsShowing| refers to the Google logo or the doodle. |
| 24 CGRect searchFieldFrame(CGFloat width, BOOL logoIsShowing); | 24 CGRect searchFieldFrame(CGFloat width, BOOL logoIsShowing); |
| 25 // Returns the expected height of the NewTabPageHeaderView inside a view with a | 25 // Returns the expected height of the NewTabPageHeaderView inside a view with a |
| 26 // |width|. |logoIsShowing| refers to the Google logo or the doodle. | 26 // |width|. |logoIsShowing| refers to the Google logo or the doodle. |
| 27 // |promoCanShow| represents whether a what's new promo can be displayed. | 27 // |promoCanShow| represents whether a what's new promo can be displayed. |
| 28 CGFloat heightForLogoHeader(CGFloat width, | 28 CGFloat heightForLogoHeader(CGFloat width, |
| 29 BOOL logoIsShowing, | 29 BOOL logoIsShowing, |
| 30 BOOL promoCanShow); | 30 BOOL promoCanShow); |
| 31 // Returns a UILabel containing the hint for the omnibox, added to the | |
|
marq (ping after 24h)
2017/05/03 15:22:05
Normally I would object to a function that does th
gambard
2017/05/03 15:27:35
Which part are you disagreeing on? My first intent
marq (ping after 24h)
2017/05/10 09:11:26
Yes; in general I don't like functions that return
gambard
2017/05/10 12:14:44
Acknowledged.
| |
| 32 // |searchTapTarget| and constrained. | |
| 33 UILabel* configuredSearchHintLabel(UIButton* searchTapTarget, | |
| 34 CGFloat searchFieldWidth); | |
| 35 // Returns a button for the voice search, added to the |searcgTapTarget| and | |
|
marq (ping after 24h)
2017/05/03 15:22:05
searcg -> search
gambard
2017/05/10 12:14:44
Done.
| |
| 36 // constrained. | |
| 37 UIButton* configuredVoiceTapTarget(UIButton* searchTapTarget); | |
| 31 | 38 |
| 32 } // namespace content_suggestions | 39 } // namespace content_suggestions |
| 33 | 40 |
| 34 #endif // IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_COLLECT ION_UTILS_H_ | 41 #endif // IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CONTENT_SUGGESTIONS_COLLECT ION_UTILS_H_ |
| OLD | NEW |