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

Unified Diff: chrome/browser/views/tabs/tab_strip.cc

Issue 541056: Tab-modal dialog improvements:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/views/tabs/tab_strip.h ('k') | views/view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/tabs/tab_strip.cc
===================================================================
--- chrome/browser/views/tabs/tab_strip.cc (revision 36364)
+++ chrome/browser/views/tabs/tab_strip.cc (working copy)
@@ -1110,6 +1110,7 @@
tab->UpdateData(contents, false);
}
tab->set_pinned(model_->IsTabPinned(index));
+ tab->SetBlocked(model_->IsTabBlocked(index));
// We only add the tab to the child list if it's not already - an invisible
// tab maintained by the DraggedTabController will already be parented.
@@ -1160,6 +1161,7 @@
tab_data_.erase(tab_data_.begin() + from_index);
TabData data = {tab, gfx::Rect()};
tab->set_pinned(model_->IsTabPinned(to_index));
+ tab->SetBlocked(model_->IsTabBlocked(to_index));
tab_data_.insert(tab_data_.begin() + to_index, data);
if (pinned_state_changed) {
StartPinAndMoveTabAnimation(from_index, to_index, start_bounds);
@@ -1189,6 +1191,10 @@
StartPinnedTabAnimation(index);
}
+void TabStrip::TabBlockedStateChanged(TabContents* contents, int index) {
+ GetTabAt(index)->SetBlocked(model_->IsTabBlocked(index));
+}
+
///////////////////////////////////////////////////////////////////////////////
// TabStrip, Tab::Delegate implementation:
« no previous file with comments | « chrome/browser/views/tabs/tab_strip.h ('k') | views/view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698