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/drag_drop_types.h" | 7 #include "app/drag_drop_types.h" |
8 #include "app/gfx/canvas.h" | |
9 #include "app/l10n_util.h" | 8 #include "app/l10n_util.h" |
10 #include "app/os_exchange_data.h" | 9 #include "app/os_exchange_data.h" |
11 #include "app/resource_bundle.h" | 10 #include "app/resource_bundle.h" |
12 #include "app/slide_animation.h" | 11 #include "app/slide_animation.h" |
13 #include "base/stl_util-inl.h" | 12 #include "base/stl_util-inl.h" |
14 #include "chrome/browser/browser_theme_provider.h" | 13 #include "chrome/browser/browser_theme_provider.h" |
15 #include "chrome/browser/defaults.h" | 14 #include "chrome/browser/defaults.h" |
16 #include "chrome/browser/metrics/user_metrics.h" | 15 #include "chrome/browser/metrics/user_metrics.h" |
17 #include "chrome/browser/profile.h" | 16 #include "chrome/browser/profile.h" |
18 #include "chrome/browser/renderer_host/render_view_host.h" | 17 #include "chrome/browser/renderer_host/render_view_host.h" |
19 #include "chrome/browser/tab_contents/tab_contents.h" | 18 #include "chrome/browser/tab_contents/tab_contents.h" |
20 #include "chrome/browser/tabs/tab_strip_model.h" | 19 #include "chrome/browser/tabs/tab_strip_model.h" |
21 #include "chrome/browser/view_ids.h" | 20 #include "chrome/browser/view_ids.h" |
22 #include "chrome/browser/views/tabs/dragged_tab_controller.h" | 21 #include "chrome/browser/views/tabs/dragged_tab_controller.h" |
23 #include "chrome/browser/views/tabs/tab.h" | 22 #include "chrome/browser/views/tabs/tab.h" |
24 #include "chrome/common/pref_names.h" | 23 #include "chrome/common/pref_names.h" |
| 24 #include "gfx/canvas.h" |
25 #include "gfx/path.h" | 25 #include "gfx/path.h" |
26 #include "gfx/size.h" | 26 #include "gfx/size.h" |
27 #include "grit/generated_resources.h" | 27 #include "grit/generated_resources.h" |
28 #include "grit/theme_resources.h" | 28 #include "grit/theme_resources.h" |
29 #include "views/controls/image_view.h" | 29 #include "views/controls/image_view.h" |
30 #include "views/painter.h" | 30 #include "views/painter.h" |
31 #include "views/widget/default_theme_provider.h" | 31 #include "views/widget/default_theme_provider.h" |
32 #include "views/window/non_client_view.h" | 32 #include "views/window/non_client_view.h" |
33 #include "views/window/window.h" | 33 #include "views/window/window.h" |
34 | 34 |
(...skipping 2015 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2050 } | 2050 } |
2051 } | 2051 } |
2052 | 2052 |
2053 bool TabStrip::HasPhantomTabs() const { | 2053 bool TabStrip::HasPhantomTabs() const { |
2054 for (int i = 0; i < GetTabCount(); ++i) { | 2054 for (int i = 0; i < GetTabCount(); ++i) { |
2055 if (GetTabAt(i)->phantom()) | 2055 if (GetTabAt(i)->phantom()) |
2056 return true; | 2056 return true; |
2057 } | 2057 } |
2058 return false; | 2058 return false; |
2059 } | 2059 } |
OLD | NEW |