Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef COMPONENTS_DOM_DISTILLER_CORE_READER_MODE_SETTINGS_H_ | |
| 6 #define COMPONENTS_DOM_DISTILLER_CORE_READER_MODE_SETTINGS_H_ | |
| 7 | |
| 8 class PrefService; | |
| 9 | |
| 10 namespace user_prefs { | |
| 11 class PrefRegistrySyncable; | |
| 12 } | |
| 13 | |
| 14 namespace dom_distiller { | |
| 15 | |
| 16 class ReaderModePrefs { | |
| 17 public: | |
| 18 ReaderModePrefs(PrefService* pref_service); | |
|
battre
2014/06/24 07:46:40
explicit ReaderModePrefs(PrefService* pref_service
smaslo
2014/06/24 18:11:18
Done.
| |
| 19 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); | |
| 20 | |
| 21 // Sets whether high contrast mode should be used. | |
| 22 void SetHighContrastPref(bool new_value); | |
| 23 | |
| 24 // Returns whether high contrast mode should be used. | |
| 25 bool GetHighContrastPref() const; | |
| 26 | |
| 27 private: | |
| 28 PrefService* pref_service_; | |
|
battre
2014/06/24 07:46:40
DISALLOW_COPY_AND_ASSIGN(ReaderModePrefs);
smaslo
2014/06/24 18:11:18
Done.
| |
| 29 }; | |
| 30 | |
| 31 } // namespace dom_distiller | |
| 32 | |
| 33 #endif // COMPONENTS_DOM_DISTILLER_CORE_READER_MODE_SETTINGS_H_ | |
| OLD | NEW |