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

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

Issue 340403004: Java wrapper for DistilledPagePrefs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: modified DEPS for test dependencies Created 6 years, 5 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/distilled_page_prefs_android.h
diff --git a/components/dom_distiller/core/distilled_page_prefs_android.h b/components/dom_distiller/core/distilled_page_prefs_android.h
new file mode 100644
index 0000000000000000000000000000000000000000..baf7398065f37a8c5039dd7b28ebf5b836d1cb4b
--- /dev/null
+++ b/components/dom_distiller/core/distilled_page_prefs_android.h
@@ -0,0 +1,35 @@
+// 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_DISTILLED_PAGE_PREFS_ANDROID_H_
+#define COMPONENTS_DOM_DISTILLER_CORE_DISTILLED_PAGE_PREFS_ANDROID_H_
+
+#include <jni.h>
+
+#include "base/android/scoped_java_ref.h"
+#include "components/dom_distiller/core/distilled_page_prefs.h"
+
+namespace dom_distiller {
+namespace android {
+
+class DistilledPagePrefsAndroid {
+ public:
+ DistilledPagePrefsAndroid(JNIEnv* env,
+ jobject obj,
+ DistilledPagePrefs* distillerPagePrefsPtr);
+ virtual ~DistilledPagePrefsAndroid();
+ static bool Register(JNIEnv* env);
+ void SetTheme(JNIEnv* env, jobject obj, jint theme);
+ jint GetTheme(JNIEnv* env, jobject obj);
+
+ private:
+ DistilledPagePrefs* distilled_page_prefs_;
+
+ DISALLOW_COPY_AND_ASSIGN(DistilledPagePrefsAndroid);
+};
+
+} // namespace android
+} // namespace dom_distiller
+
+#endif // COMPONENTS_DOM_DISTILLER_CORE_DISTILLED_PAGE_PREFS_ANDROID_H_
« no previous file with comments | « components/dom_distiller/core/distilled_page_prefs.h ('k') | components/dom_distiller/core/distilled_page_prefs_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698