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

Unified Diff: ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_most_visited_item.h

Issue 2857123003: Move frame-related methods out of GoogleLandingViewController (Closed)
Patch Set: Fix the number of columns Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_most_visited_item.h
diff --git a/ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_most_visited_item.h b/ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_most_visited_item.h
index 1808434631144bb7521621dec0aed336d88c1acf..d87fba70af356c0068777848f51a3562b06511d1 100644
--- a/ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_most_visited_item.h
+++ b/ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_most_visited_item.h
@@ -35,6 +35,13 @@
// Returns the maximum number of tiles per line, limited to 4.
- (NSUInteger)numberOfTilesPerLine;
+// Returns the maximum number of tiles fitting in |availableWidth|, limited to
+// 4.
++ (NSUInteger)numberOfTilesForWidth:(CGFloat)availableWidth;
+
+// Returns the spacing between tiles, based on the device.
++ (CGFloat)spacing;
+
@end
#endif // IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CELLS_CONTENT_SUGGESTIONS_MOST_VISITED_ITEM_H_

Powered by Google App Engine
This is Rietveld 408576698