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

Issue 799233004: Add touch events to the protocol, the stub layer, and to the client plugin. (Closed)

Created:
5 years, 11 months ago by Rintaro Kuroiwa
Modified:
5 years, 10 months ago
Reviewers:
Sergey Ulanov, Wez, garykac
CC:
chromium-reviews, chromoting-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add touch events to the protocol, the stub layer, and to the client plugin. - Add TouchEvent and TouchEventPoint messages to the input event protocol. - Extend the InputStub interface with an InjectTouchEvent() method. - Update InputEventTracker to track touch points, and to cancel them when ReleaseAll() is called. - Implement touch handling in the client plugin, but off by default. The web-app may choose to enable touch handling if desired. - Add a TouchInputScaler that scales and clamps touch points, similarly to the MouseInputFilter, for use by both client and host. BUG=314515 Committed: https://crrev.com/0e68803fd9d34a74646ed1ecc510469c0a98161b Cr-Commit-Position: refs/heads/master@{#318284}

Patch Set 1 #

Patch Set 2 : clean up #

Patch Set 3 : #

Patch Set 4 : builds on windows #

Patch Set 5 : mac builds #

Total comments: 59

Patch Set 6 : address comments #

Patch Set 7 : Renamed TouchInputFilter to TouchInputScaler and moved to client/plugin #

Total comments: 21

Patch Set 8 : address comments #

Patch Set 9 : add radius scaling and tests #

Patch Set 10 : add more comments to event proto #

Total comments: 63

Patch Set 11 : address comments from review #

Patch Set 12 : removed todo that no longer applies #

Total comments: 18

Patch Set 13 : changes from review #

Total comments: 2

Patch Set 14 : changes from review #

Patch Set 15 : clean up touch size scaling comment #

