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

Issue 1251323002: Plumb smooth scrolling in Chromium compositor (Closed)

Created:
5 years, 5 months ago by hush (inactive)
Modified:
5 years, 3 months ago
CC:
android-webview-reviews_chromium.org, cc-bugs_chromium.org, chromium-reviews, darin-cc_chromium.org, jam, jdduke+watch_chromium.org, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, tdresser+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Plumb smooth scrolling in Chromium compositor Android WebView uses android.widget.OverScroller#startScroll implement pageUp/pageDown. Since blink internally knows how to do a smooth scroll via page scale animation, WebView just need to send an IPC to blink with the target position and duration. The blink change to support smooth scroll: https://codereview.chromium.org/1251473003 BUG=378984 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/18c284495573fe54a6cbaad16beeb24029add9c4 Cr-Commit-Position: refs/heads/master@{#347770}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Use a blink page scale animation #

Total comments: 5

Patch Set 3 : var names #

Patch Set 4 : #

Total comments: 4

Patch Set 5 : rebase #

Patch Set 6 : javadoc #

Patch Set 7 : #

Patch Set 8 : Use AwRenderView(Host)Ext #

Total comments: 8

Patch Set 9 : rebase #

Patch Set 10 : rebase again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -127 lines) Patch
M android_webview/browser/browser_view_renderer.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M android_webview/browser/renderer_host/aw_render_view_host_ext.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M android_webview/browser/renderer_host/aw_render_view_host_ext.cc View 1 2 3 4 5 6 7 1 chunk +7 lines, -0 lines 0 comments Download
M android_webview/common/render_view_messages.h View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -5 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContents.java View 1 2 3 4 5 6 7 8 9 9 chunks +13 lines, -28 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwScrollOffsetManager.java View 1 2 3 4 5 6 7 6 chunks +10 lines, -46 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/AndroidScrollIntegrationTest.java View 3 chunks +2 lines, -7 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/AwScrollOffsetManagerTest.java View 1 2 3 4 5 6 7 13 chunks +14 lines, -23 lines 0 comments Download
M android_webview/native/aw_contents.h View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -0 lines 0 comments Download
M android_webview/native/aw_contents.cc View 1 2 3 4 5 6 7 8 9 1 chunk +13 lines, -0 lines 0 comments Download
M android_webview/renderer/aw_render_view_ext.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M android_webview/renderer/aw_render_view_ext.cc View 1 2 3 4 5 6 7 2 chunks +10 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewClient.java View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -8 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java View 1 2 3 4 5 6 7 8 9 3 chunks +7 lines, -5 lines 0 comments Download
M content/public/android/java/src/org/chromium/content_public/browser/GestureStateListener.java View 1 chunk +0 lines, -5 lines 0 comments Download

Messages

