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

Side by Side Diff: chrome/browser/ui/cocoa/profiles/avatar_label_button.mm

Issue 454583002: Cleanup: Remove unneeded #includes for grit/, ui/base/l10n/l10n_util.h and ui/base/resource/resourc… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Cros some more Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/profiles/avatar_label_button.h" 5 #import "chrome/browser/ui/cocoa/profiles/avatar_label_button.h"
6 6
7 #include "chrome/browser/themes/theme_properties.h" 7 #include "chrome/browser/themes/theme_properties.h"
8 #include "chrome/browser/ui/cocoa/themed_window.h" 8 #include "chrome/browser/ui/cocoa/themed_window.h"
9 #include "grit/generated_resources.h" 9 #include "grit/generated_resources.h"
10 #include "grit/theme_resources.h" 10 #include "grit/theme_resources.h"
11 #include "ui/base/cocoa/appkit_utils.h" 11 #include "ui/base/cocoa/appkit_utils.h"
12 #include "ui/base/l10n/l10n_util_mac.h" 12 #include "ui/base/l10n/l10n_util_mac.h"
13 #include "ui/base/resource/resource_bundle.h"
14 #include "ui/base/theme_provider.h" 13 #include "ui/base/theme_provider.h"
15 14
16 namespace { 15 namespace {
17 16
18 // Space between the left edge of the label background and the left edge of the 17 // Space between the left edge of the label background and the left edge of the
19 // label text. 18 // label text.
20 const CGFloat kLabelTextLeftSpacing = 10; 19 const CGFloat kLabelTextLeftSpacing = 10;
21 20
22 // Space between the right edge of the label text and the avatar icon. 21 // Space between the right edge of the label text and the avatar icon.
23 const CGFloat kLabelTextRightSpacing = 4; 22 const CGFloat kLabelTextRightSpacing = 4;
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 path = [NSBezierPath bezierPathWithRoundedRect:backgroundRect 125 path = [NSBezierPath bezierPathWithRoundedRect:backgroundRect
127 xRadius:2.0 126 xRadius:2.0
128 yRadius:2.0]; 127 yRadius:2.0];
129 [backgroundColor set]; 128 [backgroundColor set];
130 [path fill]; 129 [path fill];
131 } 130 }
132 [super drawInteriorWithFrame:cellFrame inView:controlView]; 131 [super drawInteriorWithFrame:cellFrame inView:controlView];
133 } 132 }
134 133
135 @end 134 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698