OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_UI_SEARCH_TOOLBAR_SEARCH_ANIMATOR_OBSERVER_H_ | |
6 #define CHROME_BROWSER_UI_SEARCH_TOOLBAR_SEARCH_ANIMATOR_OBSERVER_H_ | |
7 #pragma once | |
8 | |
9 class TabContents; | |
10 | |
11 namespace chrome { | |
12 namespace search { | |
13 | |
14 // This class defines the observer interface for |ToolbarSearchAnimator|. | |
15 class ToolbarSearchAnimatorObserver { | |
16 public: | |
17 // Called from ui::AnimationDelegate::AnimationProgressed. | |
18 virtual void OnToolbarBackgroundAnimatorProgressed() = 0; | |
19 | |
20 // Called when animation is canceled and jumps to the end state. | |
21 // If animation is canceled because the active tab is deactivated or detached | |
22 // or closing, |tab_contents| contains the tab's contents. | |
23 // Otherwise, if animation is canceled because of mode change, |tab_contents| | |
24 // is NULL. | |
25 virtual void OnToolbarBackgroundAnimatorCanceled( | |
26 TabContents* tab_contents) = 0; | |
sky
2012/06/27 04:18:36
The use of tab_contents here is confusing. Can you
kuan
2012/06/27 10:29:52
u mean ADD an enum like ToolbarSearchAnimator::TAB
sky
2012/06/27 14:11:44
AH, I see. In that case I don't understand why you
kuan
2012/06/27 16:38:14
aha.. i'm embarrassed to say that's a bug on my pa
| |
27 | |
28 protected: | |
29 virtual ~ToolbarSearchAnimatorObserver() {} | |
30 }; | |
31 | |
32 } // namespace search | |
33 } // namespace chrome | |
34 | |
35 #endif // CHROME_BROWSER_UI_SEARCH_TOOLBAR_SEARCH_ANIMATOR_OBSERVER_H_ | |
OLD | NEW |