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

Unified Diff: chrome/browser/ui/cocoa/hyperlink_text_view.h

Issue 595283002: Move nsview_additions and hyperlink_text_view to ui/base/cocoa (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 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: chrome/browser/ui/cocoa/hyperlink_text_view.h
diff --git a/chrome/browser/ui/cocoa/hyperlink_text_view.h b/chrome/browser/ui/cocoa/hyperlink_text_view.h
deleted file mode 100644
index 5ec6934573614ad91afebc06b3766ccb47ce514d..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/cocoa/hyperlink_text_view.h
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright (c) 2011 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 <Cocoa/Cocoa.h>
-
-@class NSColor;
-
-// HyperlinkTextView is an NSTextView subclass for unselectable, linkable text.
-// This subclass doesn't show the text caret or IBeamCursor, whereas the base
-// class NSTextView displays both with full keyboard accessibility enabled.
-@interface HyperlinkTextView : NSTextView {
- @private
- BOOL refusesFirstResponder_;
- BOOL drawsBackgroundUsingSuperview_;
-}
-
-@property(nonatomic, assign) BOOL drawsBackgroundUsingSuperview;
-
-// Convenience function that sets the |HyperlinkTextView| contents to the
-// specified |message| with a hypertext style |link| inserted at |linkOffset|.
-// Uses the supplied |font|, |messageColor|, and |linkColor|.
-- (void)setMessageAndLink:(NSString*)message
- withLink:(NSString*)link
- atOffset:(NSUInteger)linkOffset
- font:(NSFont*)font
- messageColor:(NSColor*)messageColor
- linkColor:(NSColor*)linkColor;
-
-// Set the |message| displayed by the HyperlinkTextView, using |font| and
-// |messageColor|.
-- (void)setMessage:(NSString*)message
- 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:.
-- (void)addLinkRange:(NSRange)range
- withName:(id)name
- linkColor:(NSColor*)linkColor;
-
-// This is NO (by default) if the view rejects first responder status.
-- (void)setRefusesFirstResponder:(BOOL)refusesFirstResponder;
-
-@end

Powered by Google App Engine
This is Rietveld 408576698