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

Unified Diff: content/browser/android/content_view_core_impl.h

Issue 2202123002: Make WebView respond to device scale change (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Made WindowAndroid::content_offset() device scale independent, restored AwContents.onSizeChanged(),… 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: content/browser/android/content_view_core_impl.h
diff --git a/content/browser/android/content_view_core_impl.h b/content/browser/android/content_view_core_impl.h
index b1154103f59ad39699d987b00ad81936ec28af0f..0763b2c468f4e912416ab8ee50d510f490d1afa4 100644
--- a/content/browser/android/content_view_core_impl.h
+++ b/content/browser/android/content_view_core_impl.h
@@ -228,6 +228,9 @@ class ContentViewCoreImpl : public ContentViewCore,
void SetFocus(JNIEnv* env,
const base::android::JavaParamRef<jobject>& obj,
jboolean focused);
+ void SetDeviceScaleFactor(JNIEnv* env,
+ const base::android::JavaParamRef<jobject>& obj,
+ jfloat device_scale);
jint GetBackgroundColor(JNIEnv* env, jobject obj);
void SetAllowJavascriptInterfacesInspection(
@@ -459,7 +462,7 @@ class ContentViewCoreImpl : public ContentViewCore,
float page_scale_;
// Device scale factor.
- const float dpi_scale_;
+ float dpi_scale_;
// Observer to notify of lifecyle changes.
base::ObserverList<ContentViewCoreImplObserver> observer_list_;

Powered by Google App Engine
This is Rietveld 408576698