blob: 85b8155692aaa78ac6d7e67760a633f0d7b12d2c [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.
#import <UIKit/UIKit.h>
#import "ios/chrome/common/ui/elements/highlight_button.h"
@class FaviconView;
// 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) FaviconView* faviconView;
// Title of the Most Visited.
@property(nonatomic, strong, readonly, nonnull) UILabel* titleLabel;
// URL of the Most Visited.
@property(nonatomic, strong, nullable) NSURL* URL;