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

Side by Side Diff: ui/base/cocoa/controls/hyperlink_text_view.h

Issue 602093004: Fix component build after HyperlinkTextView move. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import <Cocoa/Cocoa.h> 5 #import <Cocoa/Cocoa.h>
6 6
7 #include "ui/base/ui_base_export.h"
8
7 @class NSColor; 9 @class NSColor;
8 10
9 // HyperlinkTextView is an NSTextView subclass for unselectable, linkable text. 11 // HyperlinkTextView is an NSTextView subclass for unselectable, linkable text.
10 // This subclass doesn't show the text caret or IBeamCursor, whereas the base 12 // This subclass doesn't show the text caret or IBeamCursor, whereas the base
11 // class NSTextView displays both with full keyboard accessibility enabled. 13 // class NSTextView displays both with full keyboard accessibility enabled.
14 UI_BASE_EXPORT
12 @interface HyperlinkTextView : NSTextView { 15 @interface HyperlinkTextView : NSTextView {
13 @private 16 @private
14 BOOL refusesFirstResponder_; 17 BOOL refusesFirstResponder_;
15 BOOL drawsBackgroundUsingSuperview_; 18 BOOL drawsBackgroundUsingSuperview_;
16 } 19 }
17 20
18 @property(nonatomic, assign) BOOL drawsBackgroundUsingSuperview; 21 @property(nonatomic, assign) BOOL drawsBackgroundUsingSuperview;
19 22
20 // Convenience function that sets the |HyperlinkTextView| contents to the 23 // Convenience function that sets the |HyperlinkTextView| contents to the
21 // specified |message| with a hypertext style |link| inserted at |linkOffset|. 24 // specified |message| with a hypertext style |link| inserted at |linkOffset|.
(...skipping 14 matching lines...) Expand all
36 // Marks a |range| within the given message as link, associating it with 39 // Marks a |range| within the given message as link, associating it with
37 // a |name| that is passed to the delegate's textView:clickedOnLink:atIndex:. 40 // a |name| that is passed to the delegate's textView:clickedOnLink:atIndex:.
38 - (void)addLinkRange:(NSRange)range 41 - (void)addLinkRange:(NSRange)range
39 withName:(id)name 42 withName:(id)name
40 linkColor:(NSColor*)linkColor; 43 linkColor:(NSColor*)linkColor;
41 44
42 // This is NO (by default) if the view rejects first responder status. 45 // This is NO (by default) if the view rejects first responder status.
43 - (void)setRefusesFirstResponder:(BOOL)refusesFirstResponder; 46 - (void)setRefusesFirstResponder:(BOOL)refusesFirstResponder;
44 47
45 @end 48 @end
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698