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

Unified Diff: chrome/browser/ui/search/search_model.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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/search/search_model.h
diff --git a/chrome/browser/ui/search/search_model.h b/chrome/browser/ui/search/search_model.h
index 6a7f1f138742d451a740290f5e5cc7a4c82b295a..f29308dff6e71b7879d76431a5d26405dcd5f9a2 100644
--- a/chrome/browser/ui/search/search_model.h
+++ b/chrome/browser/ui/search/search_model.h
@@ -21,13 +21,19 @@ class SearchModel {
SearchModel();
~SearchModel();
- // Change the mode. Change notifications are sent to observers. An animated
- // transition may be requested.
+ // Change the mode. Change notifications are sent to observers.
void SetMode(const Mode& mode);
// Get the active mode.
const Mode& mode() const { return mode_; }
+ // Set visibility of top bars (bookmark and info bars). Notifications are
+ // sent to observers.
+ void SetTopBarsVisible(bool visible);
+
+ // Get the visibility of top bars (bookmark and info bars).
+ bool top_bars_visible() const { return top_bars_visible_; }
+
// Add and remove observers.
void AddObserver(SearchModelObserver* observer);
void RemoveObserver(SearchModelObserver* observer);
@@ -36,6 +42,9 @@ class SearchModel {
// The display mode of UI elements such as the toolbar, the tab strip, etc.
dhollowa 2013/03/13 17:21:55 For cleanliness, let's stick this model data into
kuan 2013/03/13 22:21:07 Done.
Mode mode_;
+ // The visibility of top bars (bookmark and info bars).
+ bool top_bars_visible_;
+
// Observers.
ObserverList<SearchModelObserver> observers_;

Powered by Google App Engine
This is Rietveld 408576698