Index: ios/chrome/widget_extension/widget_view.mm |
diff --git a/ios/chrome/widget_extension/widget_view.mm b/ios/chrome/widget_extension/widget_view.mm |
index d746fd0bf9eb34cd67810f0f14bd055f865d6183..d078fe082c1be8c05196dad6c36c94f96af8e25c 100644 |
--- a/ios/chrome/widget_extension/widget_view.mm |
+++ b/ios/chrome/widget_extension/widget_view.mm |
@@ -25,6 +25,8 @@ const CGFloat kFakeboxVerticalPadding = 40; |
__weak id<WidgetViewActionTarget> _target; |
} |
+@property(nonatomic, copy) NSString* copiedURL; |
+@property(nonatomic, strong) UILabel* copiedURLLabel; |
@property(nonatomic, weak) UIView* cursor; |
// Creates and adds a fake omnibox with blinking cursor to the view and sets the |
@@ -35,6 +37,9 @@ const CGFloat kFakeboxVerticalPadding = 40; |
@implementation WidgetView |
+@synthesize copiedURL = _copiedURL; |
+@synthesize copiedURLLabel = _copiedURLLabel; |
+ |
@synthesize cursor = _cursor; |
- (instancetype)initWithActionTarget:(id<WidgetViewActionTarget>)target { |
@@ -52,7 +57,7 @@ const CGFloat kFakeboxVerticalPadding = 40; |
UIGestureRecognizer* tapRecognizer = |
[[UITapGestureRecognizer alloc] initWithTarget:_target |
- action:@selector(openApp:)]; |
+ action:@selector(openSearch:)]; |
[fakebox addGestureRecognizer:tapRecognizer]; |
[self addSubview:fakebox]; |
@@ -93,4 +98,9 @@ const CGFloat kFakeboxVerticalPadding = 40; |
completion:nil]; |
} |
+- (void)updateCopiedURL:(NSString*)copiedURL { |
+ self.copiedURL = copiedURL; |
+ self.copiedURLLabel.text = copiedURL; |
+} |
+ |
@end |