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

Unified Diff: components/dom_distiller/core/reader_mode_preferences.h

Issue 341563002: Theme Preferences for Distilled Pages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Minor Created 6 years, 6 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: components/dom_distiller/core/reader_mode_preferences.h
diff --git a/components/dom_distiller/core/reader_mode_preferences.h b/components/dom_distiller/core/reader_mode_preferences.h
new file mode 100644
index 0000000000000000000000000000000000000000..0d29297a3425aedf900a97672d785c0cdc6a25da
--- /dev/null
+++ b/components/dom_distiller/core/reader_mode_preferences.h
@@ -0,0 +1,33 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_DOM_DISTILLER_CORE_READER_MODE_SETTINGS_H_
+#define COMPONENTS_DOM_DISTILLER_CORE_READER_MODE_SETTINGS_H_
+
+class PrefService;
+
+namespace user_prefs {
+class PrefRegistrySyncable;
+}
+
+namespace dom_distiller {
+
+class ReaderModePrefs {
+ public:
+ ReaderModePrefs(PrefService* pref_service);
battre 2014/06/24 07:46:40 explicit ReaderModePrefs(PrefService* pref_service
smaslo 2014/06/24 18:11:18 Done.
+ static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
+
+ // Sets whether high contrast mode should be used.
+ void SetHighContrastPref(bool new_value);
+
+ // Returns whether high contrast mode should be used.
+ bool GetHighContrastPref() const;
+
+ private:
+ PrefService* pref_service_;
battre 2014/06/24 07:46:40 DISALLOW_COPY_AND_ASSIGN(ReaderModePrefs);
smaslo 2014/06/24 18:11:18 Done.
+};
+
+} // namespace dom_distiller
+
+#endif // COMPONENTS_DOM_DISTILLER_CORE_READER_MODE_SETTINGS_H_

Powered by Google App Engine
This is Rietveld 408576698