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

Unified 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, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/search/toolbar_search_animator_observer.h
diff --git a/chrome/browser/ui/search/toolbar_search_animator_observer.h b/chrome/browser/ui/search/toolbar_search_animator_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..529ae25e6f8b0f390b76ed73fbfec550e2cc3a51
--- /dev/null
+++ b/chrome/browser/ui/search/toolbar_search_animator_observer.h
@@ -0,0 +1,35 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_SEARCH_TOOLBAR_SEARCH_ANIMATOR_OBSERVER_H_
+#define CHROME_BROWSER_UI_SEARCH_TOOLBAR_SEARCH_ANIMATOR_OBSERVER_H_
+#pragma once
+
+class TabContents;
+
+namespace chrome {
+namespace search {
+
+// This class defines the observer interface for |ToolbarSearchAnimator|.
+class ToolbarSearchAnimatorObserver {
+ public:
+ // Called from ui::AnimationDelegate::AnimationProgressed.
+ virtual void OnToolbarBackgroundAnimatorProgressed() = 0;
+
+ // Called when animation is canceled and jumps to the end state.
+ // If animation is canceled because the active tab is deactivated or detached
+ // or closing, |tab_contents| contains the tab's contents.
+ // Otherwise, if animation is canceled because of mode change, |tab_contents|
+ // is NULL.
+ virtual void OnToolbarBackgroundAnimatorCanceled(
+ TabContents* tab_contents) = 0;
+
+ protected:
+ virtual ~ToolbarSearchAnimatorObserver() {}
+};
+
+} // namespace search
+} // namespace chrome
+
+#endif // CHROME_BROWSER_UI_SEARCH_TOOLBAR_SEARCH_ANIMATOR_OBSERVER_H_
« 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