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/tab_strip.h" | 5 #include "chrome/browser/views/tabs/tab_strip.h" |
6 | 6 |
7 #include "app/animation_container.h" | 7 #include "app/animation_container.h" |
8 #include "app/drag_drop_types.h" | 8 #include "app/drag_drop_types.h" |
9 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
10 #include "app/resource_bundle.h" | 10 #include "app/resource_bundle.h" |
11 #include "app/slide_animation.h" | |
12 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
13 #include "base/stl_util-inl.h" | 12 #include "base/stl_util-inl.h" |
14 #include "chrome/browser/browser.h" | 13 #include "chrome/browser/browser.h" |
15 #include "chrome/browser/browser_theme_provider.h" | 14 #include "chrome/browser/browser_theme_provider.h" |
16 #include "chrome/browser/defaults.h" | 15 #include "chrome/browser/defaults.h" |
17 #include "chrome/browser/view_ids.h" | 16 #include "chrome/browser/view_ids.h" |
18 #include "chrome/browser/views/tabs/tab.h" | 17 #include "chrome/browser/views/tabs/tab.h" |
19 #include "chrome/browser/views/tabs/tab_strip_controller.h" | 18 #include "chrome/browser/views/tabs/tab_strip_controller.h" |
20 #include "chrome/common/pref_names.h" | 19 #include "chrome/common/pref_names.h" |
21 #include "gfx/canvas_skia.h" | 20 #include "gfx/canvas_skia.h" |
(...skipping 1102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1124 } | 1123 } |
1125 } | 1124 } |
1126 | 1125 |
1127 bool TabStrip::HasPhantomTabs() const { | 1126 bool TabStrip::HasPhantomTabs() const { |
1128 for (int i = 0; i < tab_count(); ++i) { | 1127 for (int i = 0; i < tab_count(); ++i) { |
1129 if (GetTabAtTabDataIndex(i)->data().phantom) | 1128 if (GetTabAtTabDataIndex(i)->data().phantom) |
1130 return true; | 1129 return true; |
1131 } | 1130 } |
1132 return false; | 1131 return false; |
1133 } | 1132 } |
OLD | NEW |