1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 package org.chromium.components.dom_distiller.core;
7 // An auto-generated enum for Font Family preferences as used by
8 // org.chromium.components.dom_distiller.core.DistilledPagePrefs and
9 // the corresponding native class
10 // dom_distiller::android::DistilledPagePrefsAndroid
11 public enum FontFamily {
13 #define DEFINE_FONT_FAMILY(name, value) name(value),
14 #include "components/dom_distiller/core/font_family_list.h"
15 #undef DEFINE_FONT_FAMILY
18 private final int mFontFamily;
20 private FontFamily(int value) {
28 public static FontFamily getFontFamilyForValue(int value) {
29 for (FontFamily fontFamily: FontFamily.values()) {
30 if (fontFamily.mFontFamily == value) {