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

Issue 756643006: Remote assistance on Chrome OS Part IX - Input injection on Ozone (Closed)

Created:
6 years ago by kelvinp
Modified:
6 years ago
Reviewers:
spang, Wez, dcaiafa
CC:
chromium-reviews, stevenjb+watch_chromium.org, oshima+watch_chromium.org, chromoting-reviews_chromium.org, kpschoedel, Jamie
Base URL:
https://chromium.googlesource.com/chromium/src.git@Ozone_input_injection
Project:
chromium
Visibility:
Public.

Description

Remote assistance on Chrome OS Part IX - Input injection on Ozone This CL implements InputInjectorChromeOS with the SystemInputInjector API. It also introduce a new class, DisplayRotationFilter, on the input pipeline to handle display rotation settings on Ozone. BUG=426716 Committed: https://crrev.com/cc35531cfdcfb7df829c5dce693ee77726f8ef88 Cr-Commit-Position: refs/heads/master@{#307558}

Patch Set 1 #

Patch Set 2 : Add UsbCode to DomCode API #

Total comments: 21

Patch Set 3 : Address feedback (wez) #

Patch Set 4 : Fix build error #

Patch Set 5 : Keep the coordinate system sane #

Patch Set 6 : Fix rotation on X11 devices #

Total comments: 30

Patch Set 7 : Address wez's feedback #

Total comments: 37

Patch Set 8 : Address feedback (wez) #

Total comments: 6

Patch Set 9 : Rebase on ToT #

