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

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

Issue 2878055: Make theme change notifications auto-propagate through the view hierarchy, in... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 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 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
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