Index: components/dom_distiller/android/java/src/org/chromium/components/dom_distiller/core/FontFamily.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/FontFamily.template |
similarity index 53% |
copy from components/dom_distiller/android/java/src/org/chromium/components/dom_distiller/core/Theme.template |
copy to components/dom_distiller/android/java/src/org/chromium/components/dom_distiller/core/FontFamily.template |
index c74c8a3de0daf412115be350a4a95b0268aa3b8d..e4f981af4ada83123968a6073a7748d5208bc592 100644 |
--- 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/FontFamily.template |
@@ -8,27 +8,27 @@ package org.chromium.components.dom_distiller.core; |
// org.chromium.components.dom_distiller.core.DistilledPagePrefs and |
// the corresponding native class |
// dom_distiller::android::DistilledPagePrefsAndroid |
-public enum Theme { |
+public enum FontFamily { |
-#define DEFINE_THEME(name, value) name(value), |
-#include "components/dom_distiller/core/theme_list.h" |
-#undef DEFINE_THEME |
+#define DEFINE_FONT_FAMILY(name, value) name(value), |
+#include "components/dom_distiller/core/font_family_list.h" |
+#undef DEFINE_FONT_FAMILY |
; |
-private final int mValue; |
+private final int mFontFamily; |
-private Theme(int value) { |
- mValue = value; |
+private FontFamily(int value) { |
+ mFontFamily = value; |
} |
int asNativeEnum() { |
- return mValue; |
+ return mFontFamily; |
} |
-static Theme getThemeForValue(int value) { |
- for (Theme theme: Theme.values()) { |
- if (theme.mValue == value) { |
- return theme; |
+static FontFamily getFontFamilyForValue(int value) { |
+ for (FontFamily fontFamily: FontFamily.values()) { |
+ if (fontFamily.mFontFamily == value) { |
+ return fontFamily; |
} |
} |
return null; |