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/l10n_util.h" | 7 #include "app/l10n_util.h" |
8 #include "app/resource_bundle.h" | 8 #include "app/resource_bundle.h" |
9 #include "chrome/browser/views/tabs/side_tab.h" | 9 #include "chrome/browser/ui/view_ids.h" |
10 #include "chrome/browser/views/tabs/tab_strip_controller.h" | 10 #include "chrome/browser/ui/views/tabs/side_tab.h" |
11 #include "chrome/browser/view_ids.h" | 11 #include "chrome/browser/ui/views/tabs/tab_strip_controller.h" |
12 #include "gfx/canvas.h" | 12 #include "gfx/canvas.h" |
13 #include "grit/generated_resources.h" | 13 #include "grit/generated_resources.h" |
14 #include "grit/theme_resources.h" | 14 #include "grit/theme_resources.h" |
15 #include "views/background.h" | 15 #include "views/background.h" |
16 #include "views/controls/button/image_button.h" | 16 #include "views/controls/button/image_button.h" |
17 | 17 |
18 namespace { | 18 namespace { |
19 const int kVerticalTabSpacing = 2; | 19 const int kVerticalTabSpacing = 2; |
20 const int kTabStripWidth = 140; | 20 const int kTabStripWidth = 140; |
21 const SkColor kBackgroundColor = SkColorSetARGB(255, 209, 220, 248); | 21 const SkColor kBackgroundColor = SkColorSetARGB(255, 209, 220, 248); |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 bounds_animator().AnimateViewTo(separator_, separator_bounds_); | 243 bounds_animator().AnimateViewTo(separator_, separator_bounds_); |
244 } | 244 } |
245 | 245 |
246 void SideTabStrip::DoLayout() { | 246 void SideTabStrip::DoLayout() { |
247 BaseTabStrip::DoLayout(); | 247 BaseTabStrip::DoLayout(); |
248 | 248 |
249 newtab_button_->SetBounds(newtab_button_bounds_); | 249 newtab_button_->SetBounds(newtab_button_bounds_); |
250 | 250 |
251 separator_->SetBounds(separator_bounds_); | 251 separator_->SetBounds(separator_bounds_); |
252 } | 252 } |
OLD | NEW |