Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(786)

Side by Side Diff: ios/web_view/internal/cwv_html_element.mm

Issue 2723433004: Add CWVUIDelegate with method to customize context menu. (Closed)
Patch Set: Respond to comment. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ios/web_view/internal/BUILD.gn ('k') | ios/web_view/internal/cwv_html_element_internal.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #import "ios/web_view/public/cwv_html_element.h"
6
7 #if !defined(__has_feature) || !__has_feature(objc_arc)
8 #error "This file requires ARC support."
9 #endif
10
11 @implementation CWVHTMLElement
12 @synthesize hyperlink = _hyperlink;
13 @synthesize mediaSource = _mediaSource;
14 @synthesize text = _text;
15
16 - (instancetype)initWithHyperlink:(NSURL*)hyperlink
17 mediaSource:(NSURL*)mediaSource
18 text:(NSString*)text {
19 self = [super init];
20 if (self) {
21 _hyperlink = hyperlink;
22 _mediaSource = mediaSource;
23 _text = [text copy];
24 }
25 return self;
26 }
27
28 @end
OLDNEW
« no previous file with comments | « ios/web_view/internal/BUILD.gn ('k') | ios/web_view/internal/cwv_html_element_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698