| OLD | NEW |
| 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 "chrome/browser/ui/cocoa/hyperlink_text_view.h" | 5 #import "ui/base/cocoa/controls/hyperlink_text_view.h" |
| 6 | 6 |
| 7 #include "base/mac/scoped_nsobject.h" | 7 #include "base/mac/scoped_nsobject.h" |
| 8 #include "chrome/browser/ui/cocoa/nsview_additions.h" | 8 #include "ui/base/cocoa/nsview_additions.h" |
| 9 | 9 |
| 10 // The baseline shift for text in the NSTextView. | 10 // The baseline shift for text in the NSTextView. |
| 11 const float kTextBaselineShift = -1.0; | 11 const float kTextBaselineShift = -1.0; |
| 12 | 12 |
| 13 @interface HyperlinkTextView(Private) | 13 @interface HyperlinkTextView(Private) |
| 14 // Initialize the NSTextView properties for this subclass. | 14 // Initialize the NSTextView properties for this subclass. |
| 15 - (void)configureTextView; | 15 - (void)configureTextView; |
| 16 | 16 |
| 17 // Change the current IBeamCursor to an arrowCursor. | 17 // Change the current IBeamCursor to an arrowCursor. |
| 18 - (void)fixupCursor; | 18 - (void)fixupCursor; |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 }; | 149 }; |
| 150 | 150 |
| 151 [[self textStorage] addAttributes:attributes range:range]; | 151 [[self textStorage] addAttributes:attributes range:range]; |
| 152 } | 152 } |
| 153 | 153 |
| 154 - (void)setRefusesFirstResponder:(BOOL)refusesFirstResponder { | 154 - (void)setRefusesFirstResponder:(BOOL)refusesFirstResponder { |
| 155 refusesFirstResponder_ = refusesFirstResponder; | 155 refusesFirstResponder_ = refusesFirstResponder; |
| 156 } | 156 } |
| 157 | 157 |
| 158 @end | 158 @end |
| OLD | NEW |