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

Issue 20356003: Provided batched input delivery with a BufferedInputRouter (Closed)

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

Description

Provided batched input delivery with a BufferedInputRouter The BufferedInputRouter batches input events into EventPackets. The delivery of these packets is dependent on periodic flush signals, as requested by the InputRouterClient. A given flush involves the forwarding of EventPackets to the renderer until all InputEvents from the original packet have been dispatched. BUG=245499 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=222674

Patch Set 1 #

Patch Set 2 : Cleanup #

Patch Set 3 : Cleanup #

Patch Set 4 : Rebase #

Patch Set 5 : Rebase and stub unit tests for BIR #

Patch Set 6 : Rebase and stub unit tests #

Patch Set 7 : Greater conformance to InputRouter interface; support early shutdown on keyboard ack. #

Patch Set 8 : Satisfy clang #

Patch Set 9 : Export for unit tests #

Patch Set 10 : Rebase #

Patch Set 11 : BufferedInputRouter unit tests #

Total comments: 71

Patch Set 12 : Code review #

Total comments: 40

Patch Set 13 : Refactoring #

Total comments: 8

Patch Set 14 : Style fixes and code review #

Patch Set 15 : Fix BrowserInputEvent client assignment #

Patch Set 16 : Cleanup, +jdduke for input/ONWERS #

Patch Set 17 : Remove DCHECK triggering test #

Patch Set 18 : Fix win unsigned error #

