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

Side by Side Diff: chrome/browser/ui/search/search_model_observer.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: rebased, resolved conflicts 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_MODEL_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_UI_SEARCH_SEARCH_MODEL_OBSERVER_H_
6 #define CHROME_BROWSER_UI_SEARCH_SEARCH_MODEL_OBSERVER_H_ 6 #define CHROME_BROWSER_UI_SEARCH_SEARCH_MODEL_OBSERVER_H_
7 7
8 namespace chrome { 8 namespace chrome {
9 namespace search { 9 namespace search {
10 10
11 struct Mode; 11 struct Mode;
dhollowa 2013/03/13 17:21:55 Can get rid of this, and you'll need to include se
kuan 2013/03/13 22:21:07 Done.
12 12
13 // This class defines the observer interface for the |SearchModel|. 13 // This class defines the observer interface for the |SearchModel|.
14 class SearchModelObserver { 14 class SearchModelObserver {
15 public: 15 public:
16 // Informs the observer that the mode has changed. 16 // Informs the observer that the model has changed.
dhollowa 2013/03/13 17:21:55 "... the model's state has changed."
kuan 2013/03/13 22:21:07 Done.
17 virtual void ModeChanged(const Mode& old_mode, const Mode& new_mode) = 0; 17 virtual void ModelChanged(const Mode& old_mode,
dhollowa 2013/03/13 17:21:55 As mentioned: virtual void ModelChanged(const Sear
kuan 2013/03/13 22:21:07 Done.
18 const Mode& new_mode,
19 bool top_bars_visible) = 0;
18 20
19 protected: 21 protected:
20 virtual ~SearchModelObserver() {} 22 virtual ~SearchModelObserver() {}
21 }; 23 };
22 24
23 } // namespace search 25 } // namespace search
24 } // namespace chrome 26 } // namespace chrome
25 27
26 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_MODEL_OBSERVER_H_ 28 #endif // CHROME_BROWSER_UI_SEARCH_SEARCH_MODEL_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698