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

Issue 1430623004: blimp: Add support for input handling (Closed)

Created:
5 years, 1 month ago by Khushal
Modified:
4 years, 7 months ago
CC:
chromium-reviews, James Su, maniscalco+watch-blimp_chromium.org, sriramsr+watch-blimp_chromium.org, tdresser+watch_chromium.org, shuchen+watch_chromium.org, jam, nyquist+watch-blimp_chromium.org, nona+watch_chromium.org, marcinjb+watch-blimp_chromium.org, kmarshall+watch-blimp_chromium.org, darin-cc_chromium.org, dtrainor+watch-blimp_chromium.org, yusukes+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

blimp: Add support for basic input handling. - Add BlimpInputManager to store all input state for the current render widget. - Grab and convert Android motion events to ui::MotionEvent sent to the BlimpInputManager to generate WebGestureEvents using ui::FilteredGestureProvider. - Forward the WebInputEvents to the ui::InputHandlerProxy to be handled by the cc::InputHandler on the compositor thread. - Send the WebInputEvents not handled by the compositor to the engine. BUG=548806 Committed: https://crrev.com/0f46911a547ea49a6461da202d0b49d10309be05 Cr-Commit-Position: refs/heads/master@{#363928}

Patch Set 1 #

Total comments: 19

Patch Set 2 : Add BlimpInputManager #

Patch Set 3 : Address comments. #

Total comments: 5

Patch Set 4 : Rebase. #

Patch Set 5 : Change shutdown. #

Patch Set 6 : format fix. #

Total comments: 6

Patch Set 7 : Move all input handling on compositor thread to BlimpInputHandlerWrapper. #

Total comments: 14

Patch Set 8 : "Add dtor for BlimpInputHandlerWrapper" #

Total comments: 2

Patch Set 9 : Addressed nyquist@'s comments. #

Total comments: 2

Patch Set 10 : fix build error. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+637 lines, -3 lines) Patch
M blimp/client/BUILD.gn View 1 2 3 4 5 6 7 8 9 2 chunks +10 lines, -0 lines 0 comments Download
M blimp/client/DEPS View 1 1 chunk +5 lines, -0 lines 0 comments Download
M blimp/client/android/blimp_view.h View 1 2 2 chunks +30 lines, -0 lines 0 comments Download
M blimp/client/android/blimp_view.cc View 1 2 3 chunks +65 lines, -1 line 0 comments Download
M blimp/client/android/java/src/org/chromium/blimp/BlimpView.java View 1 2 3 4 5 6 7 8 4 chunks +56 lines, -0 lines 0 comments Download
M blimp/client/compositor/blimp_compositor.h View 1 5 chunks +16 lines, -2 lines 0 comments Download
M blimp/client/compositor/blimp_compositor.cc View 1 2 3 5 chunks +30 lines, -0 lines 0 comments Download
A blimp/client/input/blimp_input_handler_wrapper.h View 1 2 3 4 5 6 7 8 1 chunk +67 lines, -0 lines 0 comments Download
A blimp/client/input/blimp_input_handler_wrapper.cc View 1 2 3 4 5 6 7 1 chunk +97 lines, -0 lines 0 comments Download
A blimp/client/input/blimp_input_manager.h View 1 2 3 4 5 6 7 8 1 chunk +106 lines, -0 lines 0 comments Download
A blimp/client/input/blimp_input_manager.cc View 1 2 3 4 5 6 7 8 1 chunk +155 lines, -0 lines 0 comments Download

Messages

