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