| 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" |
| (...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 447 return next_tab; | 447 return next_tab; |
| 448 Tab* tab = GetTabAtTabDataIndex(i); | 448 Tab* tab = GetTabAtTabDataIndex(i); |
| 449 if (IsPointInTab(tab, point)) | 449 if (IsPointInTab(tab, point)) |
| 450 return tab; | 450 return tab; |
| 451 } | 451 } |
| 452 | 452 |
| 453 // No need to do any floating view stuff, we don't use them in the TabStrip. | 453 // No need to do any floating view stuff, we don't use them in the TabStrip. |
| 454 return this; | 454 return this; |
| 455 } | 455 } |
| 456 | 456 |
| 457 void TabStrip::ThemeChanged() { | 457 void TabStrip::OnThemeChanged() { |
| 458 LoadNewTabButtonImage(); | 458 LoadNewTabButtonImage(); |
| 459 } | 459 } |
| 460 | 460 |
| 461 BaseTab* TabStrip::CreateTab() { | 461 BaseTab* TabStrip::CreateTab() { |
| 462 Tab* tab = new Tab(this); | 462 Tab* tab = new Tab(this); |
| 463 tab->set_animation_container(animation_container_.get()); | 463 tab->set_animation_container(animation_container_.get()); |
| 464 return tab; | 464 return tab; |
| 465 } | 465 } |
| 466 | 466 |
| 467 void TabStrip::StartInsertTabAnimation(int model_index, bool foreground) { | 467 void TabStrip::StartInsertTabAnimation(int model_index, bool foreground) { |
| (...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1128 } | 1128 } |
| 1129 } | 1129 } |
| 1130 | 1130 |
| 1131 bool TabStrip::HasPhantomTabs() const { | 1131 bool TabStrip::HasPhantomTabs() const { |
| 1132 for (int i = 0; i < tab_count(); ++i) { | 1132 for (int i = 0; i < tab_count(); ++i) { |
| 1133 if (GetTabAtTabDataIndex(i)->data().phantom) | 1133 if (GetTabAtTabDataIndex(i)->data().phantom) |
| 1134 return true; | 1134 return true; |
| 1135 } | 1135 } |
| 1136 return false; | 1136 return false; |
| 1137 } | 1137 } |
| OLD | NEW |