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

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

Issue 12631008: alternate ntp: implement Show/HideBars API to reduce jank when showing/hiding bars (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed build break Created 7 years, 9 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_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 15 matching lines...) Expand all
26 // observers. 26 // observers.
27 // Changes are propagated from the active tab's model via this class to the 27 // Changes are propagated from the active tab's model via this class to the
28 // Browser-level model. 28 // Browser-level model.
29 class SearchDelegate : public SearchModelObserver { 29 class SearchDelegate : public SearchModelObserver {
30 public: 30 public:
31 SearchDelegate(SearchModel* browser_search_model, 31 SearchDelegate(SearchModel* browser_search_model,
32 ToolbarModel* toolbar_model); 32 ToolbarModel* toolbar_model);
33 virtual ~SearchDelegate(); 33 virtual ~SearchDelegate();
34 34
35 // Overrides for SearchModelObserver: 35 // Overrides for SearchModelObserver:
36 virtual void ModeChanged(const Mode& old_mode, const Mode& new_mode) OVERRIDE; 36 virtual void ModelChanged(const SearchModel::State& old_state,
37 const SearchModel::State& new_state) OVERRIDE;
37 38
38 // When the active tab is changed, the model state of this new active tab is 39 // When the active tab is changed, the model state of this new active tab is
39 // propagated to the browser. 40 // propagated to the browser.
40 void OnTabActivated(content::WebContents* web_contents); 41 void OnTabActivated(content::WebContents* web_contents);
41 42
42 // When a tab is deactivated, this class no longer observes changes to the 43 // When a tab is deactivated, this class no longer observes changes to the
43 // tab's model. 44 // tab's model.
44 void OnTabDeactivated(content::WebContents* web_contents); 45 void OnTabDeactivated(content::WebContents* web_contents);
45 46
46 // When a tab is detached, this class no longer observes changes to the 47 // When a tab is detached, this class no longer observes changes to the
(...skipping 12 matching lines...) Expand all
59 // tab. Changes to this model are propagated through to the |browser_model_|. 60 // tab. Changes to this model are propagated through to the |browser_model_|.
60 SearchModel* tab_model_; 61 SearchModel* tab_model_;
61 62
62 DISALLOW_COPY_AND_ASSIGN(SearchDelegate); 63 DISALLOW_COPY_AND_ASSIGN(SearchDelegate);
63 }; 64 };
64 65
65 } // namespace search 66 } // namespace search
66 } // namespace chrome 67 } // namespace chrome
67 68
68 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_DELEGATE_H_ 69 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/tab_contents/instant_overlay_controller_mac.mm ('k') | chrome/browser/ui/search/search_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698