Total messages: 36 (13 generated)
David Trainor- moved to gerrit
general review. working on build problem :). https://chromiumcodereview.appspot.com/1430623004/diff/1/blimp/client/android/blimp_input_manager.h File blimp/client/android/blimp_input_manager.h (right): https://chromiumcodereview.appspot.com/1430623004/diff/1/blimp/client/android/blimp_input_manager.h#newcode6 blimp/client/android/blimp_input_manager.h:6: #include "base/macros.h" ...
5 years, 1 month ago (2015-11-02 16:55:30 UTC) #3
Khushal
On 2015/11/02 16:55:30, David Trainor wrote: > general review. working on build problem :). > ...
5 years, 1 month ago (2015-11-03 18:19:40 UTC) #4
Khushal
Updated the patch to move all input handling to the BlimpInputManager and tied it to ...
5 years ago (2015-12-01 08:22:25 UTC) #6
David Trainor- moved to gerrit
https://codereview.chromium.org/1430623004/diff/40001/blimp/client/input/blimp_input_manager.cc File blimp/client/input/blimp_input_manager.cc (right): https://codereview.chromium.org/1430623004/diff/40001/blimp/client/input/blimp_input_manager.cc#newcode43 blimp/client/input/blimp_input_manager.cc:43: base::Unretained(this), input_handler)); Are we sure we want unretained for ...
5 years ago (2015-12-02 03:49:06 UTC) #7
Khushal
https://codereview.chromium.org/1430623004/diff/40001/blimp/client/input/blimp_input_manager.cc File blimp/client/input/blimp_input_manager.cc (right): https://codereview.chromium.org/1430623004/diff/40001/blimp/client/input/blimp_input_manager.cc#newcode43 blimp/client/input/blimp_input_manager.cc:43: base::Unretained(this), input_handler)); On 2015/12/02 03:49:06, David Trainor wrote: > ...
5 years ago (2015-12-03 11:31:38 UTC) #9
Khushal
https://codereview.chromium.org/1430623004/diff/40001/blimp/client/input/blimp_input_manager.cc File blimp/client/input/blimp_input_manager.cc (right): https://codereview.chromium.org/1430623004/diff/40001/blimp/client/input/blimp_input_manager.cc#newcode43 blimp/client/input/blimp_input_manager.cc:43: base::Unretained(this), input_handler)); On 2015/12/03 11:31:38, Khushal wrote: > On ...
5 years ago (2015-12-03 12:44:31 UTC) #10
David Trainor- moved to gerrit
https://codereview.chromium.org/1430623004/diff/100001/blimp/client/compositor/blimp_compositor.cc File blimp/client/compositor/blimp_compositor.cc (right): https://codereview.chromium.org/1430623004/diff/100001/blimp/client/compositor/blimp_compositor.cc#newcode166 blimp/client/compositor/blimp_compositor.cc:166: void BlimpCompositor::DidInitializeOutputSurface() { revert? https://codereview.chromium.org/1430623004/diff/100001/blimp/client/input/blimp_input_manager.h File blimp/client/input/blimp_input_manager.h (right): https://codereview.chromium.org/1430623004/diff/100001/blimp/client/input/blimp_input_manager.h#newcode37 ...
5 years ago (2015-12-03 16:14:04 UTC) #11
Khushal
Moved all code for input handling on compositor thread to BlimpInputHandlerWrapper. I anticipate we'll add ...
5 years ago (2015-12-04 21:54:51 UTC) #12
David Trainor- moved to gerrit
lgtm
5 years ago (2015-12-04 22:19:53 UTC) #13
Khushal
tdresser@, could you review the ui/ DEPS. rbyers@, could you review the DEPS for web ...
5 years ago (2015-12-04 23:11:23 UTC) #16
nyquist
https://codereview.chromium.org/1430623004/diff/120001/blimp/client/android/java/src/org/chromium/blimp/BlimpView.java File blimp/client/android/java/src/org/chromium/blimp/BlimpView.java (right): https://codereview.chromium.org/1430623004/diff/120001/blimp/client/android/java/src/org/chromium/blimp/BlimpView.java#newcode99 blimp/client/android/java/src/org/chromium/blimp/BlimpView.java:99: final int pointerCount = event.getPointerCount(); Nit: unnecessary final here ...
5 years ago (2015-12-05 01:54:42 UTC) #17
tdresser
https://codereview.chromium.org/1430623004/diff/140001/blimp/client/BUILD.gn File blimp/client/BUILD.gn (right): https://codereview.chromium.org/1430623004/diff/140001/blimp/client/BUILD.gn#newcode45 blimp/client/BUILD.gn:45: "//ui/events", There was a time when Android didn't depend ...
5 years ago (2015-12-07 14:32:44 UTC) #18
Khushal
https://codereview.chromium.org/1430623004/diff/140001/blimp/client/BUILD.gn File blimp/client/BUILD.gn (right): https://codereview.chromium.org/1430623004/diff/140001/blimp/client/BUILD.gn#newcode45 blimp/client/BUILD.gn:45: "//ui/events", On 2015/12/07 14:32:44, tdresser wrote: > There was ...
5 years ago (2015-12-07 19:21:58 UTC) #19
Rick Byers
DEPS LGTM
5 years ago (2015-12-07 20:17:04 UTC) #20
Khushal
https://codereview.chromium.org/1430623004/diff/120001/blimp/client/android/java/src/org/chromium/blimp/BlimpView.java File blimp/client/android/java/src/org/chromium/blimp/BlimpView.java (right): https://codereview.chromium.org/1430623004/diff/120001/blimp/client/android/java/src/org/chromium/blimp/BlimpView.java#newcode99 blimp/client/android/java/src/org/chromium/blimp/BlimpView.java:99: final int pointerCount = event.getPointerCount(); On 2015/12/05 01:54:42, nyquist ...
5 years ago (2015-12-07 23:01:22 UTC) #21
tdresser
On 2015/12/07 23:01:22, Khushal wrote: > https://codereview.chromium.org/1430623004/diff/120001/blimp/client/android/java/src/org/chromium/blimp/BlimpView.java > File blimp/client/android/java/src/org/chromium/blimp/BlimpView.java (right): > > https://codereview.chromium.org/1430623004/diff/120001/blimp/client/android/java/src/org/chromium/blimp/BlimpView.java#newcode99 > ...
5 years ago (2015-12-08 13:07:16 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1430623004/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1430623004/160001
5 years ago (2015-12-08 18:25:48 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/152446)
5 years ago (2015-12-08 19:06:48 UTC) #27
nyquist
lgtm https://codereview.chromium.org/1430623004/diff/160001/blimp/client/android/blimp_view.cc File blimp/client/android/blimp_view.cc (right): https://codereview.chromium.org/1430623004/diff/160001/blimp/client/android/blimp_view.cc#newcode127 blimp/client/android/blimp_view.cc:127: ui::MotionEventAndroid::Pointer pointer0(pointer_id_0, Seems like you're hitting an issue ...
5 years ago (2015-12-08 22:24:24 UTC) #28
Khushal
https://codereview.chromium.org/1430623004/diff/160001/blimp/client/android/blimp_view.cc File blimp/client/android/blimp_view.cc (right): https://codereview.chromium.org/1430623004/diff/160001/blimp/client/android/blimp_view.cc#newcode127 blimp/client/android/blimp_view.cc:127: ui::MotionEventAndroid::Pointer pointer0(pointer_id_0, On 2015/12/08 22:24:24, nyquist wrote: > Seems ...
5 years ago (2015-12-09 00:40:44 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1430623004/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1430623004/180001
5 years ago (2015-12-09 00:46:08 UTC) #32
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years ago (2015-12-09 02:28:02 UTC) #34
commit-bot: I haz the power
5 years ago (2015-12-09 02:29:39 UTC) #36
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/0f46911a547ea49a6461da202d0b49d10309be05
Cr-Commit-Position: refs/heads/master@{#363928}

Powered by Google App Engine
This is Rietveld 408576698