blob: c26c325bfd2930b6fe99bfa5ed331d20659b9b07 [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/highlight_button.h"
// View to show and allow opening of the copied URL. Shows a button with the
// |copiedURLString| if it has been set. When tapped, |actionSelector| in
// |target| is called. If no |copiedURLString| was set, the button is replaced
// by a hairline separation and placeholder text.
@interface CopiedURLView : HighlightButton
// The copied URL string to be displayed. nil is a valid value to indicate
// there is no copied URL to display.
@property(nonatomic, copy) NSString* copiedURLString;
// Designated initializer, creates the copiedURLView with a |target| to open the
// URL.
- (instancetype)initWithActionTarget:(id)target
- (instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE;
- (instancetype)initWithCoder:(NSCoder*)aDecoder NS_UNAVAILABLE;