Index: components/dom_distiller/core/reader_mode_preferences_android.cc |
diff --git a/components/dom_distiller/core/reader_mode_preferences_android.cc b/components/dom_distiller/core/reader_mode_preferences_android.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d3a3632a2156d54295e3aa933f97bca79b7abf5e |
--- /dev/null |
+++ b/components/dom_distiller/core/reader_mode_preferences_android.cc |
@@ -0,0 +1,32 @@ |
+// 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. |
+ |
+#include "components/dom_distiller/core/reader_mode_preferences_android.h" |
+#include "components/dom_distiller/core/reader_mode_preferences.h" |
+ |
+#include "jni/ReaderModePreferencesAndroid_jni.h" |
+ |
+namespace dom_distiller { |
+ |
+namespace reader_mode_preferences { |
+ |
+namespace android { |
+ |
+void SetHighContrastMode(JNIEnv* env, |
+ jobject obj, |
+ jlong ptr, |
+ jboolean enabled) { |
+ ReaderModePrefs* myReaderModePrefs = reinterpret_cast<ReaderModePrefs*>(ptr); |
+ myReaderModePrefs->OnChangeHighContrast(enabled); |
+} |
+ |
+bool RegisterReaderModePrefsAndroid(JNIEnv* env) { |
+ return RegisterNativesImpl(env); |
+} |
+ |
+} // namespace android |
+ |
+} // namespace reader_mode_preferences |
+ |
+} // namespace dom_distiller |