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

Side by Side Diff: chrome/browser/ui/search/search_tab_helper.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
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_TAB_HELPER_H_ 5 #ifndef CHROME_BROWSER_UI_SEARCH_SEARCH_TAB_HELPER_H_
6 #define CHROME_BROWSER_UI_SEARCH_SEARCH_TAB_HELPER_H_ 6 #define CHROME_BROWSER_UI_SEARCH_SEARCH_TAB_HELPER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "chrome/browser/ui/search/search_model.h" 9 #include "chrome/browser/ui/search/search_model.h"
10 #include "content/public/browser/notification_observer.h" 10 #include "content/public/browser/notification_observer.h"
(...skipping 27 matching lines...) Expand all
38 const GURL& url, 38 const GURL& url,
39 content::NavigationController::ReloadType reload_type) OVERRIDE; 39 content::NavigationController::ReloadType reload_type) OVERRIDE;
40 40
41 // Overridden from content::NotificationObserver: 41 // Overridden from content::NotificationObserver:
42 virtual void Observe(int type, 42 virtual void Observe(int type,
43 const content::NotificationSource& source, 43 const content::NotificationSource& source,
44 const content::NotificationDetails& details) OVERRIDE; 44 const content::NotificationDetails& details) OVERRIDE;
45 45
46 private: 46 private:
47 // Sets the mode of the model based on |url|. 47 // Sets the mode of the model based on |url|.
48 void UpdateModel(const GURL& url); 48 // |animate| is set in the Mode passed to the model.
49 void UpdateModel(const GURL& url, bool animate);
49 50
50 const bool is_search_enabled_; 51 const bool is_search_enabled_;
51 52
52 // Model object for UI that cares about search state. 53 // Model object for UI that cares about search state.
53 SearchModel model_; 54 SearchModel model_;
54 55
55 content::NotificationRegistrar registrar_; 56 content::NotificationRegistrar registrar_;
56 57
57 DISALLOW_COPY_AND_ASSIGN(SearchTabHelper); 58 DISALLOW_COPY_AND_ASSIGN(SearchTabHelper);
58 }; 59 };
59 60
60 } // namespace search 61 } // namespace search
61 } // namespace chrome 62 } // namespace chrome
62 63
63 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_TAB_HELPER_H_ 64 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_TAB_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/search/search_model_observer_bridge.h ('k') | chrome/browser/ui/search/search_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698