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

Unified Diff: chrome/browser/ui/search/search_delegate.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, fixed bookmark background and moved frame code, fixed unittests build b… 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/search_delegate.h
diff --git a/chrome/browser/ui/search/search_delegate.h b/chrome/browser/ui/search/search_delegate.h
index 26f4f149ab10be37dce84bf380e6df3a8e1a04c6..e8f30c7dd08275e47f55cee6244c896291529e09 100644
--- a/chrome/browser/ui/search/search_delegate.h
+++ b/chrome/browser/ui/search/search_delegate.h
@@ -9,6 +9,7 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "chrome/browser/ui/search/search_model_observer.h"
+#include "chrome/browser/ui/search/toolbar_search_animator.h"
class TabContents;
@@ -43,6 +44,10 @@ class SearchDelegate : public SearchModelObserver {
// tab's model.
void OnTabDetached(TabContents* contents);
+ ToolbarSearchAnimator& toolbar_search_animator() {
+ return toolbar_search_animator_;
+ }
+
private:
// Stop observing tab.
void StopObserveringTab(TabContents* contents);
@@ -55,6 +60,10 @@ class SearchDelegate : public SearchModelObserver {
// tab. Changes to this model are propagated through to the |browser_model_|.
SearchModel* tab_model_;
+ // Animator for fading in toolbar and tab backgrounds when mode changes from
+ // NTP to SEARCH.
+ ToolbarSearchAnimator toolbar_search_animator_;
+
DISALLOW_COPY_AND_ASSIGN(SearchDelegate);
};

Powered by Google App Engine
This is Rietveld 408576698