Index: chrome/browser/ui/views/tabs/tab.h |
diff --git a/chrome/browser/ui/views/tabs/tab.h b/chrome/browser/ui/views/tabs/tab.h |
index e3f4814ee3334192af208e4fd81a198f9a0b1410..850a86412abc61ed317c8f61aa664bb1926508a1 100644 |
--- a/chrome/browser/ui/views/tabs/tab.h |
+++ b/chrome/browser/ui/views/tabs/tab.h |
@@ -89,8 +89,7 @@ class Tab : public gfx::AnimationDelegate, |
void SetData(const TabRendererData& data); |
const TabRendererData& data() const { return data_; } |
- // Sets the network state. If the network state changes NetworkStateChanged is |
- // invoked. |
+ // Sets the network state. |
void UpdateLoadingAnimation(TabRendererData::NetworkState state); |
// Starts/Stops a pulse animation. |
@@ -161,15 +160,15 @@ class Tab : public gfx::AnimationDelegate, |
private: |
friend class TabTest; |
- FRIEND_TEST_ALL_PREFIXES(TabTest, CloseButtonLayout); |
- |
friend class TabStripTest; |
FRIEND_TEST_ALL_PREFIXES(TabStripTest, TabHitTestMaskWhenStacked); |
FRIEND_TEST_ALL_PREFIXES(TabStripTest, TabCloseButtonVisibilityWhenStacked); |
// The animation object used to swap the favicon with the sad tab icon. |
class FaviconCrashAnimation; |
+ |
class TabCloseButton; |
+ class ThrobberView; |
// Contains a cached image and the values used to generate it. |
struct ImageCacheEntry { |
@@ -259,8 +258,7 @@ class Tab : public gfx::AnimationDelegate, |
void PaintIcon(gfx::Canvas* canvas); |
// Invoked if data_.network_state changes, or the network_state is not none. |
- void AdvanceLoadingAnimation(TabRendererData::NetworkState old_state, |
- TabRendererData::NetworkState state); |
+ void AdvanceLoadingAnimation(); |
// Returns the number of favicon-size elements that can fit in the tab's |
// current size. |
@@ -338,15 +336,6 @@ class Tab : public gfx::AnimationDelegate, |
// crashes. |
int favicon_hiding_offset_; |
- // The point in time when the tab icon was first painted in the waiting state. |
- base::TimeTicks waiting_start_time_; |
- |
- // The point in time when the tab icon was first painted in the loading state. |
- base::TimeTicks loading_start_time_; |
- |
- // Paint state for the throbber after the most recent waiting paint. |
- gfx::ThrobberWaitingState waiting_state_; |
- |
// Step in the immersive loading progress indicator. |
int immersive_loading_step_; |
@@ -362,6 +351,7 @@ class Tab : public gfx::AnimationDelegate, |
scoped_refptr<gfx::AnimationContainer> animation_container_; |
+ ThrobberView* throbber_; |
MediaIndicatorButton* media_indicator_button_; |
views::ImageButton* close_button_; |
views::Label* title_; |