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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_SEARCH_TOOLBAR_SEARCH_ANIMATOR_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_UI_SEARCH_TOOLBAR_SEARCH_ANIMATOR_OBSERVER_H_
6 #define CHROME_BROWSER_UI_SEARCH_TOOLBAR_SEARCH_ANIMATOR_OBSERVER_H_ 6 #define CHROME_BROWSER_UI_SEARCH_TOOLBAR_SEARCH_ANIMATOR_OBSERVER_H_
7 7
8 class TabContents; 8 class TabContents;
9 9
10 namespace chrome { 10 namespace chrome {
11 namespace search { 11 namespace search {
12 12
13 // This class defines the observer interface for |ToolbarSearchAnimator|. 13 // This class defines the observer interface for |ToolbarSearchAnimator|.
14 class ToolbarSearchAnimatorObserver { 14 class ToolbarSearchAnimatorObserver {
15 public: 15 public:
16 // Called from ui::AnimationDelegate::AnimationProgressed. 16 // Called from ui::AnimationDelegate::AnimationProgressed for fading in
17 // toollbar gradient background.
dhollowa 2012/07/24 00:24:49 nit: toolbar (spelling)
kuan 2012/07/30 23:21:02 Done.
17 virtual void OnToolbarBackgroundAnimatorProgressed() = 0; 18 virtual void OnToolbarBackgroundAnimatorProgressed() = 0;
18 19
19 // Called when animation is canceled and jumps to the end state. 20 // Called when toolbar gradient background animation is canceled and jumps to
21 // the end state.
20 // If animation is canceled because the active tab is deactivated or detached 22 // If animation is canceled because the active tab is deactivated or detached
21 // or closing, |tab_contents| contains the tab's contents. 23 // or closing, |tab_contents| contains the tab's contents.
22 // Otherwise, if animation is canceled because of mode change, |tab_contents| 24 // Otherwise, if animation is canceled because of mode change, |tab_contents|
23 // is NULL. 25 // is NULL.
24 virtual void OnToolbarBackgroundAnimatorCanceled( 26 virtual void OnToolbarBackgroundAnimatorCanceled(
25 TabContents* tab_contents) = 0; 27 TabContents* tab_contents) = 0;
26 28
29 // Called from ui::AnimationDelegate::AnimationProgressed for fading in or out
30 // toolbar separator.
dhollowa 2012/07/24 00:24:49 "the toolbar separator"
kuan 2012/07/30 23:21:02 Done.
31 virtual void OnToolbarSeparatorAnimatorProgressed() {}
32
33 // 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.
34 // state.
35 virtual void OnToolbarSeparatorAnimatorCanceled() {}
36
27 protected: 37 protected:
28 virtual ~ToolbarSearchAnimatorObserver() {} 38 virtual ~ToolbarSearchAnimatorObserver() {}
29 }; 39 };
30 40
31 } // namespace search 41 } // namespace search
32 } // namespace chrome 42 } // namespace chrome
33 43
34 #endif // CHROME_BROWSER_UI_SEARCH_TOOLBAR_SEARCH_ANIMATOR_OBSERVER_H_ 44 #endif // CHROME_BROWSER_UI_SEARCH_TOOLBAR_SEARCH_ANIMATOR_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698