Patch Set 16 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+948 lines, -17 lines) Patch
M remoting/client/plugin/chromoting_instance.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +3 lines, -0 lines 0 comments Download
M remoting/client/plugin/chromoting_instance.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 6 chunks +18 lines, -5 lines 0 comments Download
M remoting/client/plugin/pepper_input_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +59 lines, -0 lines 0 comments Download
A remoting/client/plugin/touch_input_scaler.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +48 lines, -0 lines 0 comments Download
A remoting/client/plugin/touch_input_scaler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +86 lines, -0 lines 0 comments Download
A remoting/client/plugin/touch_input_scaler_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +437 lines, -0 lines 0 comments Download
M remoting/host/fake_desktop_environment.h View 1 chunk +1 line, -0 lines 0 comments Download
M remoting/host/fake_desktop_environment.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M remoting/host/host_mock_objects.h View 1 chunk +1 line, -0 lines 0 comments Download
M remoting/host/input_injector_chromeos.h View 1 chunk +1 line, -0 lines 0 comments Download
M remoting/host/input_injector_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +5 lines, -0 lines 0 comments Download
M remoting/host/input_injector_mac.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +6 lines, -0 lines 0 comments Download
M remoting/host/input_injector_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +6 lines, -0 lines 0 comments Download
M remoting/host/input_injector_x11.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +6 lines, -0 lines 0 comments Download
M remoting/host/ipc_input_injector.h View 1 chunk +1 line, -0 lines 0 comments Download
M remoting/host/ipc_input_injector.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M remoting/host/remote_input_filter.h View 1 chunk +1 line, -0 lines 0 comments Download
M remoting/host/remote_input_filter.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M remoting/host/single_window_input_injector_mac.cc View 1 3 chunks +6 lines, -0 lines 0 comments Download
M remoting/host/win/session_input_injector.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M remoting/host/win/session_input_injector.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +16 lines, -7 lines 0 comments Download
M remoting/proto/event.proto View 1 2 3 4 5 6 7 8 9 10 1 chunk +51 lines, -0 lines 0 comments Download
M remoting/proto/internal.proto View 1 chunk +1 line, -0 lines 0 comments Download
M remoting/protocol/client_event_dispatcher.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M remoting/protocol/client_event_dispatcher.cc View 1 1 chunk +7 lines, -0 lines 0 comments Download
M remoting/protocol/input_event_tracker.h View 1 2 3 4 5 2 chunks +5 lines, -2 lines 0 comments Download
M remoting/protocol/input_event_tracker.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +43 lines, -3 lines 0 comments Download
M remoting/protocol/input_event_tracker_unittest.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +113 lines, -0 lines 0 comments Download
M remoting/protocol/input_filter.h View 1 chunk +1 line, -0 lines 0 comments Download
M remoting/protocol/input_filter.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M remoting/protocol/input_stub.h View 2 chunks +2 lines, -0 lines 0 comments Download
M remoting/protocol/protocol_mock_objects.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M remoting/remoting_srcs.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -0 lines 0 comments Download
M remoting/remoting_test.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 26 (5 generated)
Rintaro Kuroiwa
I couldn't decide on how to the set sizes for touch_input_filter in chromoting_instances.cc so the ...
5 years, 11 months ago (2015-01-17 00:20:45 UTC) #3
Wez
Please update the CL text: - Description indicates that we add touch input to "the ...
5 years, 11 months ago (2015-01-21 01:39:36 UTC) #4
Wez
Please also use "git cl try" in your checked-out branch, to get a full set ...
5 years, 11 months ago (2015-01-21 01:40:15 UTC) #5
Wez
https://codereview.chromium.org/799233004/diff/100001/remoting/client/plugin/chromoting_instance.cc File remoting/client/plugin/chromoting_instance.cc (right): https://codereview.chromium.org/799233004/diff/100001/remoting/client/plugin/chromoting_instance.cc#newcode219 remoting/client/plugin/chromoting_instance.cc:219: // TODO(rkuroiwa): Add PP_INPUTEVENT_CLASS_TOUCH when ready. Shouldn't you be ...
5 years, 11 months ago (2015-01-21 03:08:38 UTC) #6
Rintaro Kuroiwa
PTAL https://codereview.chromium.org/799233004/diff/100001/remoting/client/plugin/chromoting_instance.cc File remoting/client/plugin/chromoting_instance.cc (right): https://codereview.chromium.org/799233004/diff/100001/remoting/client/plugin/chromoting_instance.cc#newcode219 remoting/client/plugin/chromoting_instance.cc:219: // TODO(rkuroiwa): Add PP_INPUTEVENT_CLASS_TOUCH when ready. On 2015/01/21 ...
5 years, 11 months ago (2015-01-28 01:12:30 UTC) #7
Rintaro Kuroiwa
https://codereview.chromium.org/799233004/diff/100001/remoting/proto/event.proto File remoting/proto/event.proto (right): https://codereview.chromium.org/799233004/diff/100001/remoting/proto/event.proto#newcode111 remoting/proto/event.proto:111: // Unlike x,y coordinates, these will not be scaled. ...
5 years, 10 months ago (2015-01-29 07:37:46 UTC) #8
Sergey Ulanov
https://codereview.chromium.org/799233004/diff/140001/remoting/client/plugin/chromoting_instance.cc File remoting/client/plugin/chromoting_instance.cc (right): https://codereview.chromium.org/799233004/diff/140001/remoting/client/plugin/chromoting_instance.cc#newcode355 remoting/client/plugin/chromoting_instance.cc:355: } else if (method == "sendTouchEvents") { Why do ...
5 years, 10 months ago (2015-01-29 18:00:46 UTC) #10
Sergey Ulanov
https://codereview.chromium.org/799233004/diff/140001/remoting/client/plugin/chromoting_instance.cc File remoting/client/plugin/chromoting_instance.cc (right): https://codereview.chromium.org/799233004/diff/140001/remoting/client/plugin/chromoting_instance.cc#newcode355 remoting/client/plugin/chromoting_instance.cc:355: } else if (method == "sendTouchEvents") { On 2015/01/29 ...
5 years, 10 months ago (2015-01-29 18:06:46 UTC) #11
Rintaro Kuroiwa
ptal https://codereview.chromium.org/799233004/diff/140001/remoting/client/plugin/chromoting_instance.cc File remoting/client/plugin/chromoting_instance.cc (right): https://codereview.chromium.org/799233004/diff/140001/remoting/client/plugin/chromoting_instance.cc#newcode355 remoting/client/plugin/chromoting_instance.cc:355: } else if (method == "sendTouchEvents") { On ...
5 years, 10 months ago (2015-01-30 17:57:03 UTC) #12
Sergey Ulanov
https://codereview.chromium.org/799233004/diff/140001/remoting/proto/event.proto File remoting/proto/event.proto (right): https://codereview.chromium.org/799233004/diff/140001/remoting/proto/event.proto#newcode95 remoting/proto/event.proto:95: optional float radius_x = 4; On 2015/01/30 17:57:02, Rintaro ...
5 years, 10 months ago (2015-02-02 19:32:05 UTC) #13
Rintaro Kuroiwa
https://codereview.chromium.org/799233004/diff/140001/remoting/proto/event.proto File remoting/proto/event.proto (right): https://codereview.chromium.org/799233004/diff/140001/remoting/proto/event.proto#newcode95 remoting/proto/event.proto:95: optional float radius_x = 4; On 2015/02/02 19:32:05, Sergey ...
5 years, 10 months ago (2015-02-02 22:22:56 UTC) #14
Wez
Great! This is looking really good. :) https://codereview.chromium.org/799233004/diff/100001/remoting/client/plugin/chromoting_instance.cc File remoting/client/plugin/chromoting_instance.cc (right): https://codereview.chromium.org/799233004/diff/100001/remoting/client/plugin/chromoting_instance.cc#newcode219 remoting/client/plugin/chromoting_instance.cc:219: // TODO(rkuroiwa): ...
5 years, 10 months ago (2015-02-05 02:09:08 UTC) #15
Rintaro Kuroiwa
PTAL! https://codereview.chromium.org/799233004/diff/100001/remoting/client/plugin/chromoting_instance.cc File remoting/client/plugin/chromoting_instance.cc (right): https://codereview.chromium.org/799233004/diff/100001/remoting/client/plugin/chromoting_instance.cc#newcode219 remoting/client/plugin/chromoting_instance.cc:219: // TODO(rkuroiwa): Add PP_INPUTEVENT_CLASS_TOUCH when ready. On 2015/02/05 ...
5 years, 10 months ago (2015-02-06 23:35:02 UTC) #16
Wez
https://codereview.chromium.org/799233004/diff/200001/remoting/client/plugin/touch_input_scaler_unittest.cc File remoting/client/plugin/touch_input_scaler_unittest.cc (right): https://codereview.chromium.org/799233004/diff/200001/remoting/client/plugin/touch_input_scaler_unittest.cc#newcode26 remoting/client/plugin/touch_input_scaler_unittest.cc:26: // TouchPointCoordinateEqual is within 1 pixel diff, it should ...
5 years, 10 months ago (2015-02-13 16:51:46 UTC) #17
Rintaro Kuroiwa
ptal https://codereview.chromium.org/799233004/diff/240001/remoting/client/plugin/pepper_input_handler.cc File remoting/client/plugin/pepper_input_handler.cc (right): https://codereview.chromium.org/799233004/diff/240001/remoting/client/plugin/pepper_input_handler.cc#newcode41 remoting/client/plugin/pepper_input_handler.cc:41: switch (pp_touch_event.GetType()) { On 2015/02/13 16:51:46, Wez wrote: ...
5 years, 10 months ago (2015-02-17 19:52:12 UTC) #18
Wez
Rintaro, I'd suggest restructuring the CL description a little - have some draft text below. ...
5 years, 10 months ago (2015-02-23 21:59:22 UTC) #19
Wez
LGTM w/ nits! https://codereview.chromium.org/799233004/diff/240001/remoting/client/plugin/touch_input_scaler.cc File remoting/client/plugin/touch_input_scaler.cc (right): https://codereview.chromium.org/799233004/diff/240001/remoting/client/plugin/touch_input_scaler.cc#newcode67 remoting/client/plugin/touch_input_scaler.cc:67: // Also reduce the radii if ...
5 years, 10 months ago (2015-02-23 23:24:08 UTC) #20
Rintaro Kuroiwa
Done! Thanks! https://codereview.chromium.org/799233004/diff/240001/remoting/client/plugin/touch_input_scaler.cc File remoting/client/plugin/touch_input_scaler.cc (right): https://codereview.chromium.org/799233004/diff/240001/remoting/client/plugin/touch_input_scaler.cc#newcode67 remoting/client/plugin/touch_input_scaler.cc:67: // Also reduce the radii if the ...
5 years, 10 months ago (2015-02-24 23:43:10 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/799233004/320001
5 years, 10 months ago (2015-02-26 19:30:05 UTC) #24
commit-bot: I haz the power
Committed patchset #16 (id:320001)
5 years, 10 months ago (2015-02-26 19:42:05 UTC) #25
commit-bot: I haz the power
5 years, 10 months ago (2015-02-26 19:42:37 UTC) #26
Message was sent while issue was closed.
Patchset 16 (id:??) landed as
https://crrev.com/0e68803fd9d34a74646ed1ecc510469c0a98161b
Cr-Commit-Position: refs/heads/master@{#318284}

Powered by Google App Engine
This is Rietveld 408576698