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_ | |
nyquist
2014/06/24 23:08:49
COMPONENTS_DOM_DISTILLER_CORE_READER_MODE_PREFEREN
smaslo
2014/06/26 20:05:38
Done.
| |
6 #define COMPONENTS_DOM_DISTILLER_CORE_READER_MODE_SETTINGS_H_ | |
7 | |
8 #include "base/macros.h" | |
9 | |
10 class PrefService; | |
11 | |
12 namespace user_prefs { | |
13 class PrefRegistrySyncable; | |
14 } | |
15 | |
16 namespace dom_distiller { | |
17 | |
18 class ReaderModePrefs { | |
nyquist
2014/06/24 23:08:49
Add a comment which describes what this class is s
smaslo
2014/06/26 20:05:38
Done.
| |
19 public: | |
20 explicit ReaderModePrefs(PrefService* pref_service); | |
21 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); | |
22 | |
23 // Sets whether high contrast mode should be used. | |
24 void SetHighContrastPref(bool new_value); | |
25 | |
26 // Returns whether high contrast mode should be used. | |
27 bool GetHighContrastPref() const; | |
28 | |
29 private: | |
30 PrefService* pref_service_; | |
31 DISALLOW_COPY_AND_ASSIGN(ReaderModePrefs); | |
nyquist
2014/06/24 23:08:49
Nit: newline before DISALLOW...
smaslo
2014/06/26 20:05:38
Done.
| |
32 }; | |
33 | |
34 } // namespace dom_distiller | |
35 | |
36 #endif // COMPONENTS_DOM_DISTILLER_CORE_READER_MODE_SETTINGS_H_ | |
OLD | NEW |