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

Issue 2840183003: VR: Route hover and click events to UI elements. (Closed)

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

Description

VR: Route hover and click events to UI elements. This change maps VR controller input to non-content UI elements. The content element is treated separately, so that it can handle scrolling and fling-type input (these are currently not useful to other elements). BUG=715554 Review-Url: https://codereview.chromium.org/2840183003 Cr-Commit-Position: refs/heads/master@{#467673} Committed: https://chromium.googlesource.com/chromium/src/+/730e3cee9100751b3fb33c40f58c68e246e483be

Patch Set 1 #

Total comments: 6

Patch Set 2 : Offer both OnButtonDown() and OnButtonUp(), rather than a combined OnClick() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -24 lines) Patch
M chrome/browser/android/vr_shell/ui_elements/ui_element.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/ui_elements/ui_element.cc View 1 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell_gl.h View 2 chunks +11 lines, -4 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_shell_gl.cc View 1 7 chunks +56 lines, -20 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
cjgrant
Folks, here's the initial input targeting for native UI elements. I have a button base ...
3 years, 8 months ago (2017-04-26 14:36:16 UTC) #2
mthiesse
https://codereview.chromium.org/2840183003/diff/1/chrome/browser/android/vr_shell/ui_elements/ui_element.h File chrome/browser/android/vr_shell/ui_elements/ui_element.h (right): https://codereview.chromium.org/2840183003/diff/1/chrome/browser/android/vr_shell/ui_elements/ui_element.h#newcode108 chrome/browser/android/vr_shell/ui_elements/ui_element.h:108: virtual void OnMouseEnter(); On 2017/04/26 14:36:16, cjgrant wrote: > ...
3 years, 8 months ago (2017-04-26 16:09:50 UTC) #3
asimjour1
https://codereview.chromium.org/2840183003/diff/1/chrome/browser/android/vr_shell/vr_shell_gl.cc File chrome/browser/android/vr_shell/vr_shell_gl.cc (right): https://codereview.chromium.org/2840183003/diff/1/chrome/browser/android/vr_shell/vr_shell_gl.cc#newcode776 chrome/browser/android/vr_shell/vr_shell_gl.cc:776: click_target_element_ = target_element; On 2017/04/26 16:09:49, mthiesse wrote: > ...
3 years, 8 months ago (2017-04-26 16:16:25 UTC) #4
mthiesse
https://codereview.chromium.org/2840183003/diff/1/chrome/browser/android/vr_shell/vr_shell_gl.cc File chrome/browser/android/vr_shell/vr_shell_gl.cc (right): https://codereview.chromium.org/2840183003/diff/1/chrome/browser/android/vr_shell/vr_shell_gl.cc#newcode776 chrome/browser/android/vr_shell/vr_shell_gl.cc:776: click_target_element_ = target_element; On 2017/04/26 16:16:25, asimjour1 wrote: > ...
3 years, 8 months ago (2017-04-26 16:17:45 UTC) #5
cjgrant
On 2017/04/26 16:17:45, mthiesse wrote: > https://codereview.chromium.org/2840183003/diff/1/chrome/browser/android/vr_shell/vr_shell_gl.cc > File chrome/browser/android/vr_shell/vr_shell_gl.cc (right): > > https://codereview.chromium.org/2840183003/diff/1/chrome/browser/android/vr_shell/vr_shell_gl.cc#newcode776 > ...
3 years, 8 months ago (2017-04-26 18:19:42 UTC) #6
cjgrant
https://codereview.chromium.org/2840183003/diff/1/chrome/browser/android/vr_shell/vr_shell_gl.cc File chrome/browser/android/vr_shell/vr_shell_gl.cc (right): https://codereview.chromium.org/2840183003/diff/1/chrome/browser/android/vr_shell/vr_shell_gl.cc#newcode776 chrome/browser/android/vr_shell/vr_shell_gl.cc:776: click_target_element_ = target_element; On 2017/04/26 16:17:45, mthiesse wrote: > ...
3 years, 8 months ago (2017-04-26 21:16:00 UTC) #7
mthiesse
lgtm
3 years, 8 months ago (2017-04-26 21:27:10 UTC) #8
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/2840183003/20001
3 years, 7 months ago (2017-04-27 14:10:58 UTC) #10
commit-bot: I haz the power
3 years, 7 months ago (2017-04-27 14:58:12 UTC) #13
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/730e3cee9100751b3fb33c40f58c...

Powered by Google App Engine
This is Rietveld 408576698