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

Issue 1484013003: mustash: Implement basic input event routing in renderer (Closed)

Created:
5 years ago by Fady Samuel
Modified:
5 years ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, yusukes+watch_chromium.org, shuchen+watch_chromium.org, nasko+codewatch_chromium.org, jam, nona+watch_chromium.org, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, James Su
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mustash: Implement basic input event routing in renderer This CL does the following: 1. It introduces CompositorMusConnection. The connection to the Mus Window server is now managed on the compositor thread. RenderWidgetMusConnection is the corresponding main thread object. CompositorMusConnection deals with postTasking information RenderWidgetMusConnection wants to the main thread and passing information from RenderWidgetMusConnection to the compositor thread. 2. Input events are routed directly to InputHandlerManager on the compositor thread. Unconsumed input events make their way to RenderWidgetMusConnection where they're currently dropped on the floor. TEST=./out/mandoline_Debug/mojo_runner mojo:example_main --use-mus-in-renderer --use-zero-copy BUG=551250 Committed: https://crrev.com/2e7bf2f61d4d5082769314c90ad557bdf330791c Cr-Commit-Position: refs/heads/master@{#363030}

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Simplify code and move work on compositor to CompositorMusConnection #

Patch Set 4 : Cleanup #

Patch Set 5 : Main thread input #

Patch Set 6 : Some hacks for main thread events #

Patch Set 7 : Introduce Get in addition to GetOrCreate on RenderWidgetMusConnection #

Patch Set 8 : Add a comment #

Patch Set 9 : Cleanup + Diffed against Peng's patch #

Patch Set 10 : The right diff #

Total comments: 18

Patch Set 11 : Addressed Sadrul's comments #

Total comments: 2

Patch Set 12 : Fixed copyright #

Total comments: 8

Patch Set 13 : Addressed Ben's comments #

Patch Set 14 : Added comment, use InterfaceRequest to pass across threads and use std::move instead of .Pass() #

Patch Set 15 : Fixed dependency for unit test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+377 lines, -314 lines) Patch
M components/html_viewer/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +2 lines, -2 lines 0 comments Download
M components/html_viewer/DEPS View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
D components/html_viewer/blink_input_events_type_converters.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -25 lines 0 comments Download
D components/html_viewer/blink_input_events_type_converters.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -219 lines 0 comments Download
M components/html_viewer/html_frame.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +1 line, -1 line 0 comments Download
M components/html_viewer/ime_controller.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M components/html_viewer/input_events_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
A content/renderer/compositor_mus_connection.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +83 lines, -0 lines 0 comments Download
A content/renderer/compositor_mus_connection.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +139 lines, -0 lines 0 comments Download
M content/renderer/render_widget_mus_connection.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +21 lines, -19 lines 0 comments Download
M content/renderer/render_widget_mus_connection.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +50 lines, -38 lines 0 comments Download
A mojo/converters/blink/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +24 lines, -0 lines 0 comments Download
A mojo/converters/blink/DEPS View 1 2 3 4 5 6 7 8 9 10 1 chunk +6 lines, -0 lines 0 comments Download
A + mojo/converters/blink/blink_input_events_type_converters.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +6 lines, -4 lines 0 comments Download
A + mojo/converters/blink/blink_input_events_type_converters.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +6 lines, -4 lines 0 comments Download
A mojo/converters/blink/mojo_blink_export.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +32 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (12 generated)
Fady Samuel
This is a bit hacky at the moment. Could you please give me some early ...
5 years ago (2015-12-01 22:43:27 UTC) #2
Fady Samuel
PTAL Sadrul. I think this is ready for a proper review. I've just removed code ...
5 years ago (2015-12-01 23:41:19 UTC) #4
sadrul
Should there be a content/renderer/mus/ for the mus-specific files? https://codereview.chromium.org/1484013003/diff/180001/content/renderer/blink_input_events_type_converters.cc File content/renderer/blink_input_events_type_converters.cc (right): https://codereview.chromium.org/1484013003/diff/180001/content/renderer/blink_input_events_type_converters.cc#newcode208 content/renderer/blink_input_events_type_converters.cc:208: ...
5 years ago (2015-12-02 18:20:58 UTC) #6
Fady Samuel
PTAL Sadrul! If you're happy with this I'll pass it on to Ben. I want ...
5 years ago (2015-12-02 21:30:28 UTC) #7
sadrul
lgtm https://codereview.chromium.org/1484013003/diff/200001/mojo/converters/blink/mojo_blink_export.h File mojo/converters/blink/mojo_blink_export.h (right): https://codereview.chromium.org/1484013003/diff/200001/mojo/converters/blink/mojo_blink_export.h#newcode1 mojo/converters/blink/mojo_blink_export.h:1: // Copyright 2014 The Chromium Authors. All rights ...
5 years ago (2015-12-03 00:36:53 UTC) #8
Fady Samuel
+ben@ for OWNER approval. https://codereview.chromium.org/1484013003/diff/200001/mojo/converters/blink/mojo_blink_export.h File mojo/converters/blink/mojo_blink_export.h (right): https://codereview.chromium.org/1484013003/diff/200001/mojo/converters/blink/mojo_blink_export.h#newcode1 mojo/converters/blink/mojo_blink_export.h:1: // Copyright 2014 The Chromium ...
5 years ago (2015-12-03 00:42:35 UTC) #10
Ben Goodger (Google)
https://codereview.chromium.org/1484013003/diff/220001/content/renderer/compositor_mus_connection.cc File content/renderer/compositor_mus_connection.cc (right): https://codereview.chromium.org/1484013003/diff/220001/content/renderer/compositor_mus_connection.cc#newcode31 content/renderer/compositor_mus_connection.cc:31: this, base::Passed(request.PassMessagePipe()))); is there no typesafe way to pass ...
5 years ago (2015-12-03 06:35:53 UTC) #11
Fady Samuel
PTAL Ben! https://codereview.chromium.org/1484013003/diff/220001/content/renderer/compositor_mus_connection.cc File content/renderer/compositor_mus_connection.cc (right): https://codereview.chromium.org/1484013003/diff/220001/content/renderer/compositor_mus_connection.cc#newcode31 content/renderer/compositor_mus_connection.cc:31: this, base::Passed(request.PassMessagePipe()))); On 2015/12/03 06:35:53, Ben Goodger ...
5 years ago (2015-12-03 16:42:12 UTC) #12
Ben Goodger (Google)
On 2015/12/03 16:42:12, Fady Samuel wrote: > We need to do this on the compositor ...
5 years ago (2015-12-03 16:55:43 UTC) #14
Fady Samuel
On 2015/12/03 16:55:43, Ben Goodger (Google) wrote: > On 2015/12/03 16:42:12, Fady Samuel wrote: > ...
5 years ago (2015-12-03 17:38:56 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1484013003/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1484013003/260001
5 years ago (2015-12-03 17:40:02 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_ng/builds/74959)
5 years ago (2015-12-03 17:50:19 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1484013003/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1484013003/280001
5 years ago (2015-12-03 18:31:16 UTC) #23
commit-bot: I haz the power
Committed patchset #15 (id:280001)
5 years ago (2015-12-03 19:15:54 UTC) #25
commit-bot: I haz the power
5 years ago (2015-12-03 19:16:52 UTC) #27
Message was sent while issue was closed.
Patchset 15 (id:??) landed as
https://crrev.com/2e7bf2f61d4d5082769314c90ad557bdf330791c
Cr-Commit-Position: refs/heads/master@{#363030}

Powered by Google App Engine
This is Rietveld 408576698