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

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

Issue 1225183002: Font size in DomDistiller prefs syncs with local scaling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: keep focus when useFontScaling() is called, add tests Created 5 years, 5 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 de3928eccecf18b4d4a11f1a7dfc4c0e7bedb058..11649e9276072ef5bb61bca68644a0abbee313a1 100644
--- a/components/dom_distiller/core/distilled_page_prefs_android.h
+++ b/components/dom_distiller/core/distilled_page_prefs_android.h
@@ -24,6 +24,8 @@ class DistilledPagePrefsAndroid {
jint GetFontFamily(JNIEnv* env, jobject obj);
void SetTheme(JNIEnv* env, jobject obj, jint theme);
jint GetTheme(JNIEnv* env, jobject obj);
+ void SetFontScaling(JNIEnv* env, jobject obj, jfloat scaling);
+ jfloat GetFontScaling(JNIEnv* env, jobject obj);
void AddObserver(JNIEnv* env, jobject obj, jlong obs);
void RemoveObserver(JNIEnv* env, jobject obj, jlong obs);
@@ -43,6 +45,7 @@ class DistilledPagePrefsObserverAndroid : public DistilledPagePrefs::Observer {
void OnChangeFontFamily(
DistilledPagePrefs::FontFamily new_font_family) override;
void OnChangeTheme(DistilledPagePrefs::Theme new_theme) override;
+ void OnChangeFontScaling(float scaling) override;
virtual void DestroyObserverAndroid(JNIEnv* env, jobject obj);

Powered by Google App Engine
This is Rietveld 408576698