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

Unified Diff: components/dom_distiller/android/java/src/org/chromium/components/dom_distiller/core/Theme.template

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/android/java/src/org/chromium/components/dom_distiller/core/Theme.template
diff --git a/components/dom_distiller/android/java/src/org/chromium/components/dom_distiller/core/Theme.template b/components/dom_distiller/android/java/src/org/chromium/components/dom_distiller/core/Theme.template
new file mode 100644
index 0000000000000000000000000000000000000000..ad099476973abdae3919090bef74217ad4838d74
--- /dev/null
+++ b/components/dom_distiller/android/java/src/org/chromium/components/dom_distiller/core/Theme.template
@@ -0,0 +1,29 @@
+// 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.
+
+package org.chromium.components.dom_distiller.core;
+
+// An auto-generated interface for Distilled Page Theme preferences as used by
nyquist 2014/07/08 01:02:33 this is an enum, not an interface.
sunangel 2014/07/08 20:40:58 Done.
+// com.google.android.apps.chrome.preferences.ReaderModePreferences and
nyquist 2014/07/08 01:02:33 remove this line about com.google.android.apps.chr
sunangel 2014/07/08 20:40:58 Done.
+// org.chromium.components.dom_distiller.core.DistilledPagePrefs and
nyquist 2014/07/08 01:02:33 "the Java class org.chromium.components.dom_distil
sunangel 2014/07/08 20:40:58 Done.
+// components/dom_distiller/core/distilled_page_prefs_android
+
+public enum Theme {
+
+#define DEFINE_THEME(x,y,z) y(z),
nyquist 2014/07/08 01:02:33 rename y to name and z to value. and rename x to u
sunangel 2014/07/08 20:40:58 Done.
+#include "components/dom_distiller/core/theme_list.h"
+#undef DEFINE_THEME
+;
+
+private final int mValue;
+
+private Theme(int value) {
+ mValue = value;
+}
+
+public int asNativeEnum() {
+ return mValue;
+}
+
+}

Powered by Google App Engine
This is Rietveld 408576698