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

Issue 727593003: Implement MouseEvent buttons attribute. (Closed)

Created:
6 years, 1 month ago by zino
Modified:
6 years ago
Reviewers:
haraken, Rick Byers
CC:
blink-reviews, eae+blinkwatch, dglazkov+blink, arv+blink, Inactive, blink-reviews-events_chromium.org, tkent
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Implement MouseEvent buttons attribute. During any mouse events, buttons must be used to indicate which combination of mouse buttons are currently being pressed, expressed as a bitmask. Intent to implement and ship: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/tMvB-8CrE3M Spec: http://www.w3.org/TR/DOM-Level-3-Events/#widl-MouseEvent-buttons Dependency in chromium side (for test): https://codereview.chromium.org/732433002/ BUG=276941 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=186490

Patch Set 1 : #

Total comments: 22

Patch Set 2 : #

Patch Set 3 : #

Total comments: 24

Patch Set 4 : addressed comments #

Total comments: 16

Patch Set 5 : rebase #

Total comments: 2

Patch Set 6 : should be 2 in contextmenu event. #

Patch Set 7 : should be 0 in contextmenu event #

Total comments: 19

Patch Set 8 : fixed #

Total comments: 6

Patch Set 9 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+415 lines, -66 lines) Patch
M LayoutTests/fast/events/constructors/mouse-event-constructor.html View 1 2 3 4 5 3 chunks +45 lines, -14 lines 0 comments Download
M LayoutTests/fast/events/constructors/mouse-event-constructor-expected.txt View 1 2 3 4 5 3 chunks +37 lines, -14 lines 0 comments Download
A LayoutTests/fast/events/mouse-event-buttons-attribute.html View 1 2 3 4 5 6 7 8 1 chunk +153 lines, -0 lines 0 comments Download
A LayoutTests/fast/events/mouse-event-buttons-attribute-expected.txt View 1 2 3 4 5 6 7 1 chunk +73 lines, -0 lines 0 comments Download
M Source/core/events/MouseEvent.h View 1 2 3 4 5 6 7 5 chunks +8 lines, -3 lines 0 comments Download
M Source/core/events/MouseEvent.cpp View 1 2 3 4 5 6 7 8 chunks +27 lines, -6 lines 0 comments Download
M Source/core/events/MouseEvent.idl View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/events/WheelEvent.h View 1 2 3 4 5 6 7 2 chunks +3 lines, -3 lines 0 comments Download
M Source/core/events/WheelEvent.cpp View 1 2 3 4 5 6 7 2 chunks +5 lines, -4 lines 0 comments Download
M Source/core/page/EventHandler.cpp View 1 2 3 4 5 6 7 7 chunks +22 lines, -18 lines 0 comments Download
M Source/platform/PlatformEvent.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M Source/platform/RuntimeEnabledFeatures.in View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/WebInputEventConversion.cpp View 1 2 3 4 5 6 7 4 chunks +34 lines, -2 lines 0 comments Download
M Source/web/tests/WebFrameTest.cpp View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 40 (18 generated)
zino
Dear all, I've just sent to intent to blink-dev. I already know that we need ...
6 years, 1 month ago (2014-11-14 07:35:10 UTC) #9
zino
Dear all, I've just sent to intent to blink-dev. I already know that we need ...
6 years, 1 month ago (2014-11-14 07:35:40 UTC) #10
Rick Byers
On 2014/11/14 07:35:40, zino wrote: > Dear all, > > I've just sent to intent ...
6 years, 1 month ago (2014-11-14 19:10:17 UTC) #12
Rick Byers
On 2014/11/14 07:35:40, zino wrote: > Dear all, > > I've just sent to intent ...
6 years, 1 month ago (2014-11-14 19:11:34 UTC) #13
Rick Byers
This is great, thank you! Unfortunately there are a couple details that make this a ...
6 years, 1 month ago (2014-11-14 19:48:09 UTC) #14
zino
@Rick Byers Thank you for detailed explanation. :) I've uploaded a new patch set. Could ...
6 years, 1 month ago (2014-11-18 14:19:35 UTC) #15
Rick Byers
Thanks, this looks close to being ready to land! https://codereview.chromium.org/727593003/diff/100001/LayoutTests/fast/events/mouse-event-buttons-attribute.html File LayoutTests/fast/events/mouse-event-buttons-attribute.html (right): https://codereview.chromium.org/727593003/diff/100001/LayoutTests/fast/events/mouse-event-buttons-attribute.html#newcode8 LayoutTests/fast/events/mouse-event-buttons-attribute.html:8: ...
6 years, 1 month ago (2014-11-18 20:29:19 UTC) #16
zino
@Rick, Thank you for review and detailed explanation. I'll upload a new patch set soon. ...
6 years, 1 month ago (2014-11-20 09:09:11 UTC) #17
zino
Thank you for review and sorry for delay.. https://codereview.chromium.org/727593003/diff/100001/LayoutTests/fast/events/mouse-event-buttons-attribute.html File LayoutTests/fast/events/mouse-event-buttons-attribute.html (right): https://codereview.chromium.org/727593003/diff/100001/LayoutTests/fast/events/mouse-event-buttons-attribute.html#newcode8 LayoutTests/fast/events/mouse-event-buttons-attribute.html:8: window.addEventListener('mousedown', ...
6 years ago (2014-11-24 13:07:08 UTC) #19
Rick Byers
This is looking create, but the changes raise a few other issues (sorry for the ...
6 years ago (2014-11-25 17:44:28 UTC) #20
zino
Hi Rick, Thank you for detailed explanation and inputs. I have a question for addressing ...
6 years ago (2014-11-28 02:37:09 UTC) #21
zino
Hi Rick, I've just uploaded two patch sets. patch set 6 : if the contextmenu ...
6 years ago (2014-11-28 12:29:28 UTC) #22
Rick Byers
On 2014/11/28 02:37:09, zino wrote: > Hi Rick, > > Thank you for detailed explanation ...
6 years ago (2014-11-28 16:25:31 UTC) #23
Rick Byers
This is looking great to me, thank you! Just a couple minor things left. https://codereview.chromium.org/727593003/diff/180001/LayoutTests/fast/events/constructors/mouse-event-constructor.html ...
6 years ago (2014-11-28 17:36:02 UTC) #24
zino
On 2014/11/28 17:36:02, Rick Byers wrote: > https://codereview.chromium.org/727593003/diff/240001/Source/core/page/EventHandler.cpp#newcode2855 > Source/core/page/EventHandler.cpp:2855: PlatformEvent::Type eventType = > PlatformEvent::MousePressed; ...
6 years ago (2014-12-01 17:13:20 UTC) #25
Rick Byers
On 2014/12/01 17:13:20, zino wrote: > On 2014/11/28 17:36:02, Rick Byers wrote: > > > ...
6 years ago (2014-12-01 22:41:07 UTC) #26
zino
Dear @Rick, Could you review again? https://codereview.chromium.org/727593003/diff/240001/LayoutTests/fast/events/mouse-event-buttons-attribute.html File LayoutTests/fast/events/mouse-event-buttons-attribute.html (right): https://codereview.chromium.org/727593003/diff/240001/LayoutTests/fast/events/mouse-event-buttons-attribute.html#newcode38 LayoutTests/fast/events/mouse-event-buttons-attribute.html:38: { type: GE, ...
6 years ago (2014-12-03 15:47:15 UTC) #33
Rick Byers
This looks great, thanks for all the related clean-up CLs! LGTM with a couple minor ...
6 years ago (2014-12-03 16:58:09 UTC) #35
haraken
web/ and platform/ LGTM
6 years ago (2014-12-04 00:51:46 UTC) #36
zino
Thanks :) https://codereview.chromium.org/727593003/diff/380001/LayoutTests/fast/events/mouse-event-buttons-attribute.html File LayoutTests/fast/events/mouse-event-buttons-attribute.html (right): https://codereview.chromium.org/727593003/diff/380001/LayoutTests/fast/events/mouse-event-buttons-attribute.html#newcode39 LayoutTests/fast/events/mouse-event-buttons-attribute.html:39: { type: GE, name: 'mousedown', modifiers: [R], ...
6 years ago (2014-12-04 06:40:05 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/727593003/400001
6 years ago (2014-12-04 07:58:56 UTC) #39
commit-bot: I haz the power
6 years ago (2014-12-04 09:09:45 UTC) #40
Message was sent while issue was closed.
Committed patchset #9 (id:400001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=186490

Powered by Google App Engine
This is Rietveld 408576698