OLD | NEW |
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_TABS_TAB_STRIP_LAYOUT_TYPE_PREFS_H_ | 5 #ifndef CHROME_BROWSER_UI_TABS_TAB_STRIP_LAYOUT_TYPE_PREFS_H_ |
6 #define CHROME_BROWSER_UI_TABS_TAB_STRIP_LAYOUT_TYPE_PREFS_H_ | 6 #define CHROME_BROWSER_UI_TABS_TAB_STRIP_LAYOUT_TYPE_PREFS_H_ |
7 | 7 |
8 class PrefRegistrySimple; | 8 class PrefRegistrySimple; |
| 9 class PrefService; |
9 | 10 |
10 namespace chrome { | 11 namespace chrome { |
11 | 12 |
12 // Register local state preferences specific to the TabStrip. | 13 class TabStripLayoutTypePrefs { |
13 void RegisterTabStripLayoutTypePrefs(PrefRegistrySimple* registry); | 14 public: |
| 15 // Register local state preferences specific to the TabStrip. |
| 16 static void Register(PrefRegistrySimple* registry); |
| 17 |
| 18 // Returns |prefs| setting for whether stacked layout is used. |
| 19 static bool GetStackedLayout(PrefService* prefs); |
| 20 |
| 21 // Sets |prefs| setting for whether stacked layout is used as specified by |
| 22 // |stacked_layout| parameter. |
| 23 static void SetStackedLayout(PrefService* prefs, bool stacked_layout); |
| 24 }; |
14 | 25 |
15 } // namespace chrome | 26 } // namespace chrome |
16 | 27 |
17 #endif // CHROME_BROWSER_UI_TABS_TAB_STRIP_LAYOUT_TYPE_PREFS_H_ | 28 #endif // CHROME_BROWSER_UI_TABS_TAB_STRIP_LAYOUT_TYPE_PREFS_H_ |
OLD | NEW |