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; |
| 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 |