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

Issue 1165693005: Change MouseEvent.button to be 'short' instead of 'unsigned short' (Closed)

Created:
5 years, 6 months ago by ramya.v
Modified:
5 years, 6 months ago
CC:
blink-reviews, vivekg, arv+blink, Inactive, vivekg_samsung, mustaq
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Change MouseEvent.button to be 'short' instead of 'unsigned short' BUG=496169 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196932

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Updating test cases #

Total comments: 5

Patch Set 4 : Corrected indentation as per review comments #

Patch Set 5 : Updating as per review comments #

Total comments: 10

Patch Set 6 : Updated testcases as per review comments #

Patch Set 7 : Removed m_buttonDown #

Total comments: 4

Patch Set 8 : Modified test cases to include testing inside and outside short bounds #

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -33 lines) Patch
M LayoutTests/fast/events/constructors/mouse-event-constructor.html View 1 2 3 4 5 6 7 8 1 chunk +10 lines, -4 lines 0 comments Download
M LayoutTests/fast/events/constructors/mouse-event-constructor-expected.txt View 1 2 3 4 5 6 7 2 chunks +6 lines, -1 line 0 comments Download
M LayoutTests/fast/events/constructors/wheel-event-constructor.html View 1 2 3 4 5 6 7 1 chunk +10 lines, -4 lines 0 comments Download
M LayoutTests/fast/events/constructors/wheel-event-constructor-expected.txt View 1 2 3 4 5 6 7 2 chunks +6 lines, -1 line 0 comments Download
M Source/core/events/MouseEvent.h View 1 2 3 4 5 6 4 chunks +6 lines, -7 lines 0 comments Download
M Source/core/events/MouseEvent.cpp View 1 2 3 4 5 6 7 chunks +6 lines, -12 lines 0 comments Download
M Source/core/events/MouseEvent.idl View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/events/MouseEventInit.idl View 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 23 (3 generated)
ramya.v
PTAL! Thanks
5 years, 6 months ago (2015-06-09 06:16:26 UTC) #2
philipj_slow
Looks promising, hope we can get rid of the special-casing of (unsigned short)-1. Rick, what ...
5 years, 6 months ago (2015-06-09 09:35:39 UTC) #3
ramya.v
https://codereview.chromium.org/1165693005/diff/40001/Source/core/events/MouseEvent.cpp File Source/core/events/MouseEvent.cpp (right): https://codereview.chromium.org/1165693005/diff/40001/Source/core/events/MouseEvent.cpp#newcode94 Source/core/events/MouseEvent.cpp:94: , m_button(button == -1 ? 0 : button) On ...
5 years, 6 months ago (2015-06-09 11:14:31 UTC) #4
philipj_slow
https://codereview.chromium.org/1165693005/diff/40001/Source/core/events/MouseEvent.cpp File Source/core/events/MouseEvent.cpp (right): https://codereview.chromium.org/1165693005/diff/40001/Source/core/events/MouseEvent.cpp#newcode94 Source/core/events/MouseEvent.cpp:94: , m_button(button == -1 ? 0 : button) On ...
5 years, 6 months ago (2015-06-09 12:04:07 UTC) #5
Rick Byers
On 2015/06/09 12:04:07, philipj wrote: > OK, it looks like the MouseButton enum member NoButton ...
5 years, 6 months ago (2015-06-09 14:05:55 UTC) #6
philipj_slow
Isolating all the weirdness inside MouseEvent::button() and getting rid of m_buttonDown sounds like a good ...
5 years, 6 months ago (2015-06-09 15:27:53 UTC) #7
Rick Byers
On 2015/06/09 15:27:53, philipj wrote: > Isolating all the weirdness inside MouseEvent::button() and getting rid ...
5 years, 6 months ago (2015-06-09 21:25:39 UTC) #8
Rick Byers
On 2015/06/09 21:25:39, Rick Byers wrote: > On 2015/06/09 15:27:53, philipj wrote: > > Isolating ...
5 years, 6 months ago (2015-06-09 21:27:38 UTC) #9
ramya.v
Updated as per review comments. PTAL! Thanks
5 years, 6 months ago (2015-06-10 07:17:04 UTC) #10
philipj_slow
https://codereview.chromium.org/1165693005/diff/80001/LayoutTests/fast/events/constructors/mouse-event-constructor.html File LayoutTests/fast/events/constructors/mouse-event-constructor.html (left): https://codereview.chromium.org/1165693005/diff/80001/LayoutTests/fast/events/constructors/mouse-event-constructor.html#oldcode109 LayoutTests/fast/events/constructors/mouse-event-constructor.html:109: shouldBe("new MouseEvent('eventType', { button: 65534 }).button", "65534"); Why not ...
5 years, 6 months ago (2015-06-10 08:46:25 UTC) #11
ramya.v
Updated test cases as per review comments. PTAL! https://codereview.chromium.org/1165693005/diff/80001/LayoutTests/fast/events/constructors/mouse-event-constructor.html File LayoutTests/fast/events/constructors/mouse-event-constructor.html (left): https://codereview.chromium.org/1165693005/diff/80001/LayoutTests/fast/events/constructors/mouse-event-constructor.html#oldcode109 LayoutTests/fast/events/constructors/mouse-event-constructor.html:109: shouldBe("new ...
5 years, 6 months ago (2015-06-10 09:21:28 UTC) #12
ramya.v
https://codereview.chromium.org/1165693005/diff/80001/Source/core/events/MouseEvent.cpp File Source/core/events/MouseEvent.cpp (right): https://codereview.chromium.org/1165693005/diff/80001/Source/core/events/MouseEvent.cpp#newcode96 Source/core/events/MouseEvent.cpp:96: , m_buttonDown(button != -1) On 2015/06/10 09:21:28, ramya.v wrote: ...
5 years, 6 months ago (2015-06-10 09:25:39 UTC) #13
ramya.v
PTAL! https://codereview.chromium.org/1165693005/diff/80001/Source/core/events/MouseEvent.cpp File Source/core/events/MouseEvent.cpp (right): https://codereview.chromium.org/1165693005/diff/80001/Source/core/events/MouseEvent.cpp#newcode96 Source/core/events/MouseEvent.cpp:96: , m_buttonDown(button != -1) On 2015/06/10 08:46:25, philipj ...
5 years, 6 months ago (2015-06-10 09:41:25 UTC) #14
philipj_slow
Code looks good, just some tiny changes to the test needed. I say LGTM, but ...
5 years, 6 months ago (2015-06-10 13:54:46 UTC) #15
Rick Byers
On 2015/06/09 21:27:38, Rick Byers wrote: > On 2015/06/09 21:25:39, Rick Byers wrote: > > ...
5 years, 6 months ago (2015-06-10 15:23:14 UTC) #16
Rick Byers
On 2015/06/10 15:23:14, Rick Byers wrote: > On 2015/06/09 21:27:38, Rick Byers wrote: > > ...
5 years, 6 months ago (2015-06-10 15:26:48 UTC) #17
ramya.v
Updated as per review comments. PTAL! Thanks https://codereview.chromium.org/1165693005/diff/120001/LayoutTests/fast/events/constructors/mouse-event-constructor.html File LayoutTests/fast/events/constructors/mouse-event-constructor.html (right): https://codereview.chromium.org/1165693005/diff/120001/LayoutTests/fast/events/constructors/mouse-event-constructor.html#newcode109 LayoutTests/fast/events/constructors/mouse-event-constructor.html:109: shouldBe("new MouseEvent('eventType', ...
5 years, 6 months ago (2015-06-11 05:02:14 UTC) #18
philipj_slow
lgtm Nice comprehensive tests, thanks!
5 years, 6 months ago (2015-06-11 08:27:29 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1165693005/160001
5 years, 6 months ago (2015-06-11 08:27:53 UTC) #22
commit-bot: I haz the power
5 years, 6 months ago (2015-06-11 09:41:22 UTC) #23
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=196932

Powered by Google App Engine
This is Rietveld 408576698