Patch Set 19 : Proper interface export, enum for unexpected ack callback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2567 lines, -551 lines) Patch
M content/browser/renderer_host/input/OWNERS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -1 line 0 comments Download
A content/browser/renderer_host/input/browser_input_event.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +69 lines, -0 lines 0 comments Download
A content/browser/renderer_host/input/browser_input_event.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +47 lines, -0 lines 0 comments Download
A content/browser/renderer_host/input/buffered_input_router.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +148 lines, -0 lines 0 comments Download
A content/browser/renderer_host/input/buffered_input_router.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +346 lines, -0 lines 0 comments Download
A content/browser/renderer_host/input/buffered_input_router_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +335 lines, -0 lines 0 comments Download
M content/browser/renderer_host/input/immediate_input_router.h View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +7 lines, -3 lines 0 comments Download
M content/browser/renderer_host/input/immediate_input_router.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 12 chunks +34 lines, -35 lines 0 comments Download
M content/browser/renderer_host/input/immediate_input_router_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 37 chunks +80 lines, -487 lines 0 comments Download
A content/browser/renderer_host/input/input_ack_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +41 lines, -0 lines 0 comments Download
A content/browser/renderer_host/input/input_queue.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +82 lines, -0 lines 0 comments Download
A content/browser/renderer_host/input/input_queue.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +183 lines, -0 lines 0 comments Download
A content/browser/renderer_host/input/input_queue_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +35 lines, -0 lines 0 comments Download
A content/browser/renderer_host/input/input_queue_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +363 lines, -0 lines 0 comments Download
M content/browser/renderer_host/input/input_router.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -1 line 0 comments Download
M content/browser/renderer_host/input/input_router_client.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +9 lines, -10 lines 0 comments Download
A content/browser/renderer_host/input/input_router_unittest.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +83 lines, -0 lines 0 comments Download
A content/browser/renderer_host/input/input_router_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +225 lines, -0 lines 0 comments Download
A content/browser/renderer_host/input/mock_input_ack_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +77 lines, -0 lines 0 comments Download
A content/browser/renderer_host/input/mock_input_ack_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +77 lines, -0 lines 0 comments Download
A content/browser/renderer_host/input/mock_input_router_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +126 lines, -0 lines 0 comments Download
A content/browser/renderer_host/input/mock_input_router_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +148 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 5 chunks +7 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 6 chunks +16 lines, -7 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +5 lines, -5 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +8 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
jdduke (slow)
OK, I've tried to limit the scope of the previous browser-side patch. This includes only ...
7 years, 5 months ago (2013-07-25 17:37:42 UTC) #1
jdduke (slow)
So, a couple thoughts as I've fleshed this out some more. 1) The timeout logic ...
7 years, 4 months ago (2013-07-31 15:42:56 UTC) #2
aelias_OOO_until_Jul13
First pass, I didn't get into the guts of the queuing/timeout logic yet. At a ...
7 years, 4 months ago (2013-08-13 06:11:51 UTC) #3
jdduke (slow)
I think we should drop the timeout logic for now, and add it back in ...
7 years, 4 months ago (2013-08-13 15:29:46 UTC) #4
aelias_OOO_until_Jul13
https://codereview.chromium.org/20356003/diff/39001/content/browser/renderer_host/input/buffered_input_router.cc File content/browser/renderer_host/input/buffered_input_router.cc (right): https://codereview.chromium.org/20356003/diff/39001/content/browser/renderer_host/input/buffered_input_router.cc#newcode17 content/browser/renderer_host/input/buffered_input_router.cc:17: using base::Time; Shouldn't need this. https://codereview.chromium.org/20356003/diff/39001/content/browser/renderer_host/input/buffered_input_router.cc#newcode242 content/browser/renderer_host/input/buffered_input_router.cc:242: void BufferedInputRouter::OnInputEventAck( ...
7 years, 4 months ago (2013-08-15 00:52:15 UTC) #5
jdduke (slow)
https://codereview.chromium.org/20356003/diff/39001/content/browser/renderer_host/input/buffered_input_router.cc File content/browser/renderer_host/input/buffered_input_router.cc (right): https://codereview.chromium.org/20356003/diff/39001/content/browser/renderer_host/input/buffered_input_router.cc#newcode17 content/browser/renderer_host/input/buffered_input_router.cc:17: using base::Time; On 2013/08/15 00:52:15, aelias wrote: > Shouldn't ...
7 years, 4 months ago (2013-08-15 23:22:26 UTC) #6
jdduke (slow)
crbug.com/274029 https://codereview.chromium.org/20356003/diff/39001/content/browser/renderer_host/input/input_queue.cc File content/browser/renderer_host/input/input_queue.cc (right): https://codereview.chromium.org/20356003/diff/39001/content/browser/renderer_host/input/input_queue.cc#newcode100 content/browser/renderer_host/input/input_queue.cc:100: // TODO(jdduke): Look into making ack-triggered shutdown async. ...
7 years, 4 months ago (2013-08-15 23:53:30 UTC) #7
nduca
https://codereview.chromium.org/20356003/diff/62001/content/browser/renderer_host/input/input_queue.cc File content/browser/renderer_host/input/input_queue.cc (right): https://codereview.chromium.org/20356003/diff/62001/content/browser/renderer_host/input/input_queue.cc#newcode28 content/browser/renderer_host/input/input_queue.cc:28: void QueueEvent(scoped_ptr<InputEvent> event, InputAckObserver* observer) { AckObserver ---> DispositionObserver ...
7 years, 3 months ago (2013-08-27 19:38:12 UTC) #8
jdduke (slow)
I've factored out the content/common code for clarity of review. This patch may change slightly ...
7 years, 3 months ago (2013-08-28 19:47:15 UTC) #9
jdduke (slow)
OK, I think this is ready for further review. @aelias, our last review was from ...
7 years, 3 months ago (2013-09-09 17:14:10 UTC) #10
aelias_OOO_until_Jul13
lgtm with minor comments below. https://codereview.chromium.org/20356003/diff/98001/content/browser/renderer_host/input/browser_input_event.h File content/browser/renderer_host/input/browser_input_event.h (right): https://codereview.chromium.org/20356003/diff/98001/content/browser/renderer_host/input/browser_input_event.h#newcode38 content/browser/renderer_host/input/browser_input_event.h:38: // |client| may be ...
7 years, 3 months ago (2013-09-09 22:31:14 UTC) #11
jdduke (slow)
https://codereview.chromium.org/20356003/diff/98001/content/browser/renderer_host/input/browser_input_event.h File content/browser/renderer_host/input/browser_input_event.h (right): https://codereview.chromium.org/20356003/diff/98001/content/browser/renderer_host/input/browser_input_event.h#newcode38 content/browser/renderer_host/input/browser_input_event.h:38: // |client| may be NULL. On 2013/09/09 22:31:14, aelias ...
7 years, 3 months ago (2013-09-10 19:41:16 UTC) #12
jdduke (slow)
jam@: PTAL at content/content_{browser,tests}.gypi for OWNERS. Thanks. aelias@: nduca@ suggested I add myself as an ...
7 years, 3 months ago (2013-09-11 15:36:10 UTC) #13
jam
On 2013/09/11 15:36:10, jdduke wrote: > jam@: PTAL at content/content_{browser,tests}.gypi for OWNERS. Thanks. > > ...
7 years, 3 months ago (2013-09-11 18:21:06 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/20356003/64001
7 years, 3 months ago (2013-09-11 19:17:57 UTC) #15
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 3 months ago (2013-09-11 20:27:18 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/20356003/175001
7 years, 3 months ago (2013-09-11 21:37:03 UTC) #17
commit-bot: I haz the power
7 years, 3 months ago (2013-09-12 00:32:50 UTC) #18
Message was sent while issue was closed.
Change committed as 222674

Powered by Google App Engine
This is Rietveld 408576698