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

Issue 23801003: input: Make the OverscrollController less intrusive, and some code cleanup. (Closed)

Created:
7 years, 3 months ago by sadrul
Modified:
7 years, 3 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

input: Make the OverscrollController less intrusive, and some code cleanup. * Make OverscrollController less intrusive to input-event dispatching. With this change, the OverscrollController consumes an event on its way to dispatch only if the event contributes to the overscroll. * When an overscroll is in progress, and a gesture event comes in, this event is not dispatched to the GestureEventFilter from RenderWidgetHostImpl. So, if the event should be dispatched to the renderer, make sure it always goes through the host from the OverscrollController. * Remove HasQueuedGestureEvents() from InputRouter interface, and forward all gesture events through the RenderWidgetHost from the overscroll-controller. BUG=none R=aelias@chromium.org, jdduke@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=223096

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : . #

Total comments: 2

Patch Set 7 : . #

Patch Set 8 : . #

Patch Set 9 : tot-merge #

Total comments: 4

Patch Set 10 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -85 lines) Patch
M content/browser/renderer_host/input/buffered_input_router.h View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -4 lines 0 comments Download
M content/browser/renderer_host/input/buffered_input_router.cc View 1 2 3 4 5 6 7 8 9 4 chunks +1 line, -11 lines 0 comments Download
M content/browser/renderer_host/input/buffered_input_router_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -15 lines 0 comments Download
M content/browser/renderer_host/input/immediate_input_router.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/renderer_host/input/immediate_input_router.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -4 lines 0 comments Download
M content/browser/renderer_host/input/input_router.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -3 lines 0 comments Download
M content/browser/renderer_host/overscroll_controller.h View 1 2 3 4 5 6 7 2 chunks +3 lines, -6 lines 0 comments Download
M content/browser/renderer_host/overscroll_controller.cc View 1 2 3 4 5 6 7 7 chunks +20 lines, -29 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_unittest.cc View 1 2 3 4 5 6 7 8 9 7 chunks +18 lines, -7 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
sadrul
7 years, 3 months ago (2013-09-02 15:56:03 UTC) #1
aelias_OOO_until_Jul13
https://codereview.chromium.org/23801003/diff/31001/content/browser/renderer_host/input/immediate_input_router.cc File content/browser/renderer_host/input/immediate_input_router.cc (left): https://codereview.chromium.org/23801003/diff/31001/content/browser/renderer_host/input/immediate_input_router.cc#oldcode286 content/browser/renderer_host/input/immediate_input_router.cc:286: return gesture_event_filter_->HasQueuedGestureEvents(); Is this intended to be a no-op ...
7 years, 3 months ago (2013-09-03 02:24:10 UTC) #2
jdduke (slow)
I'm all for dropping any of the "HasQueuedGesture" or "ShouldForwardGesture" router methods. These were bolted ...
7 years, 3 months ago (2013-09-03 15:09:33 UTC) #3
sadrul
On 2013/09/03 15:09:33, jdduke wrote: > I'm all for dropping any of the "HasQueuedGesture" or ...
7 years, 3 months ago (2013-09-03 15:14:39 UTC) #4
sadrul
On 2013/09/03 15:14:39, sadrul wrote: > On 2013/09/03 15:09:33, jdduke wrote: > > I'm all ...
7 years, 3 months ago (2013-09-11 22:03:16 UTC) #5
jdduke (slow)
This looks pretty reasonable to me, given the constraints; thanks for the cleanup. You'll likely ...
7 years, 3 months ago (2013-09-11 23:09:30 UTC) #6
sadrul
On 2013/09/11 23:09:30, jdduke wrote: > This looks pretty reasonable to me, given the constraints; ...
7 years, 3 months ago (2013-09-12 16:16:54 UTC) #7
jdduke (slow)
LGTM with nits, and potentially any additional tests you think are necessary or appropriate? https://codereview.chromium.org/23801003/diff/68001/content/browser/renderer_host/input/buffered_input_router.h ...
7 years, 3 months ago (2013-09-12 16:32:35 UTC) #8
jdduke (slow)
On 2013/09/12 16:32:35, jdduke wrote: > LGTM with nits, and potentially any additional tests you ...
7 years, 3 months ago (2013-09-12 16:33:18 UTC) #9
sadrul
Updated the patch title too https://codereview.chromium.org/23801003/diff/68001/content/browser/renderer_host/input/buffered_input_router.h File content/browser/renderer_host/input/buffered_input_router.h (right): https://codereview.chromium.org/23801003/diff/68001/content/browser/renderer_host/input/buffered_input_router.h#newcode127 content/browser/renderer_host/input/buffered_input_router.h:127: int queued_gesture_count_; On 2013/09/12 ...
7 years, 3 months ago (2013-09-12 17:31:19 UTC) #10
sadrul
aelias@: ping
7 years, 3 months ago (2013-09-13 15:12:42 UTC) #11
aelias_OOO_until_Jul13
lgtm
7 years, 3 months ago (2013-09-13 18:20:34 UTC) #12
sadrul
7 years, 3 months ago (2013-09-13 19:05:07 UTC) #13
Message was sent while issue was closed.
Committed patchset #10 manually as r223096 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698