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

Unified Diff: ui/base/cocoa/controls/hyperlink_text_view.h

Issue 1364113003: Only (and always) put URLs in NSLinkAttributeName. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@infobar1
Patch Set: stray deletion Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: ui/base/cocoa/controls/hyperlink_text_view.h
diff --git a/ui/base/cocoa/controls/hyperlink_text_view.h b/ui/base/cocoa/controls/hyperlink_text_view.h
index f04ad40b1823aee1b60fa85e0c5e2b39aec6b907..affe648d206bc012a42a43d04563a24d2867fc65 100644
--- a/ui/base/cocoa/controls/hyperlink_text_view.h
+++ b/ui/base/cocoa/controls/hyperlink_text_view.h
@@ -26,10 +26,9 @@ UI_BASE_EXPORT
withFont:(NSFont*)font
messageColor:(NSColor*)messageColor;
-// Marks a |range| within the given message as link, associating it with
-// a |name| that is passed to the delegate's textView:clickedOnLink:atIndex:.
+// Marks a |range| within the given message as link.
- (void)addLinkRange:(NSRange)range
- withName:(id)name
+ withURL:(NSString*)url
linkColor:(NSColor*)linkColor;
// This is NO (by default) if the view rejects first responder status.
« no previous file with comments | « chrome/browser/ui/cocoa/tab_contents/sad_tab_view_cocoa.mm ('k') | ui/base/cocoa/controls/hyperlink_text_view.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698