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

Unified Diff: components/dom_distiller/core/distilled_page_prefs_android.h

Issue 430473007: Font Family Preferences for Distilled Pages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: synced Created 6 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/core/distilled_page_prefs_android.h
diff --git a/components/dom_distiller/core/distilled_page_prefs_android.h b/components/dom_distiller/core/distilled_page_prefs_android.h
index 6f0b1c8d8dfc692f8a86c059113bd0b746cd9de6..cc7f9211c19ec9191c5265c4487e51cf106860c1 100644
--- a/components/dom_distiller/core/distilled_page_prefs_android.h
+++ b/components/dom_distiller/core/distilled_page_prefs_android.h
@@ -20,8 +20,11 @@ class DistilledPagePrefsAndroid {
DistilledPagePrefs* distilled_page_prefs_ptr);
virtual ~DistilledPagePrefsAndroid();
static bool Register(JNIEnv* env);
+ void SetFontFamily(JNIEnv* env, jobject obj, jint font_family);
+ jint GetFontFamily(JNIEnv* env, jobject obj);
void SetTheme(JNIEnv* env, jobject obj, jint theme);
jint GetTheme(JNIEnv* env, jobject obj);
+
void AddObserver(JNIEnv* env, jobject obj, jlong obs);
void RemoveObserver(JNIEnv* env, jobject obj, jlong obs);
@@ -37,6 +40,8 @@ class DistilledPagePrefsObserverAndroid : public DistilledPagePrefs::Observer {
virtual ~DistilledPagePrefsObserverAndroid();
// DistilledPagePrefs::Observer implementation.
+ virtual void OnChangeFontFamily(
+ DistilledPagePrefs::FontFamily new_font_family) OVERRIDE;
virtual void OnChangeTheme(DistilledPagePrefs::Theme new_theme) OVERRIDE;
virtual void DestroyObserverAndroid(JNIEnv* env, jobject obj);
« no previous file with comments | « components/dom_distiller/core/distilled_page_prefs.cc ('k') | components/dom_distiller/core/distilled_page_prefs_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698