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

Side by Side Diff: chrome/browser/ui/search/toolbar_search_animator_observer.h

Issue 10662032: alternate ntp (cros/partial-win): add tab-related stuff and toolbar/tab background change (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed scott's comments 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
(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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/search/toolbar_search_animator.cc ('k') | chrome/browser/ui/views/ash/browser_non_client_frame_view_ash.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698