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

Issue 2878543002: Refactor VR Shell Input. Locks input to click/scroll targets. (Closed)

Created:
3 years, 7 months ago by mthiesse
Modified:
3 years, 7 months ago
Reviewers:
asimjour1, cjgrant
CC:
chromium-reviews, feature-vr-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor VR Shell Input. Locks input to click/scroll targets. This CL refactors input paths to more closely align the content input and skia input paths. We also now lock input to the scroll/click target. This CL also adds a button with hover/down states. TODO: Actually look at the passed in coordinates to see if the hover/down states should be applied. Review-Url: https://codereview.chromium.org/2878543002 Cr-Commit-Position: refs/heads/master@{#471019} Committed: https://chromium.googlesource.com/chromium/src/+/fb2492ce3f4bf8d9e151f3759b42be6aca6155c4

Patch Set 1 #

Total comments: 21

Patch Set 2 : Address comments #

Patch Set 3 : Remove z-axis change #

Patch Set 4 : DrawFlags() -> GetDrawFlags() #

Patch Set 5 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+631 lines, -262 lines) Patch
M chrome/browser/android/vr_shell/BUILD.gn View 2 chunks +4 lines, -0 lines 0 comments Download
A chrome/browser/android/vr_shell/textures/close_button_texture.h View 1 chunk +32 lines, -0 lines 0 comments Download
A chrome/browser/android/vr_shell/textures/close_button_texture.cc View 1 2 3 1 chunk +65 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/textures/ui_texture.h View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/textures/ui_texture.cc View 1 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/textures/url_bar_texture.h View 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/android/vr_shell/textures/url_bar_texture.cc View 1 2 3 2 chunks +2 lines, -5 lines 0 comments Download
A chrome/browser/android/vr_shell/ui_elements/close_button.h View 1 chunk +43 lines, -0 lines 0 comments Download
A chrome/browser/android/vr_shell/ui_elements/close_button.cc View 1 1 chunk +56 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_elements/ui_element.h View 5 chunks +9 lines, -7 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_elements/ui_element.cc View 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_elements/url_bar.h View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_elements/url_bar.cc View 1 1 chunk +6 lines, -4 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_scene_manager.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_scene_manager.cc View 5 chunks +22 lines, -1 line 0 comments Download
M chrome/browser/android/vr_shell/vr_controller.h View 4 chunks +10 lines, -9 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_controller.cc View 1 2 3 4 9 chunks +23 lines, -26 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell_gl.h View 1 2 3 4 4 chunks +39 lines, -16 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell_gl.cc View 1 2 3 4 8 chunks +292 lines, -186 lines 0 comments Download

Messages

Total messages: 22 (10 generated)
mthiesse
PTAL
3 years, 7 months ago (2017-05-10 19:24:31 UTC) #2
cjgrant
A little bit of faith in this review, as it's really hard to trace all ...
3 years, 7 months ago (2017-05-10 20:16:26 UTC) #3
mthiesse
https://codereview.chromium.org/2878543002/diff/1/chrome/browser/android/vr_shell/textures/ui_texture.h File chrome/browser/android/vr_shell/textures/ui_texture.h (right): https://codereview.chromium.org/2878543002/diff/1/chrome/browser/android/vr_shell/textures/ui_texture.h#newcode30 chrome/browser/android/vr_shell/textures/ui_texture.h:30: // Returns true if the state changed. On 2017/05/10 ...
3 years, 7 months ago (2017-05-10 21:09:08 UTC) #4
cjgrant
lgtm
3 years, 7 months ago (2017-05-10 21:52:09 UTC) #7
asimjour1
https://codereview.chromium.org/2878543002/diff/1/chrome/browser/android/vr_shell/vr_controller.cc File chrome/browser/android/vr_shell/vr_controller.cc (right): https://codereview.chromium.org/2878543002/diff/1/chrome/browser/android/vr_shell/vr_controller.cc#newcode340 chrome/browser/android/vr_shell/vr_controller.cc:340: !ButtonState(gvr::kControllerButtonClick)) { Do we need both !ButtonDownHappened and !ButtonState ...
3 years, 7 months ago (2017-05-11 12:31:12 UTC) #9
mthiesse
https://codereview.chromium.org/2878543002/diff/1/chrome/browser/android/vr_shell/vr_controller.cc File chrome/browser/android/vr_shell/vr_controller.cc (right): https://codereview.chromium.org/2878543002/diff/1/chrome/browser/android/vr_shell/vr_controller.cc#newcode340 chrome/browser/android/vr_shell/vr_controller.cc:340: !ButtonState(gvr::kControllerButtonClick)) { On 2017/05/11 12:31:12, asimjour1 wrote: > Do ...
3 years, 7 months ago (2017-05-11 14:12:00 UTC) #10
asimjour1
On 2017/05/11 14:12:00, mthiesse wrote: > https://codereview.chromium.org/2878543002/diff/1/chrome/browser/android/vr_shell/vr_controller.cc > File chrome/browser/android/vr_shell/vr_controller.cc (right): > > https://codereview.chromium.org/2878543002/diff/1/chrome/browser/android/vr_shell/vr_controller.cc#newcode340 > ...
3 years, 7 months ago (2017-05-11 14:12:34 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/2878543002/140001
3 years, 7 months ago (2017-05-11 14:15:03 UTC) #14
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/175954)
3 years, 7 months ago (2017-05-11 16:38:30 UTC) #16
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/2878543002/140001
3 years, 7 months ago (2017-05-11 16:41:32 UTC) #18
commit-bot: I haz the power
Committed patchset #5 (id:140001) as https://chromium.googlesource.com/chromium/src/+/fb2492ce3f4bf8d9e151f3759b42be6aca6155c4
3 years, 7 months ago (2017-05-11 18:40:26 UTC) #21
findit-for-me
3 years, 7 months ago (2017-05-12 02:13:11 UTC) #22
Message was sent while issue was closed.
Findit (https://goo.gl/kROfz5) identified this CL at revision 471019 as the
culprit for
failures in the build cycles as shown on:
https://findit-for-me.appspot.com/waterfall/culprit?key=ag9zfmZpbmRpdC1mb3Itb...

Powered by Google App Engine
This is Rietveld 408576698