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

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

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, 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
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 "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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698