blob: 1ea15fa404d532cc1c33ea3c97d2cdfda6354f10 [file] [log] [blame]
// 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_CONTENT_WIDGET_EXTENSION_MOST_VISITED_TILE_VIEW_H_
#define IOS_CHROME_CONTENT_WIDGET_EXTENSION_MOST_VISITED_TILE_VIEW_H_
#import <UIKit/UIKit.h>
#import "ios/chrome/common/highlight_button.h"
@class FaviconViewNew;
// View to display a Most Visited tile based on the suggestion.
// It displays the favicon for this Most Visited suggestion and its title.
@interface MostVisitedTileView : HighlightButton
// Returns the fixed width of a tile.
+ (CGFloat)tileWidth;
// Designated initializer.
- (nonnull instancetype)init NS_DESIGNATED_INITIALIZER;
- (nonnull instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE;
- (nonnull instancetype)initWithCoder:(nonnull NSCoder*)aDecoder NS_UNAVAILABLE;
// FaviconView displaying the favicon.
@property(nonatomic, strong, readonly, nonnull) FaviconViewNew* faviconView;
// Title of the Most Visited.
@property(nonatomic, strong, readonly, nonnull) UILabel* titleLabel;
// URL of the Most Visited.
@property(nonatomic, strong, nullable) NSURL* URL;
@end
#endif // IOS_CHROME_CONTENT_WIDGET_EXTENSION_MOST_VISITED_TILE_VIEW_H_