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

Side by Side Diff: chrome/browser/cocoa/styled_text_field_cell.mm

Issue 3173043: Move theme files in chrome/browser/ into a themes/ subdir. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 4 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) 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698