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

Side by Side Diff: chrome/browser/ui/views/tabs/side_tab.cc

Issue 6312156: Change includes of gfx/* to ui/gfx/* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 10 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
« no previous file with comments | « chrome/browser/ui/views/tabs/side_tab.h ('k') | chrome/browser/ui/views/tabs/side_tab_strip.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "chrome/browser/ui/views/tabs/side_tab.h" 5 #include "chrome/browser/ui/views/tabs/side_tab.h"
6 6
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "gfx/canvas_skia.h"
9 #include "gfx/favicon_size.h"
10 #include "gfx/path.h"
11 #include "gfx/skia_util.h"
12 #include "grit/app_resources.h" 8 #include "grit/app_resources.h"
13 #include "grit/theme_resources.h" 9 #include "grit/theme_resources.h"
14 #include "ui/base/resource/resource_bundle.h" 10 #include "ui/base/resource/resource_bundle.h"
11 #include "ui/gfx/canvas_skia.h"
12 #include "ui/gfx/favicon_size.h"
13 #include "ui/gfx/path.h"
14 #include "ui/gfx/skia_util.h"
15 #include "views/controls/button/image_button.h" 15 #include "views/controls/button/image_button.h"
16 16
17 namespace { 17 namespace {
18 const int kVerticalTabHeight = 27; 18 const int kVerticalTabHeight = 27;
19 const int kTitleCloseSpacing = 4; 19 const int kTitleCloseSpacing = 4;
20 const SkScalar kRoundRectRadius = 4; 20 const SkScalar kRoundRectRadius = 4;
21 const SkColor kTabBackgroundColor = SK_ColorWHITE; 21 const SkColor kTabBackgroundColor = SK_ColorWHITE;
22 const SkColor kTextColor = SK_ColorBLACK; 22 const SkColor kTextColor = SK_ColorBLACK;
23 23
24 // Padding between the edge and the icon. 24 // Padding between the edge and the icon.
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 return gfx::Size(0, GetPreferredHeight()); 105 return gfx::Size(0, GetPreferredHeight());
106 } 106 }
107 107
108 bool SideTab::ShouldPaintHighlight() const { 108 bool SideTab::ShouldPaintHighlight() const {
109 return IsSelected() || !controller(); 109 return IsSelected() || !controller();
110 } 110 }
111 111
112 bool SideTab::ShouldShowIcon() const { 112 bool SideTab::ShouldShowIcon() const {
113 return data().mini || data().show_icon; 113 return data().mini || data().show_icon;
114 } 114 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/side_tab.h ('k') | chrome/browser/ui/views/tabs/side_tab_strip.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698