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

Issue 1846653003: android webview: Keep zoom methods synchronous (Closed)

Created:
4 years, 8 months ago by boliu
Modified:
4 years, 8 months ago
Reviewers:
no sievers, dcheng
CC:
android-webview-reviews_chromium.org, chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

android webview: Keep zoom methods synchronous Zoom methods became asynchronous after r380563 since zoom is implemented by generating synthetic pinch zoom gestures. There is evidence now that some apps depend on synchronous zoom methods, so this brings back synchronous behavior for the zoom methods only. Add a synchronous UpdateState IPC, and send it only after sending down synthetic zoom events. Note real user input is still asynchronous. Re-enable the synchronous zoom test, but had to slightly relax a check due to rounding error. BUG=545628 Committed: https://crrev.com/ea69bdb503198d324b112319899ecc5d8d70bfbf Cr-Commit-Position: refs/heads/master@{#384667}

Patch Set 1 #

Patch Set 2 : sync ipc, fix test #

Patch Set 3 : test compile #

Total comments: 3

Patch Set 4 : ipc comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -8 lines) Patch
M android_webview/browser/browser_view_renderer.h View 1 chunk +1 line, -0 lines 0 comments Download
M android_webview/browser/browser_view_renderer.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContents.java View 2 chunks +2 lines, -0 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/AndroidScrollIntegrationTest.java View 1 3 chunks +8 lines, -8 lines 0 comments Download
M android_webview/native/aw_contents.h View 1 chunk +3 lines, -0 lines 0 comments Download
M android_webview/native/aw_contents.cc View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M content/browser/android/in_process/synchronous_compositor_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/android/in_process/synchronous_compositor_impl.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/android/synchronous_compositor_host.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/android/synchronous_compositor_host.cc View 1 1 chunk +11 lines, -0 lines 0 comments Download
M content/common/android/sync_compositor_messages.h View 1 2 3 2 chunks +9 lines, -0 lines 0 comments Download
M content/public/browser/android/synchronous_compositor.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/public/test/test_synchronous_compositor_android.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/android/synchronous_compositor_proxy.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M content/renderer/android/synchronous_compositor_proxy.cc View 1 2 chunks +11 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (7 generated)
boliu
PTAL dcheng for sync_compositor_messages.h sievers for everything else
4 years, 8 months ago (2016-03-31 02:48:52 UTC) #4
dcheng
ipc changes lgtm https://codereview.chromium.org/1846653003/diff/40001/content/common/android/sync_compositor_messages.h File content/common/android/sync_compositor_messages.h (right): https://codereview.chromium.org/1846653003/diff/40001/content/common/android/sync_compositor_messages.h#newcode183 content/common/android/sync_compositor_messages.h:183: IPC_SYNC_MESSAGE_ROUTED1_1(SyncCompositorMsg_SynchronousUpdateState, I think we need a ...
4 years, 8 months ago (2016-03-31 19:51:56 UTC) #5
dcheng
https://codereview.chromium.org/1846653003/diff/40001/content/common/android/sync_compositor_messages.h File content/common/android/sync_compositor_messages.h (right): https://codereview.chromium.org/1846653003/diff/40001/content/common/android/sync_compositor_messages.h#newcode183 content/common/android/sync_compositor_messages.h:183: IPC_SYNC_MESSAGE_ROUTED1_1(SyncCompositorMsg_SynchronousUpdateState, On 2016/03/31 at 19:51:56, dcheng wrote: > I ...
4 years, 8 months ago (2016-03-31 19:52:23 UTC) #6
boliu
https://codereview.chromium.org/1846653003/diff/40001/content/common/android/sync_compositor_messages.h File content/common/android/sync_compositor_messages.h (right): https://codereview.chromium.org/1846653003/diff/40001/content/common/android/sync_compositor_messages.h#newcode183 content/common/android/sync_compositor_messages.h:183: IPC_SYNC_MESSAGE_ROUTED1_1(SyncCompositorMsg_SynchronousUpdateState, On 2016/03/31 19:52:22, dcheng wrote: > On 2016/03/31 ...
4 years, 8 months ago (2016-03-31 20:16:34 UTC) #7
no sievers
lgtm
4 years, 8 months ago (2016-04-01 18:56:10 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1846653003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1846653003/60001
4 years, 8 months ago (2016-04-01 18:57:25 UTC) #11
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 8 months ago (2016-04-01 19:58:26 UTC) #13
commit-bot: I haz the power
4 years, 8 months ago (2016-04-01 20:00:01 UTC) #15
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/ea69bdb503198d324b112319899ecc5d8d70bfbf
Cr-Commit-Position: refs/heads/master@{#384667}

Powered by Google App Engine
This is Rietveld 408576698