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

Issue 398393003: Require a mouse button release event before counting a press event as a new click. (Closed)

Created:
6 years, 5 months ago by flackr
Modified:
6 years, 5 months ago
Reviewers:
sadrul, sky
CC:
chromium-reviews, tdresser+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Require a mouse button release event before counting a press event as a new click. BUG=389162 TEST=EventTest.DoubleClickRequiresRelease Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=284479

Patch Set 1 #

Total comments: 4

Patch Set 2 : Only set last_click_released_ if it was the same button. #

Patch Set 3 : Set last click complete if the incoming event has a different timestamp. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -4 lines) Patch
M ui/events/event.h View 1 2 2 chunks +12 lines, -0 lines 0 comments Download
M ui/events/event.cc View 1 2 1 chunk +27 lines, -4 lines 2 comments Download
M ui/events/event_unittest.cc View 1 2 1 chunk +62 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
flackr
This is a fairly simple way to avoid the problem of handling multiple of the ...
6 years, 5 months ago (2014-07-17 19:11:56 UTC) #1
sadrul
LGTM This should work correctly for X11. +sky@ to see if this would work correctly ...
6 years, 5 months ago (2014-07-17 20:01:34 UTC) #2
sky
https://codereview.chromium.org/398393003/diff/1/ui/events/event.cc File ui/events/event.cc (right): https://codereview.chromium.org/398393003/diff/1/ui/events/event.cc#newcode321 ui/events/event.cc:321: last_click_released_ = true; If you get a capture change ...
6 years, 5 months ago (2014-07-17 21:37:55 UTC) #3
flackr
https://codereview.chromium.org/398393003/diff/1/ui/events/event.cc File ui/events/event.cc (right): https://codereview.chromium.org/398393003/diff/1/ui/events/event.cc#newcode321 ui/events/event.cc:321: last_click_released_ = true; On 2014/07/17 21:37:55, sky wrote: > ...
6 years, 5 months ago (2014-07-18 16:20:49 UTC) #4
sky
https://codereview.chromium.org/398393003/diff/1/ui/events/event.cc File ui/events/event.cc (right): https://codereview.chromium.org/398393003/diff/1/ui/events/event.cc#newcode321 ui/events/event.cc:321: last_click_released_ = true; On 2014/07/18 16:20:49, flackr wrote: > ...
6 years, 5 months ago (2014-07-18 19:20:59 UTC) #5
flackr
https://codereview.chromium.org/398393003/diff/1/ui/events/event.cc File ui/events/event.cc (right): https://codereview.chromium.org/398393003/diff/1/ui/events/event.cc#newcode321 ui/events/event.cc:321: last_click_released_ = true; On 2014/07/18 19:20:59, sky wrote: > ...
6 years, 5 months ago (2014-07-18 19:45:23 UTC) #6
flackr
I've updated this to only deal with pressed events having the same timestamp, and renamed ...
6 years, 5 months ago (2014-07-18 20:26:37 UTC) #7
sky
https://codereview.chromium.org/398393003/diff/40001/ui/events/event.cc File ui/events/event.cc (right): https://codereview.chromium.org/398393003/diff/40001/ui/events/event.cc#newcode342 ui/events/event.cc:342: last_click_complete_ = false; Do we need both last_click_complete_ and ...
6 years, 5 months ago (2014-07-18 22:42:51 UTC) #8
flackr
https://codereview.chromium.org/398393003/diff/40001/ui/events/event.cc File ui/events/event.cc (right): https://codereview.chromium.org/398393003/diff/40001/ui/events/event.cc#newcode342 ui/events/event.cc:342: last_click_complete_ = false; On 2014/07/18 22:42:51, sky wrote: > ...
6 years, 5 months ago (2014-07-19 12:55:11 UTC) #9
sky
Ok, LGTM
6 years, 5 months ago (2014-07-21 15:46:35 UTC) #10
flackr
The CQ bit was checked by flackr@chromium.org
6 years, 5 months ago (2014-07-21 15:49:01 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/flackr@chromium.org/398393003/40001
6 years, 5 months ago (2014-07-21 15:49:32 UTC) #12
commit-bot: I haz the power
6 years, 5 months ago (2014-07-21 19:38:15 UTC) #13
Message was sent while issue was closed.
Change committed as 284479

Powered by Google App Engine
This is Rietveld 408576698