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

Unified Diff: chrome/browser/ui/search/toolbar_search_animator_observer.h

Issue 10816027: alternate ntp: toolbar background and separator animation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update comments Created 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/search/toolbar_search_animator_observer.h
diff --git a/chrome/browser/ui/search/toolbar_search_animator_observer.h b/chrome/browser/ui/search/toolbar_search_animator_observer.h
index 2de0deacabbc10542253e90227acf4dca9b456aa..4510c89713c3a195c7172d59d0eefbfc341e1b6f 100644
--- a/chrome/browser/ui/search/toolbar_search_animator_observer.h
+++ b/chrome/browser/ui/search/toolbar_search_animator_observer.h
@@ -13,10 +13,12 @@ namespace search {
// This class defines the observer interface for |ToolbarSearchAnimator|.
class ToolbarSearchAnimatorObserver {
public:
- // Called from ui::AnimationDelegate::AnimationProgressed.
+ // Called from ui::AnimationDelegate::AnimationProgressed for fading in
+ // toolbar gradient background.
virtual void OnToolbarBackgroundAnimatorProgressed() = 0;
- // Called when animation is canceled and jumps to the end state.
+ // Called when toolbar gradient background animation is canceled and jumps to
+ // the end state.
// If animation is canceled because the active tab is deactivated or detached
// or closing, |tab_contents| contains the tab's contents.
// Otherwise, if animation is canceled because of mode change, |tab_contents|
@@ -24,6 +26,14 @@ class ToolbarSearchAnimatorObserver {
virtual void OnToolbarBackgroundAnimatorCanceled(
TabContents* tab_contents) = 0;
+ // Called from ui::AnimationDelegate::AnimationProgressed for fading in or out
+ // the toolbar separator.
+ virtual void OnToolbarSeparatorAnimatorProgressed() {}
dhollowa 2012/08/01 22:26:23 Should be pure virtual. ... = 0;
kuan 2012/08/02 21:54:03 method is removed.
+
+ // Called when the toolbar separator animation is canceled and jumps to the
+ // end state.
+ virtual void OnToolbarSeparatorAnimatorCanceled() {}
dhollowa 2012/08/01 22:26:23 Should be pure virtual. ... = 0;
kuan 2012/08/02 21:54:03 ditto.
+
protected:
virtual ~ToolbarSearchAnimatorObserver() {}
};

Powered by Google App Engine
This is Rietveld 408576698