Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Side by Side Diff: chrome/browser/views/tabs/tab_strip.cc

Issue 2878072: Merge 53736 - Make theme change notifications auto-propagate through the view... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/472/src/
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/views/tabs/tab_strip.h ('k') | chrome/browser/views/toolbar_view.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/views/tabs/tab_strip.h ('k') | chrome/browser/views/toolbar_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698