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

Issue 2879973002: Expose Gamepad API instance for Cardboard button (Closed)

Created:
3 years, 7 months ago by billorr
Modified:
3 years, 7 months ago
Reviewers:
billorr1, mthiesse, bajones
CC:
chromium-reviews, feature-vr-reviews_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Expose Gamepad API instance for Cardboard button This change exposes a gamepad with a single button, which is driven by the touch screen. BUG=718665 Review-Url: https://codereview.chromium.org/2879973002 Cr-Commit-Position: refs/heads/master@{#473986} Committed: https://chromium.googlesource.com/chromium/src/+/6ca5bedb3683ccf3db53fbad5bb93c60233c368b

Patch Set 1 #

Total comments: 6

Patch Set 2 : rebase #

Total comments: 4

Patch Set 3 : move to a new cardboard gamepad data fetcher #

Total comments: 8

Patch Set 4 : cr feedback #

Patch Set 5 : rebase #

Patch Set 6 : fix crash in tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+334 lines, -44 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java View 1 2 3 4 4 chunks +7 lines, -25 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_scene_manager_unittest.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_browser_interface.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_gl_thread.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_gl_thread.cc View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell.h View 1 2 3 4 6 chunks +19 lines, -6 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell.cc View 1 2 3 4 5 4 chunks +62 lines, -10 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell_gl.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell_gl.cc View 1 2 3 4 3 chunks +12 lines, -1 line 0 comments Download
M device/gamepad/gamepad_pad_state_provider.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M device/vr/BUILD.gn View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
A device/vr/android/gvr/cardboard_gamepad_data_fetcher.h View 1 2 1 chunk +51 lines, -0 lines 0 comments Download
A device/vr/android/gvr/cardboard_gamepad_data_fetcher.cc View 1 2 3 1 chunk +111 lines, -0 lines 0 comments Download
A device/vr/android/gvr/cardboard_gamepad_data_provider.h View 1 2 1 chunk +56 lines, -0 lines 0 comments Download
M device/vr/android/gvr/gvr_gamepad_data_fetcher.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M device/vr/android/gvr/gvr_gamepad_data_provider.h View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 28 (16 generated)
billorr1
Michael, please take a look. I know I'll have to rebase on your controller refactor, ...
3 years, 7 months ago (2017-05-12 18:25:42 UTC) #2
billorr1
https://codereview.chromium.org/2879973002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java File chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java (right): https://codereview.chromium.org/2879973002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java#newcode238 chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java:238: && (event.getActionMasked() == MotionEvent.ACTION_UP On 2017/05/12 18:25:41, billorr1 wrote: ...
3 years, 7 months ago (2017-05-15 23:04:17 UTC) #3
mthiesse
We really shouldn't be re-using the gvrGamepadDataFetcher for this. We should add a much simpler ...
3 years, 7 months ago (2017-05-16 00:44:38 UTC) #4
billorr1
On 2017/05/16 00:44:38, mthiesse wrote: > We really shouldn't be re-using the gvrGamepadDataFetcher for this. ...
3 years, 7 months ago (2017-05-17 01:21:28 UTC) #5
mthiesse
On 2017/05/17 01:21:28, billorr1 wrote: > On 2017/05/16 00:44:38, mthiesse wrote: > > We really ...
3 years, 7 months ago (2017-05-17 03:24:58 UTC) #6
mthiesse
lgtm, but please have brandon review the new gamepad device, as he knows this code ...
3 years, 7 months ago (2017-05-18 18:31:35 UTC) #8
bajones
LGTM https://codereview.chromium.org/2879973002/diff/40001/device/vr/android/gvr/cardboard_gamepad_data_fetcher.cc File device/vr/android/gvr/cardboard_gamepad_data_fetcher.cc (right): https://codereview.chromium.org/2879973002/diff/40001/device/vr/android/gvr/cardboard_gamepad_data_fetcher.cc#newcode89 device/vr/android/gvr/cardboard_gamepad_data_fetcher.cc:89: base::UTF8ToUTF16("Cardboard Controller")); Nit: This sounds weird in this ...
3 years, 7 months ago (2017-05-19 22:38:40 UTC) #9
billorr
https://codereview.chromium.org/2879973002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java File chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java (right): https://codereview.chromium.org/2879973002/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java#newcode233 chrome/android/java/src/org/chromium/chrome/browser/vr_shell/VrShellImpl.java:233: if (event.getActionMasked() == MotionEvent.ACTION_UP On 2017/05/18 18:31:35, mthiesse wrote: ...
3 years, 7 months ago (2017-05-22 20:11:09 UTC) #11
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/2879973002/80001
3 years, 7 months ago (2017-05-22 21:27:32 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/183858)
3 years, 7 months ago (2017-05-23 00:14:18 UTC) #22
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/2879973002/100001
3 years, 7 months ago (2017-05-23 16:59:43 UTC) #25
commit-bot: I haz the power
3 years, 7 months ago (2017-05-23 18:21:43 UTC) #28
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/6ca5bedb3683ccf3db53fbad5bb9...

Powered by Google App Engine
This is Rietveld 408576698