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

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

Issue 1132006: Move app/gfx/canvas and app/gfx/font to gfx/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 9 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.cc ('k') | chrome/browser/views/tabs/tab.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_strip.h" 5 #include "chrome/browser/views/tabs/side_tab_strip.h"
6 6
7 #include "app/gfx/canvas.h"
8 #include "base/command_line.h" 7 #include "base/command_line.h"
9 #include "chrome/browser/pref_service.h" 8 #include "chrome/browser/pref_service.h"
10 #include "chrome/browser/profile.h" 9 #include "chrome/browser/profile.h"
11 #include "chrome/browser/view_ids.h" 10 #include "chrome/browser/view_ids.h"
12 #include "chrome/common/chrome_switches.h" 11 #include "chrome/common/chrome_switches.h"
13 #include "chrome/common/pref_names.h" 12 #include "chrome/common/pref_names.h"
13 #include "gfx/canvas.h"
14 14
15 namespace { 15 namespace {
16 const int kVerticalTabSpacing = 2; 16 const int kVerticalTabSpacing = 2;
17 const int kTabStripWidth = 140; 17 const int kTabStripWidth = 140;
18 const int kTabStripInset = 3; 18 const int kTabStripInset = 3;
19 } 19 }
20 20
21 //////////////////////////////////////////////////////////////////////////////// 21 ////////////////////////////////////////////////////////////////////////////////
22 // SideTabStrip, public: 22 // SideTabStrip, public:
23 23
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 //////////////////////////////////////////////////////////////////////////////// 146 ////////////////////////////////////////////////////////////////////////////////
147 // SideTabStrip, private: 147 // SideTabStrip, private:
148 148
149 int SideTabStrip::GetIndexOfSideTab(SideTab* tab) const { 149 int SideTabStrip::GetIndexOfSideTab(SideTab* tab) const {
150 return GetChildIndex(tab); 150 return GetChildIndex(tab);
151 } 151 }
152 152
153 SideTab* SideTabStrip::GetSideTabAt(int index) const { 153 SideTab* SideTabStrip::GetSideTabAt(int index) const {
154 return static_cast<SideTab*>(GetChildViewAt(index)); 154 return static_cast<SideTab*>(GetChildViewAt(index));
155 } 155 }
OLDNEW
« no previous file with comments | « chrome/browser/views/tabs/side_tab.cc ('k') | chrome/browser/views/tabs/tab.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698