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

Issue 1879103002: Convert main-thread overscroll parameters into viewport space. (Closed)

Created:
4 years, 8 months ago by bokan
Modified:
4 years, 8 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, dtapuska+blinkwatch_chromium.org, jam, dtapuska+chromiumwatch_chromium.org, blink-reviews, dglazkov+blink, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, blink-reviews-api_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Convert main-thread overscroll parameters into viewport space. The overscroll functions in the Browser expect these values to be in the viewport coordinate space. i.e. If the page is scaled by a factor of 2, if the user moves their finger by 10px and all of it is consumed by overscroll, the overscroll method should get back a delta of 10px, even though we tried scrolling the root frame by 5px. More generally, coordinates coming out of Blink should almost always be in viewport/renderer/widget coordinates since it's most useful in the renderer and it's difficult for client code to compensate for the visual viewport transform since that's an internal implementation detail of Blink (mostly). Also cleaned up the naming of these parameters through the call chain. BUG=602476 Committed: https://crrev.com/e53a10f9b029bf4367567a170fc77d6d6d42fe91 Cr-Commit-Position: refs/heads/master@{#387154}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Majid's review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -29 lines) Patch
M content/renderer/input/render_widget_input_handler.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/input/render_widget_input_handler.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M content/renderer/render_widget.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/render_widget.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/input/EventHandler.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/input/EventHandler.cpp View 1 2 chunks +13 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/page/ChromeClient.h View 1 chunk +9 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/ChromeClientImpl.h View 1 chunk +5 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/ChromeClientImpl.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 chunk +6 lines, -5 lines 0 comments Download
M third_party/WebKit/public/web/WebWidgetClient.h View 1 chunk +7 lines, -2 lines 0 comments Download

Messages

Total messages: 24 (11 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1879103002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1879103002/1
4 years, 8 months ago (2016-04-12 18:47:00 UTC) #4
bokan
+Majid, since I think you and I originally reviewed these patches.
4 years, 8 months ago (2016-04-12 18:47:44 UTC) #5
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_android on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/cast_shell_android/builds/49193)
4 years, 8 months ago (2016-04-12 18:55:04 UTC) #7
bokan
gentle ping :)
4 years, 8 months ago (2016-04-13 17:26:34 UTC) #8
majidvp
lgtm with nits https://codereview.chromium.org/1879103002/diff/1/third_party/WebKit/Source/core/input/EventHandler.cpp File third_party/WebKit/Source/core/input/EventHandler.cpp (right): https://codereview.chromium.org/1879103002/diff/1/third_party/WebKit/Source/core/input/EventHandler.cpp#newcode2376 third_party/WebKit/Source/core/input/EventHandler.cpp:2376: void EventHandler::handleOverscroll(const ScrollResult& scrollResult, const FloatPoint& ...
4 years, 8 months ago (2016-04-13 18:20:38 UTC) #9
bokan
https://codereview.chromium.org/1879103002/diff/1/third_party/WebKit/Source/core/input/EventHandler.cpp File third_party/WebKit/Source/core/input/EventHandler.cpp (right): https://codereview.chromium.org/1879103002/diff/1/third_party/WebKit/Source/core/input/EventHandler.cpp#newcode2376 third_party/WebKit/Source/core/input/EventHandler.cpp:2376: void EventHandler::handleOverscroll(const ScrollResult& scrollResult, const FloatPoint& positionInRootFrame, const FloatSize& ...
4 years, 8 months ago (2016-04-13 19:43:50 UTC) #10
bokan
+nasko@ for content/ +rbyers@ for WebKit/public
4 years, 8 months ago (2016-04-13 19:45:01 UTC) #12
bokan
-nasko@/+nick@ for content/
4 years, 8 months ago (2016-04-13 20:08:20 UTC) #15
Rick Byers
public LGTM
4 years, 8 months ago (2016-04-13 20:46:49 UTC) #16
ncarter (slow)
content lgtm
4 years, 8 months ago (2016-04-13 22:15:31 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1879103002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1879103002/20001
4 years, 8 months ago (2016-04-13 22:22:58 UTC) #20
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 8 months ago (2016-04-13 23:48:44 UTC) #22
commit-bot: I haz the power
4 years, 8 months ago (2016-04-13 23:49:43 UTC) #24
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/e53a10f9b029bf4367567a170fc77d6d6d42fe91
Cr-Commit-Position: refs/heads/master@{#387154}

Powered by Google App Engine
This is Rietveld 408576698