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

Unified Diff: chrome/browser/views/tabs/base_tab_renderer.h

Issue 2124003: More TabStrip refactoring. (Closed)
Patch Set: Merge with trunk Created 10 years, 7 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
Index: chrome/browser/views/tabs/base_tab_renderer.h
diff --git a/chrome/browser/views/tabs/base_tab_renderer.h b/chrome/browser/views/tabs/base_tab_renderer.h
index 8c80a5378f8bc324ef88e374490231fa44d1ddcb..12491c4cd67e6d1271280744ea4deeda2555172f 100644
--- a/chrome/browser/views/tabs/base_tab_renderer.h
+++ b/chrome/browser/views/tabs/base_tab_renderer.h
@@ -58,6 +58,14 @@ class BaseTabRenderer : public views::View {
// invoked.
virtual void UpdateLoadingAnimation(TabRendererData::NetworkState state);
+ // Used to set/check whether this Tab is being animated closed.
+ void set_closing(bool closing) { closing_ = closing; }
+ bool closing() const { return closing_; }
+
+ // See description above field.
+ void set_dragging(bool dragging) { dragging_ = dragging; }
+ bool dragging() const { return dragging_; }
+
protected:
// Invoked from SetData after |data_| has been updated to the new data.
virtual void DataChanged(const TabRendererData& old) {}
@@ -74,6 +82,12 @@ class BaseTabRenderer : public views::View {
TabRendererData data_;
+ // True if the tab is being animated closed.
+ bool closing_;
+
+ // True if the tab is being dragged.
+ bool dragging_;
+
DISALLOW_COPY_AND_ASSIGN(BaseTabRenderer);
};
« no previous file with comments | « chrome/browser/chromeos/compact_location_bar_host.cc ('k') | chrome/browser/views/tabs/base_tab_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698