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

Side by Side Diff: chrome/browser/ui/cocoa/styled_text_field_cell.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/styled_text_field_cell.h" 5 #import "chrome/browser/ui/cocoa/styled_text_field_cell.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/browser/themes/theme_properties.h" 8 #include "chrome/browser/themes/theme_properties.h"
9 #include "chrome/browser/themes/theme_service.h" 9 #include "chrome/browser/themes/theme_service.h"
10 #import "chrome/browser/ui/cocoa/nsview_additions.h"
11 #import "chrome/browser/ui/cocoa/themed_window.h" 10 #import "chrome/browser/ui/cocoa/themed_window.h"
12 #include "grit/theme_resources.h" 11 #include "grit/theme_resources.h"
13 #import "ui/base/cocoa/nsgraphics_context_additions.h" 12 #import "ui/base/cocoa/nsgraphics_context_additions.h"
13 #import "ui/base/cocoa/nsview_additions.h"
14 #include "ui/gfx/font.h" 14 #include "ui/gfx/font.h"
15 #include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h" 15 #include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h"
16 16
17 @implementation StyledTextFieldCell 17 @implementation StyledTextFieldCell
18 18
19 - (CGFloat)topTextFrameOffset { 19 - (CGFloat)topTextFrameOffset {
20 return 0.0; 20 return 0.0;
21 } 21 }
22 22
23 - (CGFloat)bottomTextFrameOffset { 23 - (CGFloat)bottomTextFrameOffset {
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 // Draw the focus ring if needed. 166 // Draw the focus ring if needed.
167 if ([self showsFirstResponder]) { 167 if ([self showsFirstResponder]) {
168 NSColor* color = [[NSColor keyboardFocusIndicatorColor] 168 NSColor* color = [[NSColor keyboardFocusIndicatorColor]
169 colorWithAlphaComponent:0.5 / lineWidth]; 169 colorWithAlphaComponent:0.5 / lineWidth];
170 rect_path_utils::FrameRectWithInset(roundedCornerFlags, frame, 0.0, 0.0, 170 rect_path_utils::FrameRectWithInset(roundedCornerFlags, frame, 0.0, 0.0,
171 radius, lineWidth * 2, color); 171 radius, lineWidth * 2, color);
172 } 172 }
173 } 173 }
174 174
175 @end 175 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698