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

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

Issue 3066014: Cleanup: Remove unneeded headers from app/ (part 2) (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rebase 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/views/tabs/side_tab.h ('k') | chrome/browser/views/tabs/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) 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 #include "chrome/browser/views/tabs/side_tab.h" 5 #include "chrome/browser/views/tabs/side_tab.h"
6 6
7 #include "app/resource_bundle.h" 7 #include "app/resource_bundle.h"
8 #include "app/theme_provider.h"
9 #include "base/logging.h" 8 #include "base/logging.h"
10 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
11 #include "gfx/canvas_skia.h" 10 #include "gfx/canvas_skia.h"
12 #include "gfx/favicon_size.h" 11 #include "gfx/favicon_size.h"
13 #include "gfx/path.h" 12 #include "gfx/path.h"
14 #include "gfx/skia_util.h" 13 #include "gfx/skia_util.h"
15 #include "grit/app_resources.h" 14 #include "grit/app_resources.h"
16 #include "grit/theme_resources.h" 15 #include "grit/theme_resources.h"
17 #include "views/controls/button/image_button.h" 16 #include "views/controls/button/image_button.h"
18 17
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 return gfx::Size(0, GetPreferredHeight()); 118 return gfx::Size(0, GetPreferredHeight());
120 } 119 }
121 120
122 bool SideTab::ShouldPaintHighlight() const { 121 bool SideTab::ShouldPaintHighlight() const {
123 return IsSelected() || !controller(); 122 return IsSelected() || !controller();
124 } 123 }
125 124
126 bool SideTab::ShouldShowIcon() const { 125 bool SideTab::ShouldShowIcon() const {
127 return data().mini || data().show_icon; 126 return data().mini || data().show_icon;
128 } 127 }
OLDNEW
« no previous file with comments | « chrome/browser/views/tabs/side_tab.h ('k') | chrome/browser/views/tabs/tab_strip.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698