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

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: rebase 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..c7fa636a4fe4d934a786b161ddfa3ebd59fec0f3 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
+ // toollbar gradient background.
dhollowa 2012/07/24 00:24:49 nit: toolbar (spelling)
kuan 2012/07/30 23:21:02 Done.
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
+ // toolbar separator.
dhollowa 2012/07/24 00:24:49 "the toolbar separator"
kuan 2012/07/30 23:21:02 Done.
+ virtual void OnToolbarSeparatorAnimatorProgressed() {}
+
+ // Called when toolbar separator animation is canceled and jumps to the end
dhollowa 2012/07/24 00:24:49 "the toolbar separator"
kuan 2012/07/30 23:21:02 Done.
+ // state.
+ virtual void OnToolbarSeparatorAnimatorCanceled() {}
+
protected:
virtual ~ToolbarSearchAnimatorObserver() {}
};

Powered by Google App Engine
This is Rietveld 408576698