Total messages: 46 (10 generated)
hush (inactive)
PTAL! Sorry for the gigantic CL... don't know how to split it properly.
5 years, 5 months ago (2015-07-23 02:02:10 UTC) #2
jdduke (slow)
Thanks for pushing forward on this. Question before I dive into further review, is this ...
5 years, 5 months ago (2015-07-23 15:32:50 UTC) #3
hush (inactive)
okay... We've decided in https://codereview.chromium.org/1251473003/ to use page scale animation. ptal ps2
5 years, 5 months ago (2015-07-25 00:29:12 UTC) #4
hush (inactive)
On 2015/07/25 00:29:12, hush wrote: > okay... We've decided in https://codereview.chromium.org/1251473003/ to use page > ...
5 years, 5 months ago (2015-07-25 00:59:29 UTC) #5
jdduke (slow)
I still think it's a shame we have to hit the main thread to scroll ...
5 years, 4 months ago (2015-07-27 17:15:38 UTC) #6
skobes
On 2015/07/23 15:32:50, jdduke wrote: > A part of wonders if we could replace InputHandler::ScrollAnimated ...
5 years, 4 months ago (2015-07-27 20:33:15 UTC) #7
aelias_OOO_until_Jul13
On 2015/07/27 at 20:33:15, skobes wrote: > On 2015/07/23 15:32:50, jdduke wrote: > > A ...
5 years, 4 months ago (2015-07-27 23:03:43 UTC) #8
skobes
On 2015/07/27 23:03:43, aelias wrote: > On 2015/07/27 at 20:33:15, skobes wrote: > > On ...
5 years, 4 months ago (2015-07-27 23:25:53 UTC) #9
hush (inactive)
On 2015/07/27 17:15:38, jdduke wrote: > I still think it's a shame we have to ...
5 years, 4 months ago (2015-07-27 23:36:23 UTC) #10
hush (inactive)
> > I think it would be easier to do it this way, and reserve ...
5 years, 4 months ago (2015-07-27 23:41:57 UTC) #11
hush (inactive)
https://codereview.chromium.org/1251323002/diff/20001/content/browser/web_contents/web_contents_android.cc File content/browser/web_contents/web_contents_android.cc (right): https://codereview.chromium.org/1251323002/diff/20001/content/browser/web_contents/web_contents_android.cc#newcode399 content/browser/web_contents/web_contents_android.cc:399: jint targetY, On 2015/07/27 17:15:38, jdduke wrote: > Nit: ...
5 years, 4 months ago (2015-07-28 00:10:43 UTC) #12
jdduke (slow)
I don't own most of this code, but in general this looks good per offline ...
5 years, 4 months ago (2015-07-28 15:54:32 UTC) #13
hush (inactive)
https://codereview.chromium.org/1251323002/diff/60001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java File content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java (right): https://codereview.chromium.org/1251323002/diff/60001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java#newcode1357 content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java:1357: public void smoothScroll(int targetX, int targetY, long durationMs) { ...
5 years, 4 months ago (2015-07-28 21:36:47 UTC) #14
hush (inactive)
Okay.. adding more reviewers: boliu@: android_webview/ aelias@: cc/ sievers@: content/renderer/ and content/common/ tedchoc@: other things ...
5 years, 4 months ago (2015-07-28 21:54:07 UTC) #16
boliu
On 2015/07/28 21:54:07, hush wrote: > Okay.. adding more reviewers: > boliu@: android_webview/ > aelias@: ...
5 years, 4 months ago (2015-07-28 22:44:25 UTC) #17
hush (inactive)
On 2015/07/28 22:44:25, boliu wrote: > On 2015/07/28 21:54:07, hush wrote: > > Okay.. adding ...
5 years, 4 months ago (2015-07-29 23:16:58 UTC) #19
boliu
lgtm Although probably should hold this off until crbug.com/514783 is fixed. https://codereview.chromium.org/1251323002/diff/150001/android_webview/java/src/org/chromium/android_webview/AwScrollOffsetManager.java File android_webview/java/src/org/chromium/android_webview/AwScrollOffsetManager.java (right): ...
5 years, 4 months ago (2015-07-29 23:32:31 UTC) #20
Ted C
On 2015/07/29 23:32:31, boliu wrote: > lgtm > > Although probably should hold this off ...
5 years, 4 months ago (2015-07-29 23:40:06 UTC) #21
no sievers
https://codereview.chromium.org/1251323002/diff/150001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java File content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java (right): https://codereview.chromium.org/1251323002/diff/150001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java#newcode1252 content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java:1252: public boolean isScrollInProgress() { Is this broken now for ...
5 years, 4 months ago (2015-07-30 00:22:40 UTC) #22
jdduke (slow)
https://codereview.chromium.org/1251323002/diff/150001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java File content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java (right): https://codereview.chromium.org/1251323002/diff/150001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java#newcode1252 content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java:1252: public boolean isScrollInProgress() { On 2015/07/30 00:22:40, sievers wrote: ...
5 years, 4 months ago (2015-07-30 01:04:04 UTC) #23
aelias_OOO_until_Jul13
https://codereview.chromium.org/1251323002/diff/20001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java File content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java (right): https://codereview.chromium.org/1251323002/diff/20001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java#newcode1248 content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java:1248: return mTouchScrollInProgress || mPotentiallyActiveFlingCount > 0; On 2015/07/27 at ...
5 years, 4 months ago (2015-07-30 02:49:33 UTC) #24
jdduke (slow)
On 2015/07/30 02:49:33, aelias wrote: > This doesn't need to be fixed in this patch, ...
5 years, 4 months ago (2015-07-30 23:32:58 UTC) #25
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1251323002/150001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1251323002/150001
5 years, 4 months ago (2015-08-03 19:05:38 UTC) #27
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 4 months ago (2015-08-03 20:17:30 UTC) #29
boliu
https://codereview.chromium.org/1251323002/diff/150001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java File content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java (right): https://codereview.chromium.org/1251323002/diff/150001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java#newcode1252 content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java:1252: public boolean isScrollInProgress() { On 2015/07/30 02:49:33, aelias wrote: ...
5 years, 4 months ago (2015-08-12 18:43:46 UTC) #30
hush (inactive)
https://codereview.chromium.org/1251323002/diff/150001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java File content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java (right): https://codereview.chromium.org/1251323002/diff/150001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java#newcode1252 content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java:1252: public boolean isScrollInProgress() { On 2015/08/12 18:43:46, boliu wrote: ...
5 years, 3 months ago (2015-09-01 17:11:35 UTC) #31
boliu
https://codereview.chromium.org/1251323002/diff/150001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java File content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java (right): https://codereview.chromium.org/1251323002/diff/150001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java#newcode1252 content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java:1252: public boolean isScrollInProgress() { On 2015/09/01 17:11:35, hush wrote: ...
5 years, 3 months ago (2015-09-01 20:58:46 UTC) #32
hush (inactive)
https://codereview.chromium.org/1251323002/diff/150001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java File content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java (right): https://codereview.chromium.org/1251323002/diff/150001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java#newcode1252 content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java:1252: public boolean isScrollInProgress() { On 2015/09/01 20:58:46, boliu wrote: ...
5 years, 3 months ago (2015-09-01 22:43:36 UTC) #33
hush (inactive)
dcheng@: PTAL android_webview/common/render_view_messages.h aelias@: PTAL cc/
5 years, 3 months ago (2015-09-03 00:35:01 UTC) #35
hush (inactive)
On 2015/09/03 00:35:01, hush wrote: > dcheng@: PTAL android_webview/common/render_view_messages.h > > aelias@: PTAL cc/ sorry ...
5 years, 3 months ago (2015-09-03 00:37:20 UTC) #36
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1251323002/190001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1251323002/190001
5 years, 3 months ago (2015-09-03 00:37:41 UTC) #38
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-09-03 02:22:36 UTC) #40
dcheng
ipc changes lgtm
5 years, 3 months ago (2015-09-08 18:25:24 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1251323002/190001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1251323002/190001
5 years, 3 months ago (2015-09-08 18:28:55 UTC) #44
commit-bot: I haz the power
Committed patchset #10 (id:190001)
5 years, 3 months ago (2015-09-08 19:44:48 UTC) #45
commit-bot: I haz the power
5 years, 3 months ago (2015-09-08 19:45:22 UTC) #46
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/18c284495573fe54a6cbaad16beeb24029add9c4
Cr-Commit-Position: refs/heads/master@{#347770}

Powered by Google App Engine
This is Rietveld 408576698