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

Issue 11188012: gesture recognizer: Remove the touch-event queue. (Closed)

Created:
8 years, 2 months ago by sadrul
Modified:
8 years, 2 months ago
CC:
chromium-reviews, sadrul, yusukes+watch_chromium.org, ben+watch_chromium.org, tfarina, jam, penghuang+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, James Su, Yusuf
Visibility:
Public.

Description

touch: Coalesce touch-events, and remove the touch-event queue from the gesture recognizer. The major changes in this CL: * Remove the touch-event queue and the relevant code from the gesture recognizer. This is no longer necessary since there is a new queue maintained by the RenderWidgetHost. * Touch events are now coalesced in the queue when appropriate. * Create a list of ui::TouchEvents out of the processed/coalesced WebTouchEvents and feed those to the gesture recognizer. * Tests. * Remove asynchronous event-processing in ui::Events. BUG=138153, 110231 TBR=avi@chromium.org (content_browser.gypi) Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=162518

Patch Set 1 #

Patch Set 2 : fix-builds #

Total comments: 5

Patch Set 3 : . #

Total comments: 8

Patch Set 4 : . #

Patch Set 5 : tot-merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+479 lines, -326 lines) Patch
M content/browser/renderer_host/render_widget_host_impl.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 3 chunks +14 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_unittest.cc View 8 chunks +181 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 3 chunks +14 lines, -8 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_win.cc View 1 6 chunks +17 lines, -35 lines 0 comments Download
M content/browser/renderer_host/touch_event_queue.h View 1 2 2 chunks +21 lines, -0 lines 0 comments Download
M content/browser/renderer_host/touch_event_queue.cc View 1 2 2 chunks +29 lines, -6 lines 0 comments Download
A content/browser/renderer_host/ui_events_helper.h View 1 2 3 1 chunk +29 lines, -0 lines 0 comments Download
A content/browser/renderer_host/ui_events_helper.cc View 1 2 1 chunk +80 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download
M ui/aura/gestures/gesture_recognizer_unittest.cc View 1 3 chunks +17 lines, -51 lines 0 comments Download
M ui/aura/root_window.h View 1 chunk +8 lines, -7 lines 0 comments Download
M ui/aura/root_window.cc View 3 chunks +6 lines, -8 lines 0 comments Download
M ui/base/events/event.h View 2 chunks +10 lines, -16 lines 0 comments Download
M ui/base/events/event.cc View 2 chunks +17 lines, -19 lines 0 comments Download
M ui/base/events/event_constants.h View 1 chunk +0 lines, -2 lines 0 comments Download
M ui/base/events/event_constants.cc View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M ui/base/gestures/gesture_recognizer.h View 1 2 3 1 chunk +3 lines, -13 lines 0 comments Download
M ui/base/gestures/gesture_recognizer_impl.h View 2 chunks +3 lines, -16 lines 0 comments Download
M ui/base/gestures/gesture_recognizer_impl.cc View 5 chunks +1 line, -119 lines 0 comments Download
M ui/base/gestures/gesture_sequence.cc View 2 chunks +1 line, -2 lines 0 comments Download
M ui/views/view_unittest.cc View 4 chunks +23 lines, -19 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
sadrul
Hi! This is the follow CL for http://codereview.chromium.org/11148008/. I tried to split it out into ...
8 years, 2 months ago (2012-10-16 22:56:39 UTC) #1
aelias_OOO_until_Jul13
http://codereview.chromium.org/11188012/diff/10024/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): http://codereview.chromium.org/11188012/diff/10024/content/browser/renderer_host/render_widget_host_impl.cc#newcode1964 content/browser/renderer_host/render_widget_host_impl.cc:1964: return has_touch_handler_ || !touch_event_queue_->empty(); Should the queue class hold ...
8 years, 2 months ago (2012-10-17 01:52:57 UTC) #2
sadrul
http://codereview.chromium.org/11188012/diff/10024/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): http://codereview.chromium.org/11188012/diff/10024/content/browser/renderer_host/render_widget_host_impl.cc#newcode1964 content/browser/renderer_host/render_widget_host_impl.cc:1964: return has_touch_handler_ || !touch_event_queue_->empty(); On 2012/10/17 01:52:57, aelias wrote: ...
8 years, 2 months ago (2012-10-17 02:17:59 UTC) #3
rjkroege
http://codereview.chromium.org/11188012/diff/5047/content/browser/renderer_host/render_widget_host_view_win.cc File content/browser/renderer_host/render_widget_host_view_win.cc (right): http://codereview.chromium.org/11188012/diff/5047/content/browser/renderer_host/render_widget_host_view_win.cc#newcode936 content/browser/renderer_host/render_widget_host_view_win.cc:936: ScopedVector<ui::TouchEvent> events; this code looks really similar with the ...
8 years, 2 months ago (2012-10-17 15:57:35 UTC) #4
sadrul
http://codereview.chromium.org/11188012/diff/5047/content/browser/renderer_host/render_widget_host_view_win.cc File content/browser/renderer_host/render_widget_host_view_win.cc (right): http://codereview.chromium.org/11188012/diff/5047/content/browser/renderer_host/render_widget_host_view_win.cc#newcode936 content/browser/renderer_host/render_widget_host_view_win.cc:936: ScopedVector<ui::TouchEvent> events; On 2012/10/17 15:57:35, rjkroege wrote: > this ...
8 years, 2 months ago (2012-10-17 16:12:44 UTC) #5
rjkroege
thanks for the explanation. lgtm
8 years, 2 months ago (2012-10-17 17:55:53 UTC) #6
aelias_OOO_until_Jul13
lgtm
8 years, 2 months ago (2012-10-17 18:18:39 UTC) #7
sadrul
+ben for ui/ changes
8 years, 2 months ago (2012-10-17 18:30:14 UTC) #8
Ben Goodger (Google)
lgtm
8 years, 2 months ago (2012-10-17 19:28:08 UTC) #9
sadrul
8 years, 2 months ago (2012-10-17 20:41:06 UTC) #10
+avi@ for the change in content/content_browser.gypi [going to TBR this change]

Powered by Google App Engine
This is Rietveld 408576698