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

Issue 26923002: Consolidate WebInputEvent coalescing logic (Closed)

Created:
7 years, 2 months ago by jdduke (slow)
Modified:
7 years, 2 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, sadrul, Rick Byers
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Consolidate WebInputEvent coalescing logic Code for coalescing the various WebInputEvent types is littered throughout the code. Move all such logic into WebInputEventTraits, making possible standalone test for event coalescing, and simplifying code that relies on coalescing. BUG=303238 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=228828

Patch Set 1 #

Total comments: 5

Patch Set 2 : Rebase and review #

Total comments: 2

Patch Set 3 : Fix nasty merge bug... #

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+198 lines, -106 lines) Patch
M content/browser/renderer_host/input/gesture_event_filter.cc View 1 2 1 chunk +2 lines, -8 lines 0 comments Download
M content/browser/renderer_host/input/immediate_input_router.cc View 1 2 3 3 chunks +5 lines, -58 lines 0 comments Download
M content/browser/renderer_host/input/touch_event_queue.cc View 1 2 1 chunk +10 lines, -28 lines 0 comments Download
M content/common/input/web_input_event_traits.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M content/common/input/web_input_event_traits.cc View 1 2 2 chunks +165 lines, -12 lines 0 comments Download
M content/port/browser/event_with_latency_info.h View 1 2 chunks +12 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
jdduke (slow)
aelias@: PTAL. This is simply moving all (event + event) coalescing logic to web_input_event_traits.{h,cc}. There's ...
7 years, 2 months ago (2013-10-10 21:18:43 UTC) #1
jdduke (slow)
https://codereview.chromium.org/26923002/diff/1/content/common/input/web_input_event_traits.h File content/common/input/web_input_event_traits.h (right): https://codereview.chromium.org/26923002/diff/1/content/common/input/web_input_event_traits.h#newcode20 content/common/input/web_input_event_traits.h:20: static bool TryCoalesce(const WebKit::WebInputEvent& event_to_coalesce, Any guidance on arg ...
7 years, 2 months ago (2013-10-10 21:21:26 UTC) #2
aelias_OOO_until_Jul13
I'm thinking it would be better to split TryCoalesce into two methods, IsCoalesceableWith() and Coalesce(). ...
7 years, 2 months ago (2013-10-14 03:38:57 UTC) #3
jdduke (slow)
OK, updated accordingly with a query + command. PTAL. https://codereview.chromium.org/26923002/diff/1/content/browser/renderer_host/input/gesture_event_filter.cc File content/browser/renderer_host/input/gesture_event_filter.cc (right): https://codereview.chromium.org/26923002/diff/1/content/browser/renderer_host/input/gesture_event_filter.cc#newcode373 content/browser/renderer_host/input/gesture_event_filter.cc:373: ...
7 years, 2 months ago (2013-10-14 17:03:17 UTC) #4
aelias_OOO_until_Jul13
lgtm modulo comment below. https://codereview.chromium.org/26923002/diff/11001/content/common/input/web_input_event_traits.cc File content/common/input/web_input_event_traits.cc (right): https://codereview.chromium.org/26923002/diff/11001/content/common/input/web_input_event_traits.cc#newcode37 content/common/input/web_input_event_traits.cc:37: int x = event->movementX; Please ...
7 years, 2 months ago (2013-10-14 19:05:58 UTC) #5
jdduke (slow)
https://codereview.chromium.org/26923002/diff/11001/content/common/input/web_input_event_traits.cc File content/common/input/web_input_event_traits.cc (right): https://codereview.chromium.org/26923002/diff/11001/content/common/input/web_input_event_traits.cc#newcode37 content/common/input/web_input_event_traits.cc:37: int x = event->movementX; On 2013/10/14 19:05:58, aelias wrote: ...
7 years, 2 months ago (2013-10-14 19:10:12 UTC) #6
jdduke (slow)
joi@: Review for content/port/browser/? Thanks.
7 years, 2 months ago (2013-10-14 20:04:58 UTC) #7
Jói
LGTM
7 years, 2 months ago (2013-10-15 19:12:21 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/26923002/39001
7 years, 2 months ago (2013-10-15 22:19:45 UTC) #9
commit-bot: I haz the power
7 years, 2 months ago (2013-10-16 01:34:21 UTC) #10
Message was sent while issue was closed.
Change committed as 228828

Powered by Google App Engine
This is Rietveld 408576698