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

Unified Diff: chrome/browser/ui/tabs/tab_strip_layout_type_prefs.h

Issue 291093005: Removes --enable-stacked-tab-strip flag (Stacked Tabs) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removes --enable-stacked-tab-strip flag (more refactoring) Created 6 years, 7 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/tabs/tab_strip_layout_type_prefs.h
diff --git a/chrome/browser/ui/tabs/tab_strip_layout_type_prefs.h b/chrome/browser/ui/tabs/tab_strip_layout_type_prefs.h
index 80d06b01ac02d4fbb57ab263393fe3468c028915..558c2a5ffd52062ab0bed149c9ca24d074361119 100644
--- a/chrome/browser/ui/tabs/tab_strip_layout_type_prefs.h
+++ b/chrome/browser/ui/tabs/tab_strip_layout_type_prefs.h
@@ -6,11 +6,22 @@
#define CHROME_BROWSER_UI_TABS_TAB_STRIP_LAYOUT_TYPE_PREFS_H_
class PrefRegistrySimple;
+class PrefService;
namespace chrome {
-// Register local state preferences specific to the TabStrip.
-void RegisterTabStripLayoutTypePrefs(PrefRegistrySimple* registry);
+class TabStripLayoutTypePrefs {
+ public:
+ // Register local state preferences specific to the TabStrip.
+ static void Register(PrefRegistrySimple* registry);
+
+ // Returns |prefs| setting for whether stacked layout is used.
+ static bool GetStackedLayout(PrefService* prefs);
+
+ // Sets |prefs| setting for whether stacked layout is used as specified by
+ // |stacked_layout| parameter.
+ static void SetStackedLayout(PrefService* prefs, bool stacked_layout);
+};
} // namespace chrome

Powered by Google App Engine
This is Rietveld 408576698