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

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

Issue 2202123002: Make WebView respond to device scale change (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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: content/browser/android/content_view_core_impl.cc
diff --git a/content/browser/android/content_view_core_impl.cc b/content/browser/android/content_view_core_impl.cc
index 0ea0aea9de0494e69ff800916624fa7136265ecf..2cc9d404c1add568cf8303dd6861be855db65146 100644
--- a/content/browser/android/content_view_core_impl.cc
+++ b/content/browser/android/content_view_core_impl.cc
@@ -919,6 +919,13 @@ void ContentViewCoreImpl::SetFocus(JNIEnv* env,
SetFocusInternal(focused);
}
+void ContentViewCoreImpl::SetDeviceScaleFactor(JNIEnv* env,
+ const JavaParamRef<jobject>& obj,
+ jfloat device_scale) {
+ DVLOG(1) << __FUNCTION__ << " " << device_scale;
+ dpi_scale_ = device_scale;
boliu 2016/08/02 18:09:27 this should probably do more than just set the val
Tima Vaisburd 2016/08/16 00:21:01 Did not quite get your idea. I think everything th
+}
+
void ContentViewCoreImpl::SetFocusInternal(bool focused) {
if (!GetRenderWidgetHostViewAndroid())
return;

Powered by Google App Engine
This is Rietveld 408576698