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

Unified Diff: chrome/browser/tabs/tab_strip_model.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/tabs/tab_strip_model.h ('k') | chrome/browser/views/constrained_window_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tabs/tab_strip_model.cc
===================================================================
--- chrome/browser/tabs/tab_strip_model.cc (revision 36364)
+++ chrome/browser/tabs/tab_strip_model.cc (working copy)
@@ -342,6 +342,16 @@
return contents_data_.at(index)->reset_group_on_select;
}
+void TabStripModel::SetTabBlocked(int index, bool blocked) {
+ DCHECK(ContainsIndex(index));
+ if (contents_data_[index]->blocked == blocked)
+ return;
+ contents_data_[index]->blocked = blocked;
+ FOR_EACH_OBSERVER(TabStripModelObserver, observers_,
+ TabBlockedStateChanged(contents_data_[index]->contents,
+ index));
+}
+
void TabStripModel::SetTabPinned(int index, bool pinned) {
DCHECK(ContainsIndex(index));
if (contents_data_[index]->pinned == pinned)
@@ -373,6 +383,10 @@
return contents_data_[index]->pinned;
}
+bool TabStripModel::IsTabBlocked(int index) const {
+ return contents_data_[index]->blocked;
+}
+
int TabStripModel::IndexOfFirstNonPinnedTab() const {
for (size_t i = 0; i < contents_data_.size(); ++i) {
if (!contents_data_[i]->pinned)
« no previous file with comments | « chrome/browser/tabs/tab_strip_model.h ('k') | chrome/browser/views/constrained_window_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698