OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |