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

Issue 739013008: Explicitly suppress scrolling for wheel events that will trigger zooming (Closed)

Created:
6 years ago by lanwei
Modified:
5 years, 10 months ago
CC:
chromium-reviews, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, jdduke+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Explicitly suppress scrolling for wheel events that will trigger zooming We added a flag in Blink to decide if Ctrl-wheel-scroll should scroll or zoom, and now we use this flag in chromium code. This patch is part of a series: patch #1: https://codereview.chromium.org/759073002 patch #2: This CL patch #3: https://codereview.chromium.org/768443002 BUG=397027, 378755 Committed: https://crrev.com/b3361bcdd3766a67c702c19781154c895fee75ca Cr-Commit-Position: refs/heads/master@{#309472}

Patch Set 1 : #

Total comments: 21

Patch Set 2 : #

Total comments: 10

Patch Set 3 : Change comments #

Total comments: 4

Patch Set 4 : format style change #

Patch Set 5 : Unit tests #

Total comments: 10

Patch Set 6 : Add unit tests #

Total comments: 6

Patch Set 7 : Unittests #

Total comments: 4

Patch Set 8 : #

Total comments: 1

Patch Set 9 : #

Patch Set 10 : rebase #

Patch Set 11 : Modify event_sender.cc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+191 lines, -43 lines) Patch
M content/browser/renderer_host/input/input_router_impl.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -5 lines 0 comments Download
M content/browser/renderer_host/input/input_router_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 8 chunks +34 lines, -6 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura_unittest.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +71 lines, -9 lines 0 comments Download
M content/browser/renderer_host/web_input_event_aura.cc View 1 2 3 4 5 6 7 1 chunk +11 lines, -2 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -7 lines 0 comments Download
M content/browser/web_contents/web_contents_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +7 lines, -3 lines 0 comments Download
M content/common/input/synthetic_web_input_event_builders.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M content/common/input/web_input_event_traits.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +5 lines, -3 lines 0 comments Download
M content/common/input/web_input_event_traits_unittest.cc View 1 2 3 4 5 2 chunks +36 lines, -0 lines 0 comments Download
M content/renderer/input/input_handler_proxy.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -3 lines 0 comments Download
M content/renderer/input/input_handler_proxy_unittest.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M content/shell/renderer/test_runner/event_sender.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +9 lines, -3 lines 0 comments Download

Messages