Patch Set 10 : Address feedback (wez) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+294 lines, -21 lines) Patch
M remoting/host/BUILD.gn View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -5 lines 0 comments Download
A remoting/host/chromeos/point_transformer.h View 1 2 3 4 5 6 7 8 9 1 chunk +54 lines, -0 lines 0 comments Download
A remoting/host/chromeos/point_transformer.cc View 1 2 3 4 5 6 7 1 chunk +62 lines, -0 lines 0 comments Download
M remoting/host/input_injector_chromeos.h View 1 chunk +3 lines, -0 lines 0 comments Download
M remoting/host/input_injector_chromeos.cc View 1 2 3 4 5 6 7 2 chunks +127 lines, -12 lines 0 comments Download
M remoting/host/input_injector_x11.cc View 1 2 3 4 5 6 7 3 chunks +16 lines, -2 lines 0 comments Download
M remoting/host/local_input_monitor_chromeos.cc View 1 2 3 4 5 6 7 4 chunks +9 lines, -1 line 0 comments Download
M remoting/remoting_host.gypi View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -1 line 0 comments Download
M remoting/remoting_host_srcs.gypi View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M remoting/remoting_test.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M ui/events/keycodes/dom4/keycode_converter.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M ui/events/keycodes/dom4/keycode_converter.cc View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (8 generated)
kelvinp
spang@, can you take a look on the display rotation change under remoting/host/chromeos/display_rotation_filter_ozone.cc wez@ and ...
6 years ago (2014-11-25 05:02:47 UTC) #3
kelvinp
6 years ago (2014-11-26 01:29:00 UTC) #4
Wez
Initial comments. https://codereview.chromium.org/756643006/diff/20001/remoting/host/chromeos/display_rotation_filter_ozone.cc File remoting/host/chromeos/display_rotation_filter_ozone.cc (right): https://codereview.chromium.org/756643006/diff/20001/remoting/host/chromeos/display_rotation_filter_ozone.cc#newcode5 remoting/host/chromeos/display_rotation_filter_ozone.cc:5: #include "remoting/host/display_rotation_filter.h" nit: We typically leave the ...
6 years ago (2014-11-26 02:28:34 UTC) #5
spang
On 2014/11/25 05:02:47, kelvinp wrote: > spang@, can you take a look on the display ...
6 years ago (2014-11-26 16:17:52 UTC) #6
spang
I'm not sure you need a whole new file for fixing up coordinates. https://codereview.chromium.org/756643006/diff/20001/remoting/host/input_injector_chromeos.cc File ...
6 years ago (2014-11-26 17:06:42 UTC) #7
kelvinp
@wez, PTAL @spang. Good catch, input rotation is now correctly handled on chromeos x11 as ...
6 years ago (2014-12-02 00:12:26 UTC) #9
spang
https://codereview.chromium.org/756643006/diff/20001/remoting/host/input_injector_chromeos.cc File remoting/host/input_injector_chromeos.cc (right): https://codereview.chromium.org/756643006/diff/20001/remoting/host/input_injector_chromeos.cc#newcode102 remoting/host/input_injector_chromeos.cc:102: DCHECK(event.has_x() && event.has_y()); On 2014/12/02 00:12:26, kelvinp wrote: > ...
6 years ago (2014-12-02 21:00:19 UTC) #11
kelvinp
PTAL @spang. I like the idea of keeping the remoting code as far away as ...
6 years ago (2014-12-03 02:11:53 UTC) #13
Wez
https://codereview.chromium.org/756643006/diff/180001/remoting/host/chromeos/display_transform_util.cc File remoting/host/chromeos/display_transform_util.cc (right): https://codereview.chromium.org/756643006/diff/180001/remoting/host/chromeos/display_transform_util.cc#newcode13 remoting/host/chromeos/display_transform_util.cc:13: gfx::Transform GetRootTransform(bool inverse) { This needs to be static, ...
6 years ago (2014-12-04 01:28:26 UTC) #15
kelvinp
@wez, it is ready for another iteration. Can you take another look? https://codereview.chromium.org/756643006/diff/180001/remoting/host/chromeos/display_transform_util.cc File remoting/host/chromeos/display_transform_util.cc ...
6 years ago (2014-12-05 03:17:28 UTC) #16
Wez
https://codereview.chromium.org/756643006/diff/180001/remoting/host/input_injector_chromeos.h File remoting/host/input_injector_chromeos.h (right): https://codereview.chromium.org/756643006/diff/180001/remoting/host/input_injector_chromeos.h#newcode15 remoting/host/input_injector_chromeos.h:15: class InputInjectorChromeos : public InputInjector { On 2014/12/05 03:17:28, ...
6 years ago (2014-12-06 01:55:17 UTC) #17
kelvinp
@wez. The CL is ready for another iteration. I would like to land this before ...
6 years ago (2014-12-08 18:41:44 UTC) #19
Wez
LGTM w/ nits. https://codereview.chromium.org/756643006/diff/240001/remoting/host/chromeos/point_transformer.h File remoting/host/chromeos/point_transformer.h (right): https://codereview.chromium.org/756643006/diff/240001/remoting/host/chromeos/point_transformer.h#newcode18 remoting/host/chromeos/point_transformer.h:18: // A class that performs coordinates ...
6 years ago (2014-12-09 01:36:44 UTC) #20
kelvinp
FYI https://codereview.chromium.org/756643006/diff/240001/remoting/host/chromeos/point_transformer.h File remoting/host/chromeos/point_transformer.h (right): https://codereview.chromium.org/756643006/diff/240001/remoting/host/chromeos/point_transformer.h#newcode18 remoting/host/chromeos/point_transformer.h:18: // A class that performs coordinates transformations between ...
6 years ago (2014-12-09 20:24:18 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/756643006/280001
6 years ago (2014-12-09 20:26:21 UTC) #23
commit-bot: I haz the power
Committed patchset #10 (id:280001)
6 years ago (2014-12-09 21:44:32 UTC) #24
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/cc35531cfdcfb7df829c5dce693ee77726f8ef88 Cr-Commit-Position: refs/heads/master@{#307558}
6 years ago (2014-12-09 21:45:22 UTC) #25
Wez
6 years ago (2014-12-09 23:39:17 UTC) #26
Message was sent while issue was closed.
On 9 Dec 2014 12:24, <kelvinp@chromium.org> wrote:
>
> FYI
>
>
>
>
https://codereview.chromium.org/756643006/diff/240001/remoting/host/chromeos/...
> File remoting/host/chromeos/point_transformer.h (right):
>
>
https://codereview.chromium.org/756643006/diff/240001/remoting/host/chromeos/...
> remoting/host/chromeos/point_transformer.h:18: // A class that performs
> coordinates transformations between the root window
> On 2014/12/09 01:36:44, Wez wrote:
>>
>> coordinate
>
>
> Done.
>
>
>
https://codereview.chromium.org/756643006/diff/240001/remoting/host/chromeos/...
> remoting/host/chromeos/point_transformer.h:25: // either in origin nor
> orientation.  Both coordinates systems are always in
> On 2014/12/09 01:36:44, Wez wrote:
>>
>> coordinate
>
>
> Done.
>
>
>
https://codereview.chromium.org/756643006/diff/240001/ui/events/keycodes/dom4...
> File ui/events/keycodes/dom4/keycode_converter.cc (right):
>
>
https://codereview.chromium.org/756643006/diff/240001/ui/events/keycodes/dom4...
> ui/events/keycodes/dom4/keycode_converter.cc:210: return
> static_cast<DomCode>(usb_keycode);
> On 2014/12/09 01:36:44, Wez wrote:
>>
>> Return usb_keycode_map[i].id rather than the static cast here.
>
>
> Unfortunately, the id field does not exist on Linux. See line 19 on the
> same file
> #elif defined(OS_LINUX)
> #define USB_KEYMAP(usb, xkb, win, mac, code, id) {usb, xkb, code}

OK, please fix that, then - we definitely don't want a static cast spitting
out enums.

>
> https://codereview.chromium.org/756643006/

To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698