OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/cocoa/styled_text_field_cell.h" | 5 #import "chrome/browser/cocoa/styled_text_field_cell.h" |
6 | 6 |
7 #include "app/resource_bundle.h" | 7 #include "app/resource_bundle.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "chrome/browser/browser_theme_provider.h" | |
10 #import "chrome/browser/cocoa/themed_window.h" | 9 #import "chrome/browser/cocoa/themed_window.h" |
| 10 #include "chrome/browser/themes/browser_theme_provider.h" |
11 #include "gfx/font.h" | 11 #include "gfx/font.h" |
12 #include "grit/theme_resources.h" | 12 #include "grit/theme_resources.h" |
13 | 13 |
14 namespace { | 14 namespace { |
15 | 15 |
16 NSBezierPath* RectPathWithInset(const NSRect frame, | 16 NSBezierPath* RectPathWithInset(const NSRect frame, |
17 const CGFloat inset, | 17 const CGFloat inset, |
18 const CGFloat outerRadius) { | 18 const CGFloat outerRadius) { |
19 const NSRect insetFrame = NSInsetRect(frame, inset, inset); | 19 const NSRect insetFrame = NSInsetRect(frame, inset, inset); |
20 if (outerRadius > 0.0) { | 20 if (outerRadius > 0.0) { |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 if ([self showsFirstResponder]) { | 189 if ([self showsFirstResponder]) { |
190 NSColor* color = | 190 NSColor* color = |
191 [[NSColor keyboardFocusIndicatorColor] colorWithAlphaComponent:0.5]; | 191 [[NSColor keyboardFocusIndicatorColor] colorWithAlphaComponent:0.5]; |
192 FrameRectWithInset(frame, 0.0, radius, 2.0, color); | 192 FrameRectWithInset(frame, 0.0, radius, 2.0, color); |
193 } | 193 } |
194 | 194 |
195 [self drawInteriorWithFrame:cellFrame inView:controlView]; | 195 [self drawInteriorWithFrame:cellFrame inView:controlView]; |
196 } | 196 } |
197 | 197 |
198 @end | 198 @end |
OLD | NEW |