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

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: 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..01ec5cbf16db858d8bbe55ee05252e40e404cec1 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);
+ // Set visibility of top bars (bookmark and info bars). Notifications are
+ // sent to observers.
+ void SetTopBarsVisible(bool visible);
dhollowa 2013/03/08 00:03:32 Please group this with show_top_bars(). Concepts
kuan 2013/03/12 18:00:38 Done.
+
// Get the active mode.
const Mode& mode() const { return mode_; }
+ // Get the visibility of top bars (bookmark and info bars).
+ bool show_top_bars() const { return show_top_bars_; }
+
// 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.
Mode mode_;
+ // The visibility of top bars (bookmark and info bars).
+ bool show_top_bars_;
+
// Observers.
ObserverList<SearchModelObserver> observers_;

Powered by Google App Engine
This is Rietveld 408576698