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

Issue 2694103006: Inject vr controller events into Android Native UI. (Closed)

Created:
3 years, 10 months ago by mthiesse
Modified:
3 years, 10 months ago
CC:
agrieve+watch_chromium.org, boliu, chromium-reviews, darin-cc_chromium.org, David Trainor- moved to gerrit, feature-vr-reviews_chromium.org, jam
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Inject vr controller events into Android Native UI. Generalizes the MotionEventSynthesizer to support input into arbitrary Java views, and connects VR controller/gesture output to the MotionEventSynthesizer. This also fixes some rendering bugs where onDraw was not being called after scrolling preventing the texture from updating correctly. BUG=661609 Review-Url: https://codereview.chromium.org/2694103006 Cr-Commit-Position: refs/heads/master@{#453004} Committed: https://chromium.googlesource.com/chromium/src/+/8ba7911391a74da0f186b82801d3d6279a197589

Patch Set 1 #

Patch Set 2 : autoformat #

Total comments: 6

Patch Set 3 : Address comments #

Total comments: 4

Patch Set 4 : Use WindowAndroidProvider #

Patch Set 5 : rebase #

Patch Set 6 : Fix presubmit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+284 lines, -36 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java View 1 2 3 9 chunks +46 lines, -4 lines 0 comments Download
M chrome/browser/android/vr_shell/BUILD.gn View 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/PRESUBMIT.py View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
A chrome/browser/android/vr_shell/android_ui_gesture_target.h View 1 2 1 chunk +54 lines, -0 lines 0 comments Download
A chrome/browser/android/vr_shell/android_ui_gesture_target.cc View 1 2 1 chunk +102 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_controller.h View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_controller.cc View 4 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell.h View 1 2 3 4 4 chunks +8 lines, -3 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell.cc View 1 2 3 4 4 chunks +14 lines, -5 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/MotionEventSynthesizer.java View 1 2 3 10 chunks +46 lines, -12 lines 0 comments Download

Messages

Total messages: 34 (15 generated)
mthiesse
tedchoc@ please review content/public/android changes. bshe@ please review vr_shell/ changes.
3 years, 10 months ago (2017-02-15 22:26:32 UTC) #2
mthiesse
-tedchoc who's OOO, +aelias. Please review content/public/android changes.
3 years, 10 months ago (2017-02-15 23:41:31 UTC) #4
aelias_OOO_until_Jul13
Hmm, we're in the middle of redesigning input dispatching on Android, and this might sit ...
3 years, 10 months ago (2017-02-16 03:29:17 UTC) #6
Jinsuk Kim
On 2017/02/16 03:29:17, aelias wrote: > Hmm, we're in the middle of redesigning input dispatching ...
3 years, 10 months ago (2017-02-16 04:14:48 UTC) #7
cjgrant
https://codereview.chromium.org/2694103006/diff/20001/chrome/browser/android/vr_shell/android_ui_gesture_target.cc File chrome/browser/android/vr_shell/android_ui_gesture_target.cc (right): https://codereview.chromium.org/2694103006/diff/20001/chrome/browser/android/vr_shell/android_ui_gesture_target.cc#newcode85 chrome/browser/android/vr_shell/android_ui_gesture_target.cc:85: void AndroidUiGestureTarget::SetScrollDeltas(JNIEnv* env, nit: I think the style guide ...
3 years, 10 months ago (2017-02-16 15:29:34 UTC) #9
mthiesse
On 2017/02/16 04:14:48, Jinsuk Kim wrote: > On 2017/02/16 03:29:17, aelias wrote: > > Hmm, ...
3 years, 10 months ago (2017-02-16 15:53:32 UTC) #10
mthiesse
https://codereview.chromium.org/2694103006/diff/20001/chrome/browser/android/vr_shell/android_ui_gesture_target.cc File chrome/browser/android/vr_shell/android_ui_gesture_target.cc (right): https://codereview.chromium.org/2694103006/diff/20001/chrome/browser/android/vr_shell/android_ui_gesture_target.cc#newcode85 chrome/browser/android/vr_shell/android_ui_gesture_target.cc:85: void AndroidUiGestureTarget::SetScrollDeltas(JNIEnv* env, On 2017/02/16 15:29:34, cjgrant wrote: > ...
3 years, 10 months ago (2017-02-16 15:53:50 UTC) #11
aelias_OOO_until_Jul13
content/public/android/ lgtm
3 years, 10 months ago (2017-02-17 00:29:22 UTC) #12
Ted C
https://codereview.chromium.org/2694103006/diff/40001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java File content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java (right): https://codereview.chromium.org/2694103006/diff/40001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java#newcode2000 content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java:2000: return new MotionEventSynthesizer(getContainerView(), getWindowAndroid()); when is this created/lifetime? the ...
3 years, 10 months ago (2017-02-17 05:30:07 UTC) #14
mthiesse
https://codereview.chromium.org/2694103006/diff/40001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java File content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java (right): https://codereview.chromium.org/2694103006/diff/40001/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java#newcode2000 content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java:2000: return new MotionEventSynthesizer(getContainerView(), getWindowAndroid()); On 2017/02/17 05:30:07, Ted C ...
3 years, 10 months ago (2017-02-21 21:44:55 UTC) #15
Ted C
https://codereview.chromium.org/2694103006/diff/40001/content/public/android/java/src/org/chromium/content/browser/MotionEventSynthesizer.java File content/public/android/java/src/org/chromium/content/browser/MotionEventSynthesizer.java (right): https://codereview.chromium.org/2694103006/diff/40001/content/public/android/java/src/org/chromium/content/browser/MotionEventSynthesizer.java#newcode39 content/public/android/java/src/org/chromium/content/browser/MotionEventSynthesizer.java:39: public MotionEventSynthesizer(View target, WindowAndroid window) { actually, could this ...
3 years, 10 months ago (2017-02-22 05:21:25 UTC) #16
mthiesse
https://codereview.chromium.org/2694103006/diff/40001/content/public/android/java/src/org/chromium/content/browser/MotionEventSynthesizer.java File content/public/android/java/src/org/chromium/content/browser/MotionEventSynthesizer.java (right): https://codereview.chromium.org/2694103006/diff/40001/content/public/android/java/src/org/chromium/content/browser/MotionEventSynthesizer.java#newcode39 content/public/android/java/src/org/chromium/content/browser/MotionEventSynthesizer.java:39: public MotionEventSynthesizer(View target, WindowAndroid window) { On 2017/02/22 05:21:25, ...
3 years, 10 months ago (2017-02-23 23:41:47 UTC) #17
bshe
On 2017/02/23 23:41:47, mthiesse wrote: > https://codereview.chromium.org/2694103006/diff/40001/content/public/android/java/src/org/chromium/content/browser/MotionEventSynthesizer.java > File > content/public/android/java/src/org/chromium/content/browser/MotionEventSynthesizer.java > (right): > > ...
3 years, 10 months ago (2017-02-24 16:44:27 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2694103006/60001
3 years, 10 months ago (2017-02-24 16:59:31 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-xcode-clang/builds/45246)
3 years, 10 months ago (2017-02-24 17:02:13 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2694103006/80001
3 years, 10 months ago (2017-02-24 19:00:03 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/372554)
3 years, 10 months ago (2017-02-24 19:15:05 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2694103006/100001
3 years, 10 months ago (2017-02-24 20:23:38 UTC) #31
commit-bot: I haz the power
3 years, 10 months ago (2017-02-25 00:00:13 UTC) #34
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/8ba7911391a74da0f186b82801d3...

Powered by Google App Engine
This is Rietveld 408576698