Chromium Code Reviews| 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; |
| +} |
| + |
| +} |