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

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

Issue 887823002: Finished swap out of old API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed formatting issues, changed code to perform string operations in C++ rather than ObjC Created 5 years, 11 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.mm
diff --git a/ui/base/cocoa/controls/hyperlink_text_view.mm b/ui/base/cocoa/controls/hyperlink_text_view.mm
index 0afaafa11f9755255824740602cce5e5fe4ffc39..092c096e9934d6a0fb2676de28460c4a2e6dacea 100644
--- a/ui/base/cocoa/controls/hyperlink_text_view.mm
+++ b/ui/base/cocoa/controls/hyperlink_text_view.mm
@@ -101,22 +101,6 @@ const float kTextBaselineShift = -1.0;
[[NSCursor arrowCursor] set];
}
-- (void)setMessageAndLink:(NSString*)message
- withLink:(NSString*)link
- atOffset:(NSUInteger)linkOffset
- font:(NSFont*)font
- messageColor:(NSColor*)messageColor
- linkColor:(NSColor*)linkColor {
- NSMutableString* finalMessage = [NSMutableString stringWithString:message];
- [finalMessage insertString:link atIndex:linkOffset];
- [self setMessage:finalMessage withFont:font messageColor:messageColor];
- if ([link length] != 0) {
- [self addLinkRange:NSMakeRange(linkOffset, [link length])
- withName:@""
- linkColor:linkColor];
- }
-}
-
- (void)setMessage:(NSString*)message
withFont:(NSFont*)font
messageColor:(NSColor*)messageColor {
« no previous file with comments | « ui/base/cocoa/controls/hyperlink_text_view.h ('k') | ui/base/cocoa/controls/hyperlink_text_view_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698