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

Issue 22859012: Add support for DOM Level 3 WheelEvent (Closed)

Created:
7 years, 4 months ago by do-not-use
Modified:
7 years, 4 months ago
CC:
blink-reviews, eae+blinkwatch, dglazkov+blink, f(malita), adamk+blink_chromium.org, pdr, Stephen Chennney
Visibility:
Public.

Description

Add support for DOM Level 3 WheelEvent Add support for DOM Level 3 WheelEvent: http://www.w3.org/TR/DOM-Level-3-Events/#events-WheelEvent Full support is implemented except for the DeltaZ property which had no equivalent in the previous 'mousewheel' event. Firefox and IE10 already support it so it increases our cross-browser compatibility. The non-standard 'mousewheel' event is still supported for backward compatibility. BUG=227454 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=156404

Patch Set 1 #

Patch Set 2 : Simplify test case #

Total comments: 17

Patch Set 3 : Take feedback into consideration #

Total comments: 2

Patch Set 4 : Keep TickMultiplier as it was #

Total comments: 2

Patch Set 5 : Rename prefixedType() to legacyType() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+291 lines, -34 lines) Patch
A LayoutTests/fast/events/wheelevent-basic.html View 1 2 3 1 chunk +73 lines, -0 lines 0 comments Download
A LayoutTests/fast/events/wheelevent-basic-expected.txt View 1 2 1 chunk +24 lines, -0 lines 0 comments Download
A LayoutTests/fast/events/wheelevent-constructor.html View 1 2 1 chunk +29 lines, -0 lines 0 comments Download
A LayoutTests/fast/events/wheelevent-constructor-expected.txt View 1 2 1 chunk +21 lines, -0 lines 0 comments Download
A LayoutTests/fast/events/wheelevent-mousewheel-interaction.html View 1 2 3 1 chunk +55 lines, -0 lines 0 comments Download
A LayoutTests/fast/events/wheelevent-mousewheel-interaction-expected.txt View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
M Source/core/dom/Document.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/dom/Document.idl View 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/dom/Element.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/dom/Element.idl View 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/dom/EventNames.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/dom/EventTarget.cpp View 1 2 3 4 3 chunks +6 lines, -3 lines 0 comments Download
M Source/core/dom/Node.cpp View 1 2 4 chunks +10 lines, -4 lines 0 comments Download
M Source/core/dom/WheelEvent.h View 1 2 3 4 chunks +15 lines, -6 lines 0 comments Download
M Source/core/dom/WheelEvent.cpp View 1 2 3 6 chunks +15 lines, -8 lines 0 comments Download
M Source/core/dom/WheelEvent.idl View 1 2 2 chunks +9 lines, -2 lines 0 comments Download
M Source/core/html/HTMLAttributeNames.in View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/HTMLElement.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/shadow/SpinButtonElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/page/DOMWindow.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/page/DOMWindow.cpp View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/page/Window.idl View 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/svg/SVGElementInstance.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/svg/SVGElementInstance.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/svg/SVGElementInstance.idl View 2 chunks +2 lines, -1 line 0 comments Download
M Source/web/WebInputEventConversion.cpp View 1 2 3 1 chunk +3 lines, -4 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
do-not-use
7 years, 4 months ago (2013-08-15 13:32:27 UTC) #1
arv (Not doing code reviews)
https://codereview.chromium.org/22859012/diff/4001/LayoutTests/fast/events/wheelevent-basic.html File LayoutTests/fast/events/wheelevent-basic.html (right): https://codereview.chromium.org/22859012/diff/4001/LayoutTests/fast/events/wheelevent-basic.html#newcode13 LayoutTests/fast/events/wheelevent-basic.html:13: shouldBe('WheelEvent.__proto__', 'MouseEvent'); Also shouldBe('WheelEvent.prototype.__proto__', 'MouseEvent.prototype'); https://codereview.chromium.org/22859012/diff/4001/LayoutTests/fast/events/wheelevent-basic.html#newcode14 LayoutTests/fast/events/wheelevent-basic.html:14: shouldBe('WheelEvent.DOM_DELTA_PIXEL', '0x00'); ...
7 years, 4 months ago (2013-08-15 14:05:44 UTC) #2
do-not-use
https://codereview.chromium.org/22859012/diff/4001/Source/core/dom/WheelEvent.idl File Source/core/dom/WheelEvent.idl (right): https://codereview.chromium.org/22859012/diff/4001/Source/core/dom/WheelEvent.idl#newcode31 Source/core/dom/WheelEvent.idl:31: [InitializedByEventConstructor] readonly attribute long deltaX; These should be "double", ...
7 years, 4 months ago (2013-08-16 09:57:16 UTC) #3
do-not-use
https://codereview.chromium.org/22859012/diff/4001/LayoutTests/fast/events/wheelevent-basic.html File LayoutTests/fast/events/wheelevent-basic.html (right): https://codereview.chromium.org/22859012/diff/4001/LayoutTests/fast/events/wheelevent-basic.html#newcode13 LayoutTests/fast/events/wheelevent-basic.html:13: shouldBe('WheelEvent.__proto__', 'MouseEvent'); On 2013/08/15 14:05:44, arv wrote: > Also ...
7 years, 4 months ago (2013-08-16 12:02:49 UTC) #4
arv (Not doing code reviews)
Peter, didn't you work on our mousewheel impl before? If not please ignore ;-) What ...
7 years, 4 months ago (2013-08-16 14:19:26 UTC) #5
do-not-use
https://codereview.chromium.org/22859012/diff/4001/LayoutTests/fast/events/wheelevent-basic.html File LayoutTests/fast/events/wheelevent-basic.html (right): https://codereview.chromium.org/22859012/diff/4001/LayoutTests/fast/events/wheelevent-basic.html#newcode34 LayoutTests/fast/events/wheelevent-basic.html:34: var expectedDeltaX = deltaX * tickMultiplier; On 2013/08/16 14:19:26, ...
7 years, 4 months ago (2013-08-16 15:14:32 UTC) #6
do-not-use
https://codereview.chromium.org/22859012/diff/12001/LayoutTests/fast/events/wheelevent-mousewheel-interaction.html File LayoutTests/fast/events/wheelevent-mousewheel-interaction.html (right): https://codereview.chromium.org/22859012/diff/12001/LayoutTests/fast/events/wheelevent-mousewheel-interaction.html#newcode14 LayoutTests/fast/events/wheelevent-mousewheel-interaction.html:14: setTimeout(finishJSTest, 0); On 2013/08/16 14:19:27, arv wrote: > Is ...
7 years, 4 months ago (2013-08-16 15:24:10 UTC) #7
arv (Not doing code reviews)
On 2013/08/16 15:14:32, Christophe Dumez wrote: > https://codereview.chromium.org/22859012/diff/4001/LayoutTests/fast/events/wheelevent-basic.html > File LayoutTests/fast/events/wheelevent-basic.html (right): > > https://codereview.chromium.org/22859012/diff/4001/LayoutTests/fast/events/wheelevent-basic.html#newcode34 ...
7 years, 4 months ago (2013-08-16 16:08:16 UTC) #8
do-not-use
On 2013/08/16 14:19:26, arv wrote: > Peter, didn't you work on our mousewheel impl before? ...
7 years, 4 months ago (2013-08-16 17:16:32 UTC) #9
do-not-use
https://codereview.chromium.org/22859012/diff/4001/LayoutTests/fast/events/wheelevent-basic.html File LayoutTests/fast/events/wheelevent-basic.html (right): https://codereview.chromium.org/22859012/diff/4001/LayoutTests/fast/events/wheelevent-basic.html#newcode34 LayoutTests/fast/events/wheelevent-basic.html:34: var expectedDeltaX = deltaX * tickMultiplier; On 2013/08/16 15:14:32, ...
7 years, 4 months ago (2013-08-16 17:32:33 UTC) #10
arv (Not doing code reviews)
On 2013/08/16 17:16:32, Christophe Dumez wrote: > On 2013/08/16 14:19:26, arv wrote: > > Peter, ...
7 years, 4 months ago (2013-08-16 17:40:01 UTC) #11
arv (Not doing code reviews)
On 2013/08/16 17:32:33, Christophe Dumez wrote: > https://codereview.chromium.org/22859012/diff/4001/LayoutTests/fast/events/wheelevent-basic.html > File LayoutTests/fast/events/wheelevent-basic.html (right): > > https://codereview.chromium.org/22859012/diff/4001/LayoutTests/fast/events/wheelevent-basic.html#newcode34 ...
7 years, 4 months ago (2013-08-16 17:52:31 UTC) #12
do-not-use
Ok, I reverted my changes to the TickMultiplier from this CL. We can improve this ...
7 years, 4 months ago (2013-08-16 18:29:42 UTC) #13
arv (Not doing code reviews)
LGTM Sorry about all the churn. https://codereview.chromium.org/22859012/diff/57001/Source/core/dom/EventTarget.cpp File Source/core/dom/EventTarget.cpp (right): https://codereview.chromium.org/22859012/diff/57001/Source/core/dom/EventTarget.cpp#newcode179 Source/core/dom/EventTarget.cpp:179: static AtomicString prefixedType(const ...
7 years, 4 months ago (2013-08-16 18:37:45 UTC) #14
do-not-use
On 2013/08/16 18:37:45, arv wrote: > LGTM > > Sorry about all the churn. No ...
7 years, 4 months ago (2013-08-16 18:46:14 UTC) #15
do-not-use
This received enough support on the mailing list. LGTMs from abarth, jochen and dglazkov. Could ...
7 years, 4 months ago (2013-08-19 19:52:42 UTC) #16
jochen (gone - plz use gerrit)
lgtm
7 years, 4 months ago (2013-08-20 08:15:37 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@sisa.samsung.com/22859012/13027
7 years, 4 months ago (2013-08-20 09:08:20 UTC) #18
commit-bot: I haz the power
7 years, 4 months ago (2013-08-20 19:06:50 UTC) #19
Message was sent while issue was closed.
Change committed as 156404

Powered by Google App Engine
This is Rietveld 408576698