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

Unified Diff: android_webview/native/aw_contents.cc

Issue 1846653003: android webview: Keep zoom methods synchronous (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test compile Created 4 years, 9 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: android_webview/native/aw_contents.cc
diff --git a/android_webview/native/aw_contents.cc b/android_webview/native/aw_contents.cc
index 3c3b85be2471f676ebc845f9093e8d226c41b37a..179e93785af9d4e2378b25f03b4fbcd7e3250d2f 100644
--- a/android_webview/native/aw_contents.cc
+++ b/android_webview/native/aw_contents.cc
@@ -1015,6 +1015,13 @@ void AwContents::SetBackgroundColor(JNIEnv* env,
render_view_host_ext_->SetBackgroundColor(color);
}
+void AwContents::SynchronizeRendererScroll(
+ JNIEnv* env,
+ const base::android::JavaParamRef<jobject>& obj) {
+ DCHECK_CURRENTLY_ON(BrowserThread::UI);
+ browser_view_renderer_.SynchronizeRendererScroll();
+}
+
void AwContents::OnComputeScroll(JNIEnv* env,
const JavaParamRef<jobject>& obj,
jlong animation_time_millis) {

Powered by Google App Engine
This is Rietveld 408576698