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

Issue 755883002: Input Injection API on Ozone (Closed)

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

Description

Input Injection API on Ozone This CL implements an input injection API (SystemInputInjector) on Ozone, which would be used by Remote assistance. SystemInputInjector is implemented by InputInjectorEvDev on EvDev. It is created by EventFactoryEv so that it can share its modifiers, keyboard and cursor state when generating corresponding ui::Events. BUG=436279 Committed: https://crrev.com/1bbda3e31177e98dc44147625ff82c0b7af400f0 Cr-Commit-Position: refs/heads/master@{#305764}

Patch Set 1 : #

Total comments: 10

Patch Set 2 : Address CL feedback #

Total comments: 1

Patch Set 3 : Add unit test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+455 lines, -2 lines) Patch
M ui/events/BUILD.gn View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M ui/events/events.gyp View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M ui/events/ozone/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/events/ozone/evdev/event_factory_evdev.h View 3 chunks +4 lines, -0 lines 0 comments Download
M ui/events/ozone/evdev/event_factory_evdev.cc View 1 2 chunks +6 lines, -0 lines 0 comments Download
A ui/events/ozone/evdev/input_injector_evdev.h View 1 2 1 chunk +54 lines, -0 lines 0 comments Download
A ui/events/ozone/evdev/input_injector_evdev.cc View 1 2 1 chunk +83 lines, -0 lines 0 comments Download
A ui/events/ozone/evdev/input_injector_evdev_unittest.cc View 1 2 1 chunk +216 lines, -0 lines 0 comments Download
M ui/events/ozone/events_ozone.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M ui/events/ozone/events_ozone.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/ozone/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M ui/ozone/ozone.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M ui/ozone/platform/caca/ozone_platform_caca.cc View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M ui/ozone/platform/dri/ozone_platform_dri.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M ui/ozone/platform/dri/ozone_platform_gbm.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M ui/ozone/platform/egltest/ozone_platform_egltest.cc View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M ui/ozone/platform/test/ozone_platform_test.cc View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M ui/ozone/public/ozone_platform.h View 2 chunks +4 lines, -2 lines 0 comments Download
A ui/ozone/public/system_input_injector.h View 1 1 chunk +52 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (8 generated)
kelvinp
PTAL spang@ This is roughly the same as the design that we talked about except ...
6 years ago (2014-11-25 04:43:08 UTC) #5
kelvinp
Unit test will be added in a later patch set. kevin@ can you take a ...
6 years ago (2014-11-25 04:53:47 UTC) #7
kpschoedel
https://codereview.chromium.org/755883002/diff/40001/ui/ozone/public/system_input_injector.h File ui/ozone/public/system_input_injector.h (right): https://codereview.chromium.org/755883002/diff/40001/ui/ozone/public/system_input_injector.h#newcode44 ui/ozone/public/system_input_injector.h:44: virtual void InjectKeyPress(DomKey physical_key, bool down) = 0; ui::DomCode ...
6 years ago (2014-11-25 15:39:24 UTC) #8
spang
https://codereview.chromium.org/755883002/diff/40001/ui/events/ozone/evdev/input_injector_evdev.cc File ui/events/ozone/evdev/input_injector_evdev.cc (right): https://codereview.chromium.org/755883002/diff/40001/ui/events/ozone/evdev/input_injector_evdev.cc#newcode13 ui/events/ozone/evdev/input_injector_evdev.cc:13: InputInjectorEvDev::InputInjectorEvDev(EventModifiersEvdev* modifiers, I've been spelling this "Evdev" - let's ...
6 years ago (2014-11-25 19:58:29 UTC) #9
kelvinp
PTAL https://codereview.chromium.org/755883002/diff/40001/ui/events/ozone/evdev/input_injector_evdev.cc File ui/events/ozone/evdev/input_injector_evdev.cc (right): https://codereview.chromium.org/755883002/diff/40001/ui/events/ozone/evdev/input_injector_evdev.cc#newcode13 ui/events/ozone/evdev/input_injector_evdev.cc:13: InputInjectorEvDev::InputInjectorEvDev(EventModifiersEvdev* modifiers, On 2014/11/25 19:58:29, spang wrote: > ...
6 years ago (2014-11-25 21:16:49 UTC) #11
spang
lgtm https://codereview.chromium.org/755883002/diff/80001/ui/events/ozone/evdev/input_injector_evdev.cc File ui/events/ozone/evdev/input_injector_evdev.cc (right): https://codereview.chromium.org/755883002/diff/80001/ui/events/ozone/evdev/input_injector_evdev.cc#newcode46 ui/events/ozone/evdev/input_injector_evdev.cc:46: callback_.Run(make_scoped_ptr(new MouseEvent( bad indent
6 years ago (2014-11-25 21:47:06 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/755883002/120001
6 years ago (2014-11-26 00:28:36 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:120001)
6 years ago (2014-11-26 02:39:42 UTC) #16
commit-bot: I haz the power
6 years ago (2014-11-26 02:40:31 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/1bbda3e31177e98dc44147625ff82c0b7af400f0
Cr-Commit-Position: refs/heads/master@{#305764}

Powered by Google App Engine
This is Rietveld 408576698