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

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: namespaces to classes, native init, enum 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..889940fefd9cb596a9522f56bde0fec9fc351b3d
--- /dev/null
+++ b/components/dom_distiller/core/distilled_page_prefs_android.h
@@ -0,0 +1,28 @@
+// 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"
+
nyquist 2014/07/08 01:02:34 remove empty line.
sunangel 2014/07/08 20:40:59 Done.
+
+class DistilledPagePrefsAndroid{
nyquist 2014/07/08 01:02:34 add namespace dom_distiller and android and remove
sunangel 2014/07/08 20:40:59 Done.
+
nyquist 2014/07/08 01:02:34 remove empty line
sunangel 2014/07/08 20:40:59 Done.
+public:
+ DistilledPagePrefsAndroid(JNIEnv* env, jobject obj,
+ dom_distiller::DistilledPagePrefs* d);
nyquist 2014/07/08 01:02:34 Rename |d| to something clearer.
sunangel 2014/07/08 20:40:59 Done.
+ static bool Register(JNIEnv* env);
+ void SetTheme(JNIEnv* env, jobject obj, jint color_mode);
nyquist 2014/07/08 01:02:34 rename color_mode to theme.
sunangel 2014/07/08 20:41:00 Done.
+ virtual ~DistilledPagePrefsAndroid();
nyquist 2014/07/08 01:02:34 Put the destructor after the destructor. See decla
sunangel 2014/07/08 20:40:59 Done.
+
+private:
+ dom_distiller::DistilledPagePrefs* distilled_page_prefs_;
+
nyquist 2014/07/08 01:02:34 add DISALLOW_COPY_AND_ASSIGN
sunangel 2014/07/08 20:40:59 Done.
+};
+
+#endif // COMPONENTS_DOM_DISTILLER_CORE_DISTILLED_PAGE_PREFS_ANDROID_H_

Powered by Google App Engine
This is Rietveld 408576698