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

Issue 889803004: Add touchpad pinch zoom support to Blink (Closed)

Created:
5 years, 10 months ago by ccameron
Modified:
5 years, 10 months ago
CC:
blink-reviews, bokan
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Add touchpad pinch zoom support to Blink If a touchpad pinch zoom event is not handled, and the synthetic wheel event is not handled, then do a zoom based on the pich. Always mark the event as having been handled because otherwise, content will do a content-scale when the events are no longer handled (once this lands and is rolled, the content-scale can be removed from content). BUG=451559 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=189460

Patch Set 1 #

Total comments: 2

Patch Set 2 : Incorporate review feedback #

Total comments: 8

Patch Set 3 : Incorporate review feedback #

Total comments: 4

Patch Set 4 : Incorporate review feedback #

Total comments: 1

Patch Set 5 : Incorporate review feedback #

Patch Set 6 : Add tests #

Total comments: 4

Patch Set 7 : Update tests #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -4 lines) Patch
M LayoutTests/fast/events/gesture-pinch-fake-mouse-wheel.html View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 1 comment Download
A LayoutTests/fast/events/gesture-pinch-zoom.html View 1 2 3 4 5 6 1 chunk +50 lines, -0 lines 0 comments Download
A LayoutTests/fast/events/gesture-pinch-zoom-expected.txt View 1 2 3 4 5 6 1 chunk +22 lines, -0 lines 0 comments Download
M Source/core/frame/PinchViewport.h View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M Source/core/frame/PinchViewport.cpp View 1 2 3 4 1 chunk +30 lines, -0 lines 0 comments Download
M Source/core/page/ChromeClient.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/ChromeClientImpl.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/ChromeClientImpl.cpp View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M Source/web/WebViewImpl.h View 1 2 3 2 chunks +1 line, -1 line 0 comments Download
M Source/web/WebViewImpl.cpp View 1 2 3 1 chunk +13 lines, -1 line 0 comments Download

Messages