Total messages: 47 (15 generated)
lanwei
6 years ago (2014-11-26 23:27:11 UTC) #5
tdresser
This should have some chrome side testing. https://codereview.chromium.org/739013008/diff/60001/content/browser/renderer_host/web_input_event_aura.cc File content/browser/renderer_host/web_input_event_aura.cc (right): https://codereview.chromium.org/739013008/diff/60001/content/browser/renderer_host/web_input_event_aura.cc#newcode200 content/browser/renderer_host/web_input_event_aura.cc:200: #if !defined(OS_MACOSX) ...
6 years ago (2014-11-27 15:06:08 UTC) #6
Rick Byers
You should also update web_input_event_traits.cc to accomodate this new bit. At least ApppendEventDetails and CanCoalesce. ...
6 years ago (2014-11-27 17:31:32 UTC) #7
Rick Byers
On 2014/11/27 17:31:32, Rick Byers wrote: > You should also update web_input_event_traits.cc to accomodate this ...
6 years ago (2014-11-27 17:32:54 UTC) #8
lanwei
https://codereview.chromium.org/739013008/diff/60001/content/browser/renderer_host/web_input_event_aura.cc File content/browser/renderer_host/web_input_event_aura.cc (right): https://codereview.chromium.org/739013008/diff/60001/content/browser/renderer_host/web_input_event_aura.cc#newcode200 content/browser/renderer_host/web_input_event_aura.cc:200: #if !defined(OS_MACOSX) On 2014/11/27 15:06:08, tdresser wrote: > Are ...
6 years ago (2014-12-02 06:28:54 UTC) #9
tdresser
https://codereview.chromium.org/739013008/diff/80001/content/browser/renderer_host/input/input_router_impl.cc File content/browser/renderer_host/input/input_router_impl.cc (right): https://codereview.chromium.org/739013008/diff/80001/content/browser/renderer_host/input/input_router_impl.cc#newcode460 content/browser/renderer_host/input/input_router_impl.cc:460: // Avoid touchpad pinch on Mac OS to scroll. ...
6 years ago (2014-12-02 15:37:38 UTC) #10
lanwei
https://codereview.chromium.org/739013008/diff/80001/content/browser/renderer_host/input/input_router_impl.cc File content/browser/renderer_host/input/input_router_impl.cc (right): https://codereview.chromium.org/739013008/diff/80001/content/browser/renderer_host/input/input_router_impl.cc#newcode460 content/browser/renderer_host/input/input_router_impl.cc:460: // Avoid touchpad pinch on Mac OS to scroll. ...
6 years ago (2014-12-02 22:28:06 UTC) #11
tdresser
https://codereview.chromium.org/739013008/diff/100001/content/browser/renderer_host/web_input_event_aura.cc File content/browser/renderer_host/web_input_event_aura.cc (right): https://codereview.chromium.org/739013008/diff/100001/content/browser/renderer_host/web_input_event_aura.cc#newcode202 content/browser/renderer_host/web_input_event_aura.cc:202: bool from_mouseWheel = !webkit_event.hasPreciseScrollingDeltas; Sorry, I used the wrong ...
6 years ago (2014-12-03 13:45:05 UTC) #12
tdresser
On 2014/12/03 13:45:05, tdresser wrote: > https://codereview.chromium.org/739013008/diff/100001/content/browser/renderer_host/web_input_event_aura.cc > File content/browser/renderer_host/web_input_event_aura.cc (right): > > https://codereview.chromium.org/739013008/diff/100001/content/browser/renderer_host/web_input_event_aura.cc#newcode202 > ...
6 years ago (2014-12-03 13:45:48 UTC) #13
tdresser
On 2014/12/03 13:45:48, tdresser wrote: > On 2014/12/03 13:45:05, tdresser wrote: > > > https://codereview.chromium.org/739013008/diff/100001/content/browser/renderer_host/web_input_event_aura.cc ...
6 years ago (2014-12-03 13:46:32 UTC) #14
lanwei
6 years ago (2014-12-03 21:05:07 UTC) #16
jdduke (slow)
Rubberstamp lgtm for content/browser/renderer_host/input and content/common/input, with nit. https://codereview.chromium.org/739013008/diff/100001/content/browser/renderer_host/web_input_event_aura.cc File content/browser/renderer_host/web_input_event_aura.cc (right): https://codereview.chromium.org/739013008/diff/100001/content/browser/renderer_host/web_input_event_aura.cc#newcode204 content/browser/renderer_host/web_input_event_aura.cc:204: && ...
6 years ago (2014-12-03 21:37:10 UTC) #17
lanwei
sievers@chromium.org: Please review changes in Can you please take a look at content/browser/renderer_host/web_input_event_aura.cc content/browser/web_contents/web_contents_impl.cc content/shell/renderer/test_runner/event_sender.cc? ...
6 years ago (2014-12-03 22:06:44 UTC) #19
no sievers
lgtm
6 years ago (2014-12-03 22:11:23 UTC) #20
Rick Byers
On 2014/11/27 17:32:54, Rick Byers wrote: > Also, again please update the CL title and ...
6 years ago (2014-12-05 18:26:35 UTC) #21
lanwei
Rick, can you please take a look at these, where do you think it is ...
6 years ago (2014-12-10 13:56:18 UTC) #24
Rick Byers
Sorry for the delay. This is looking really good, just a couple more minor suggestions. ...
6 years ago (2014-12-12 22:20:29 UTC) #26
lanwei
Rick, can you please take a look at the unit tests that I added. Thank ...
6 years ago (2014-12-17 23:16:41 UTC) #27
lanwei
Rick, I change the mouseevent type in the unit test, now it works, can you ...
6 years ago (2014-12-18 03:10:57 UTC) #29
lanwei
Rick, I change the mouseevent type in the unit test, now it works, can you ...
6 years ago (2014-12-18 03:11:00 UTC) #30
Rick Byers
Great! One more little bit of missing test coverage and this is ready to land... ...
6 years ago (2014-12-18 15:18:14 UTC) #31
lanwei
Rick, do you think the unit tests have a good coverage right now? Thank you. ...
6 years ago (2014-12-19 02:55:44 UTC) #32
Rick Byers
Looks great, just one little bug https://codereview.chromium.org/739013008/diff/260001/content/browser/renderer_host/render_widget_host_view_aura_unittest.cc File content/browser/renderer_host/render_widget_host_view_aura_unittest.cc (right): https://codereview.chromium.org/739013008/diff/260001/content/browser/renderer_host/render_widget_host_view_aura_unittest.cc#newcode3033 content/browser/renderer_host/render_widget_host_view_aura_unittest.cc:3033: // Ack'ing the ...
6 years ago (2014-12-19 15:44:46 UTC) #33
lanwei
https://codereview.chromium.org/739013008/diff/260001/content/browser/renderer_host/render_widget_host_view_aura_unittest.cc File content/browser/renderer_host/render_widget_host_view_aura_unittest.cc (right): https://codereview.chromium.org/739013008/diff/260001/content/browser/renderer_host/render_widget_host_view_aura_unittest.cc#newcode3033 content/browser/renderer_host/render_widget_host_view_aura_unittest.cc:3033: // Ack'ing the outstanding event should flush the pending ...
6 years ago (2014-12-20 02:32:03 UTC) #36
Rick Byers
Thanks, LGTM with nit I only re-reviewed the unit test, let me know if there ...
6 years ago (2014-12-20 21:44:54 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/739013008/340001
6 years ago (2014-12-22 17:00:16 UTC) #39
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/10798)
6 years ago (2014-12-22 21:20:14 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/739013008/360001
6 years ago (2014-12-22 21:56:17 UTC) #43
commit-bot: I haz the power
Committed patchset #10 (id:360001)
6 years ago (2014-12-22 22:37:33 UTC) #44
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/b3361bcdd3766a67c702c19781154c895fee75ca Cr-Commit-Position: refs/heads/master@{#309472}
6 years ago (2014-12-22 22:38:43 UTC) #45
Yuta Kitamura
On 2014/12/22 22:38:43, I haz the power (commit-bot) wrote: > Patchset 10 (id:??) landed as ...
6 years ago (2014-12-23 03:48:19 UTC) #46
Yuta Kitamura
6 years ago (2014-12-23 03:51:16 UTC) #47
Message was sent while issue was closed.
A revert of this CL (patchset #10 id:360001) has been created in
https://codereview.chromium.org/819993002/ by yutak@chromium.org.

The reason for reverting is: Broke layout tests that use wheel events:
http://build.chromium.org/p/chromium.webkit/builders/WebKit%20XP/builds/15918.

Powered by Google App Engine
This is Rietveld 408576698