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

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

Issue 2252963004: Remove dom_distiller core dependency on content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix test deps Created 4 years, 4 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/FontFamily.template
diff --git a/components/dom_distiller/android/java/src/org/chromium/components/dom_distiller/core/FontFamily.template b/components/dom_distiller/android/java/src/org/chromium/components/dom_distiller/core/FontFamily.template
deleted file mode 100644
index bc0ff25411a4576eeb0bb43c13ef43225de246a3..0000000000000000000000000000000000000000
--- a/components/dom_distiller/android/java/src/org/chromium/components/dom_distiller/core/FontFamily.template
+++ /dev/null
@@ -1,37 +0,0 @@
-// 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 enum for Font Family preferences as used by
-// org.chromium.components.dom_distiller.core.DistilledPagePrefs and
-// the corresponding native class
-// dom_distiller::android::DistilledPagePrefsAndroid
-public enum FontFamily {
-
-#define DEFINE_FONT_FAMILY(name, value) name(value),
-#include "components/dom_distiller/core/font_family_list.h"
-#undef DEFINE_FONT_FAMILY
-;
-
-private final int mFontFamily;
-
-private FontFamily(int value) {
- mFontFamily = value;
-}
-
-int asNativeEnum() {
- return mFontFamily;
-}
-
-public static FontFamily getFontFamilyForValue(int value) {
- for (FontFamily fontFamily: FontFamily.values()) {
- if (fontFamily.mFontFamily == value) {
- return fontFamily;
- }
- }
- return null;
-}
-
-}

Powered by Google App Engine
This is Rietveld 408576698