Chromium Code Reviews| Index: ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_most_visited_tile.h |
| diff --git a/ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_most_visited_tile.h b/ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_most_visited_tile.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..443617456ec63e0f8614dc68545c23823733b67d |
| --- /dev/null |
| +++ b/ios/chrome/browser/ui/content_suggestions/cells/content_suggestions_most_visited_tile.h |
| @@ -0,0 +1,33 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CELLS_CONTENT_SUGGESTIONS_MOST_VISITED_TILE_H_ |
| +#define IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CELLS_CONTENT_SUGGESTIONS_MOST_VISITED_TILE_H_ |
| + |
| +#import <UIKit/UIKit.h> |
| + |
| +@class FaviconAttributes; |
| +@class FaviconViewNew; |
| + |
| +// View used to display a Most Visited tile. |
| +@interface ContentSuggestionsMostVisitedTile : UIView |
| + |
| +// Width of a Most Visited tile. |
| ++ (NSInteger)width; |
|
stkhapugin
2017/04/07 11:15:18
CGFloat instead of NSInteger
gambard
2017/04/07 14:47:21
Done.
|
| + |
| +// Creates a tile with a |title| and its favicon view configured with |
| +// |attributes|. |
| ++ (nullable ContentSuggestionsMostVisitedTile*) |
| +tileWithTitle:(nullable NSString*)title |
| + attributes:(nullable FaviconAttributes*)attributes; |
| + |
| +// FaviconView displaying the favicon. |
| +@property(nonatomic, strong, readonly, nonnull) FaviconViewNew* faviconView; |
| + |
| +// Sets the text and the accessibility label of this View. |
|
lpromero
2017/04/07 10:58:22
*view
gambard
2017/04/07 14:47:21
Done.
|
| +- (void)setText:(nullable NSString*)text; |
|
lpromero
2017/04/07 10:58:22
Prefer setTitle.
gambard
2017/04/07 14:47:22
Done.
|
| + |
| +@end |
| + |
| +#endif // IOS_CHROME_BROWSER_UI_CONTENT_SUGGESTIONS_CELLS_CONTENT_SUGGESTIONS_MOST_VISITED_TILE_H_ |