Total messages: 37 (12 generated)
ccameron
Almost-final part for enabling pinch zoom on Mac (the rest is cleanup -- again see ...
5 years, 10 months ago (2015-01-30 21:08:16 UTC) #2
aelias_OOO_until_Jul13
https://codereview.chromium.org/889803004/diff/1/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/889803004/diff/1/Source/web/WebViewImpl.cpp#newcode2155 Source/web/WebViewImpl.cpp:2155: setPageScaleFactor(oldPageScale * magnifyDelta); Please avoid this call to setPageScaleFactor, ...
5 years, 10 months ago (2015-01-30 21:21:40 UTC) #3
ccameron
Thanks -- updated. https://codereview.chromium.org/889803004/diff/1/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/889803004/diff/1/Source/web/WebViewImpl.cpp#newcode2155 Source/web/WebViewImpl.cpp:2155: setPageScaleFactor(oldPageScale * magnifyDelta); On 2015/01/30 21:21:40, ...
5 years, 10 months ago (2015-02-02 23:59:07 UTC) #4
aelias_OOO_until_Jul13
https://codereview.chromium.org/889803004/diff/20001/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/889803004/diff/20001/Source/web/WebViewImpl.cpp#newcode2160 Source/web/WebViewImpl.cpp:2160: setPageScaleFactorAndLocation(newPageScale, newLocation); Sorry, I noticed another issue. Please scroll ...
5 years, 10 months ago (2015-02-03 00:16:58 UTC) #5
bokan
https://codereview.chromium.org/889803004/diff/20001/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/889803004/diff/20001/Source/web/WebViewImpl.cpp#newcode2156 Source/web/WebViewImpl.cpp:2156: const FloatPoint anchor(pinchEvent.x, pinchEvent.y); Drive-by: Could you please put ...
5 years, 10 months ago (2015-02-03 00:45:13 UTC) #7
ccameron
Thanks --updated. https://codereview.chromium.org/889803004/diff/20001/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/889803004/diff/20001/Source/web/WebViewImpl.cpp#newcode2156 Source/web/WebViewImpl.cpp:2156: const FloatPoint anchor(pinchEvent.x, pinchEvent.y); On 2015/02/03 00:45:12, ...
5 years, 10 months ago (2015-02-03 02:29:09 UTC) #8
aelias_OOO_until_Jul13
https://codereview.chromium.org/889803004/diff/20001/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/889803004/diff/20001/Source/web/WebViewImpl.cpp#newcode2156 Source/web/WebViewImpl.cpp:2156: const FloatPoint anchor(pinchEvent.x, pinchEvent.y); On 2015/02/03 02:29:08, ccameron wrote: ...
5 years, 10 months ago (2015-02-03 02:37:14 UTC) #9
bokan
https://codereview.chromium.org/889803004/diff/20001/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/889803004/diff/20001/Source/web/WebViewImpl.cpp#newcode2156 Source/web/WebViewImpl.cpp:2156: const FloatPoint anchor(pinchEvent.x, pinchEvent.y); On 2015/02/03 02:29:08, ccameron wrote: ...
5 years, 10 months ago (2015-02-03 03:05:16 UTC) #10
ccameron
Shifted things around (liking this version better). Ptal. https://codereview.chromium.org/889803004/diff/20001/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/889803004/diff/20001/Source/web/WebViewImpl.cpp#newcode2156 Source/web/WebViewImpl.cpp:2156: const ...
5 years, 10 months ago (2015-02-03 17:03:29 UTC) #12
ccameron
(re-uploaded, last upload was messed up)
5 years, 10 months ago (2015-02-03 17:07:21 UTC) #14
aelias_OOO_until_Jul13
lgtm modulo comment below https://codereview.chromium.org/889803004/diff/100001/Source/core/frame/PinchViewport.cpp File Source/core/frame/PinchViewport.cpp (right): https://codereview.chromium.org/889803004/diff/100001/Source/core/frame/PinchViewport.cpp#newcode243 Source/core/frame/PinchViewport.cpp:243: FrameView* view = mainFrame()->view(); I'm ...
5 years, 10 months ago (2015-02-03 19:10:11 UTC) #15
bokan
lgtm
5 years, 10 months ago (2015-02-03 20:17:00 UTC) #16
ccameron
Thanks!
5 years, 10 months ago (2015-02-03 21:49:17 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/889803004/120001
5 years, 10 months ago (2015-02-03 22:18:20 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: blink_presubmit on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/blink_presubmit/builds/25656)
5 years, 10 months ago (2015-02-03 22:31:24 UTC) #21
ccameron
Adding rbyers for Source/core owner.
5 years, 10 months ago (2015-02-03 22:32:47 UTC) #23
Rick Byers
On 2015/02/03 22:32:47, ccameron wrote: > Adding rbyers for Source/core owner. Tests?
5 years, 10 months ago (2015-02-03 22:35:06 UTC) #24
ccameron
Tests! (updated)
5 years, 10 months ago (2015-02-04 00:07:44 UTC) #26
Rick Byers
Thanks! Source/core LGTM Just a couple nits on the test - feel free to land ...
5 years, 10 months ago (2015-02-04 01:31:41 UTC) #27
ccameron
Thanks -- updated. https://codereview.chromium.org/889803004/diff/140001/LayoutTests/fast/events/gesture-pinch-zoom.html File LayoutTests/fast/events/gesture-pinch-zoom.html (right): https://codereview.chromium.org/889803004/diff/140001/LayoutTests/fast/events/gesture-pinch-zoom.html#newcode3 LayoutTests/fast/events/gesture-pinch-zoom.html:3: <div onmousewheel="mouseWheel(event)" style="margin: 0px 0; width: ...
5 years, 10 months ago (2015-02-04 02:01:03 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/889803004/160001
5 years, 10 months ago (2015-02-04 02:01:32 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/41183)
5 years, 10 months ago (2015-02-04 04:27:49 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/889803004/160001
5 years, 10 months ago (2015-02-04 05:22:39 UTC) #35
Rick Byers
Thanks! still LGTM https://codereview.chromium.org/889803004/diff/160001/LayoutTests/fast/events/gesture-pinch-fake-mouse-wheel.html File LayoutTests/fast/events/gesture-pinch-fake-mouse-wheel.html (right): https://codereview.chromium.org/889803004/diff/160001/LayoutTests/fast/events/gesture-pinch-fake-mouse-wheel.html#newcode17 LayoutTests/fast/events/gesture-pinch-fake-mouse-wheel.html:17: shouldBeCloseTo('event.deltaY', 100 * Math.log(1 / testScale), ...
5 years, 10 months ago (2015-02-04 05:26:47 UTC) #36
commit-bot: I haz the power
5 years, 10 months ago (2015-02-04 06:17:43 UTC) #37
Message was sent while issue was closed.
Committed patchset #7 (id:160001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=189460

Powered by Google App Engine
This is Rietveld 408576698