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

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

Issue 10816027: alternate ntp: toolbar background and separator animation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix android build break Created 8 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/ui/search/search_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_SEARCH_SEARCH_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_SEARCH_SEARCH_DELEGATE_H_
6 #define CHROME_BROWSER_UI_SEARCH_SEARCH_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_SEARCH_SEARCH_DELEGATE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "chrome/browser/ui/search/search_model_observer.h" 10 #include "chrome/browser/ui/search/search_model_observer.h"
(...skipping 11 matching lines...) Expand all
22 // SearchModel through to the toolbar, tabstrip and other UI 22 // SearchModel through to the toolbar, tabstrip and other UI
23 // observers. 23 // observers.
24 // Changes are propagated from the active tab's model via this class to the 24 // Changes are propagated from the active tab's model via this class to the
25 // Browser-level model. 25 // Browser-level model.
26 class SearchDelegate : public SearchModelObserver { 26 class SearchDelegate : public SearchModelObserver {
27 public: 27 public:
28 explicit SearchDelegate(SearchModel* model); 28 explicit SearchDelegate(SearchModel* model);
29 virtual ~SearchDelegate(); 29 virtual ~SearchDelegate();
30 30
31 // Overrides for SearchModelObserver: 31 // Overrides for SearchModelObserver:
32 virtual void ModeChanged(const Mode& mode) OVERRIDE; 32 virtual void ModeChanged(const Mode& old_mode, const Mode& new_mode) OVERRIDE;
33 33
34 // When the active tab is changed, the model state of this new active tab is 34 // When the active tab is changed, the model state of this new active tab is
35 // propagated to the browser. 35 // propagated to the browser.
36 void OnTabActivated(TabContents* contents); 36 void OnTabActivated(TabContents* contents);
37 37
38 // When a tab is deactivated, this class no longer observes changes to the 38 // When a tab is deactivated, this class no longer observes changes to the
39 // tab's model. 39 // tab's model.
40 void OnTabDeactivated(TabContents* contents); 40 void OnTabDeactivated(TabContents* contents);
41 41
42 // When a tab is detached, this class no longer observes changes to the 42 // When a tab is detached, this class no longer observes changes to the
(...skipping 20 matching lines...) Expand all
63 // NTP to SEARCH. 63 // NTP to SEARCH.
64 ToolbarSearchAnimator toolbar_search_animator_; 64 ToolbarSearchAnimator toolbar_search_animator_;
65 65
66 DISALLOW_COPY_AND_ASSIGN(SearchDelegate); 66 DISALLOW_COPY_AND_ASSIGN(SearchDelegate);
67 }; 67 };
68 68
69 } // namespace search 69 } // namespace search
70 } // namespace chrome 70 } // namespace chrome
71 71
72 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_DELEGATE_H_ 72 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/search/search_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698