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/command_line.h" | 12 #include "base/command_line.h" |
14 #include "base/stl_util-inl.h" | 13 #include "base/stl_util-inl.h" |
15 #include "chrome/browser/browser.h" | 14 #include "chrome/browser/browser.h" |
16 #include "chrome/browser/browser_theme_provider.h" | 15 #include "chrome/browser/browser_theme_provider.h" |
17 #include "chrome/browser/defaults.h" | 16 #include "chrome/browser/defaults.h" |
18 #include "chrome/browser/metrics/user_metrics.h" | 17 #include "chrome/browser/metrics/user_metrics.h" |
19 #include "chrome/browser/profile.h" | 18 #include "chrome/browser/profile.h" |
20 #include "chrome/browser/renderer_host/render_view_host.h" | 19 #include "chrome/browser/renderer_host/render_view_host.h" |
21 #include "chrome/browser/tab_contents/tab_contents.h" | 20 #include "chrome/browser/tab_contents/tab_contents.h" |
22 #include "chrome/browser/tabs/tab_strip_model.h" | 21 #include "chrome/browser/tabs/tab_strip_model.h" |
23 #include "chrome/browser/view_ids.h" | 22 #include "chrome/browser/view_ids.h" |
24 #include "chrome/browser/views/app_launcher.h" | 23 #include "chrome/browser/views/app_launcher.h" |
25 #include "chrome/browser/views/tabs/dragged_tab_controller.h" | 24 #include "chrome/browser/views/tabs/dragged_tab_controller.h" |
26 #include "chrome/browser/views/tabs/tab.h" | 25 #include "chrome/browser/views/tabs/tab.h" |
27 #include "chrome/common/chrome_switches.h" | 26 #include "chrome/common/chrome_switches.h" |
28 #include "chrome/common/pref_names.h" | 27 #include "chrome/common/pref_names.h" |
| 28 #include "gfx/canvas.h" |
29 #include "gfx/path.h" | 29 #include "gfx/path.h" |
30 #include "gfx/size.h" | 30 #include "gfx/size.h" |
31 #include "grit/generated_resources.h" | 31 #include "grit/generated_resources.h" |
32 #include "grit/theme_resources.h" | 32 #include "grit/theme_resources.h" |
33 #include "views/controls/image_view.h" | 33 #include "views/controls/image_view.h" |
34 #include "views/painter.h" | 34 #include "views/painter.h" |
35 #include "views/widget/default_theme_provider.h" | 35 #include "views/widget/default_theme_provider.h" |
36 #include "views/window/non_client_view.h" | 36 #include "views/window/non_client_view.h" |
37 #include "views/window/window.h" | 37 #include "views/window/window.h" |
38 | 38 |
(...skipping 2029 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2068 } | 2068 } |
2069 } | 2069 } |
2070 | 2070 |
2071 bool TabStrip::HasPhantomTabs() const { | 2071 bool TabStrip::HasPhantomTabs() const { |
2072 for (int i = 0; i < GetTabCount(); ++i) { | 2072 for (int i = 0; i < GetTabCount(); ++i) { |
2073 if (GetTabAt(i)->phantom()) | 2073 if (GetTabAt(i)->phantom()) |
2074 return true; | 2074 return true; |
2075 } | 2075 } |
2076 return false; | 2076 return false; |
2077 } | 2077 } |
OLD | NEW |