Chromium Code Reviews| 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 BackgroundChanging() = 0; | |
|
sky
2012/06/26 17:11:27
These names should better match the interface: OnT
kuan
2012/06/26 23:25:49
Done.
| |
| 19 | |
| 20 // Called from ui::AnimationDelegate::AnimationEnded. | |
| 21 virtual void BackgroundChanged() = 0; | |
| 22 | |
| 23 // Called when animation is canceled and jumps to the end state. | |
| 24 // If animation is canceled because the active tab is deactivated or detached | |
| 25 // or closing, |tab_contents| contains the tab's contents. | |
| 26 // Otherwise, if animation is canceled because of mode change, |tab_contents| | |
| 27 // is NULL. | |
| 28 virtual void BackgroundChangeCanceled(TabContents* tab_contents) = 0; | |
| 29 | |
| 30 protected: | |
| 31 virtual ~ToolbarSearchAnimatorObserver() {} | |
| 32 }; | |
| 33 | |
| 34 } // namespace search | |
| 35 } // namespace chrome | |
| 36 | |
| 37 #endif // CHROME_BROWSER_UI_SEARCH_TOOLBAR_SEARCH_ANIMATOR_OBSERVER_H_ | |
| OLD | NEW |