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

Issue 2350253004: Controller support for VrShell (Closed)

Created:
4 years, 3 months ago by asimjour1
Modified:
4 years, 2 months ago
CC:
chromium-reviews, jam, darin-cc_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Controller support for VrShell VrControllerManager has an instance of the VrController which detects the scroll and click gestures. VrControllerManager also is responsible for sending the generated events to the UI Thread. BUG=641461 Committed: https://crrev.com/230e7a29d98a166df6de4b9518e631dff553a739 Cr-Commit-Position: refs/heads/master@{#422179}

Patch Set 1 #

Total comments: 89

Patch Set 2 : renamed vr_content_view_core to vr_input_manager #

Patch Set 3 : removed unused files #

Total comments: 33

Patch Set 4 : rebased + moved vr_input_manager #

Total comments: 66

Patch Set 5 : Controller support for VrShell #

Total comments: 4

Patch Set 6 : Controller support for VrShell #

Total comments: 4

Patch Set 7 : Controller support for VrShell #

Total comments: 3

Patch Set 8 : Removed GestureType #

Total comments: 8

Patch Set 9 : Clean up #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1001 lines, -0 lines) Patch
M chrome/browser/android/vr_shell/BUILD.gn View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
A chrome/browser/android/vr_shell/vr_controller.h View 1 2 3 4 5 6 7 8 1 chunk +147 lines, -0 lines 0 comments Download
A chrome/browser/android/vr_shell/vr_controller.cc View 1 2 3 4 5 6 7 8 1 chunk +351 lines, -0 lines 0 comments Download
A chrome/browser/android/vr_shell/vr_controller_manager.h View 1 2 3 4 5 6 7 1 chunk +56 lines, -0 lines 0 comments Download
A chrome/browser/android/vr_shell/vr_controller_manager.cc View 1 2 3 4 5 6 7 1 chunk +70 lines, -0 lines 0 comments Download
A chrome/browser/android/vr_shell/vr_gesture.h View 1 2 3 4 5 6 7 8 1 chunk +98 lines, -0 lines 0 comments Download
A chrome/browser/android/vr_shell/vr_input_manager.h View 1 2 3 4 1 chunk +62 lines, -0 lines 0 comments Download
A chrome/browser/android/vr_shell/vr_input_manager.cc View 1 2 3 4 1 chunk +210 lines, -0 lines 0 comments Download

Messages

Total messages: 52 (12 generated)
bshe
some format nits https://codereview.chromium.org/2350253004/diff/1/chrome/browser/android/vr_shell/vr_controller.cc File chrome/browser/android/vr_shell/vr_controller.cc (right): https://codereview.chromium.org/2350253004/diff/1/chrome/browser/android/vr_shell/vr_controller.cc#newcode15 chrome/browser/android/vr_shell/vr_controller.cc:15: inline void clamp_touchpad_position(vec2f* position) { nit: ...
4 years, 3 months ago (2016-09-21 15:18:41 UTC) #3
mthiesse
Going for lunch, will review more after. https://codereview.chromium.org/2350253004/diff/1/chrome/browser/android/vr_shell/vr_controller.cc File chrome/browser/android/vr_shell/vr_controller.cc (right): https://codereview.chromium.org/2350253004/diff/1/chrome/browser/android/vr_shell/vr_controller.cc#newcode54 chrome/browser/android/vr_shell/vr_controller.cc:54: VrController::VrController(gvr_context_* vr_context) ...
4 years, 3 months ago (2016-09-21 16:13:44 UTC) #4
mthiesse
What's the purpose of vr_controller_manager? It looks to me like it's entirely unnecessary, and just ...
4 years, 3 months ago (2016-09-21 17:27:47 UTC) #5
mthiesse
https://codereview.chromium.org/2350253004/diff/1/content/browser/android/vr_content_view_core_impl_delegate.cc File content/browser/android/vr_content_view_core_impl_delegate.cc (right): https://codereview.chromium.org/2350253004/diff/1/content/browser/android/vr_content_view_core_impl_delegate.cc#newcode41 content/browser/android/vr_content_view_core_impl_delegate.cc:41: // static newline https://codereview.chromium.org/2350253004/diff/1/content/browser/android/vr_content_view_core_impl_delegate.h File content/browser/android/vr_content_view_core_impl_delegate.h (right): https://codereview.chromium.org/2350253004/diff/1/content/browser/android/vr_content_view_core_impl_delegate.h#newcode17 content/browser/android/vr_content_view_core_impl_delegate.h:17: ...
4 years, 3 months ago (2016-09-21 17:43:28 UTC) #6
asimjour
https://codereview.chromium.org/2350253004/diff/1/chrome/browser/android/vr_shell/vr_controller.cc File chrome/browser/android/vr_shell/vr_controller.cc (right): https://codereview.chromium.org/2350253004/diff/1/chrome/browser/android/vr_shell/vr_controller.cc#newcode15 chrome/browser/android/vr_shell/vr_controller.cc:15: inline void clamp_touchpad_position(vec2f* position) { On 2016/09/21 15:18:41, bshe ...
4 years, 3 months ago (2016-09-22 14:48:37 UTC) #8
mthiesse
https://codereview.chromium.org/2350253004/diff/40001/chrome/browser/android/vr_shell/vr_controller.cc File chrome/browser/android/vr_shell/vr_controller.cc (right): https://codereview.chromium.org/2350253004/diff/40001/chrome/browser/android/vr_shell/vr_controller.cc#newcode39 chrome/browser/android/vr_shell/vr_controller.cc:39: inline void VectSetZero(gvr_vec2f* v) { replace gvr_ with gvr:: ...
4 years, 3 months ago (2016-09-22 16:20:12 UTC) #11
boliu
https://codereview.chromium.org/2350253004/diff/40001/content/browser/BUILD.gn File content/browser/BUILD.gn (right): https://codereview.chromium.org/2350253004/diff/40001/content/browser/BUILD.gn#newcode1678 content/browser/BUILD.gn:1678: "android/vr_input_manager_impl.cc", is VR behind a compile-time flag? https://codereview.chromium.org/2350253004/diff/40001/content/public/browser/android/vr_input_manager.h File ...
4 years, 3 months ago (2016-09-22 16:33:35 UTC) #12
mthiesse
https://codereview.chromium.org/2350253004/diff/40001/content/public/browser/android/vr_input_manager.h File content/public/browser/android/vr_input_manager.h (right): https://codereview.chromium.org/2350253004/diff/40001/content/public/browser/android/vr_input_manager.h#newcode19 content/public/browser/android/vr_input_manager.h:19: class CONTENT_EXPORT VrInputManager { On 2016/09/22 16:33:35, boliu wrote: ...
4 years, 3 months ago (2016-09-22 17:13:08 UTC) #13
mthiesse
https://codereview.chromium.org/2350253004/diff/40001/content/public/browser/android/vr_input_manager.h File content/public/browser/android/vr_input_manager.h (right): https://codereview.chromium.org/2350253004/diff/40001/content/public/browser/android/vr_input_manager.h#newcode19 content/public/browser/android/vr_input_manager.h:19: class CONTENT_EXPORT VrInputManager { On 2016/09/22 17:13:08, mthiesse wrote: ...
4 years, 3 months ago (2016-09-22 17:19:50 UTC) #14
boliu
https://codereview.chromium.org/2350253004/diff/40001/content/public/browser/android/vr_input_manager.h File content/public/browser/android/vr_input_manager.h (right): https://codereview.chromium.org/2350253004/diff/40001/content/public/browser/android/vr_input_manager.h#newcode19 content/public/browser/android/vr_input_manager.h:19: class CONTENT_EXPORT VrInputManager { On 2016/09/22 17:19:49, mthiesse wrote: ...
4 years, 3 months ago (2016-09-22 17:22:25 UTC) #15
mthiesse
https://codereview.chromium.org/2350253004/diff/40001/content/public/browser/android/vr_input_manager.h File content/public/browser/android/vr_input_manager.h (right): https://codereview.chromium.org/2350253004/diff/40001/content/public/browser/android/vr_input_manager.h#newcode19 content/public/browser/android/vr_input_manager.h:19: class CONTENT_EXPORT VrInputManager { On 2016/09/22 17:22:25, boliu wrote: ...
4 years, 3 months ago (2016-09-22 17:28:13 UTC) #16
asimjour
https://codereview.chromium.org/2350253004/diff/40001/content/public/browser/android/vr_input_manager.h File content/public/browser/android/vr_input_manager.h (right): https://codereview.chromium.org/2350253004/diff/40001/content/public/browser/android/vr_input_manager.h#newcode19 content/public/browser/android/vr_input_manager.h:19: class CONTENT_EXPORT VrInputManager { On 2016/09/22 17:22:25, boliu wrote: ...
4 years, 3 months ago (2016-09-22 17:34:57 UTC) #17
boliu
On 2016/09/22 17:34:57, asimjour wrote: > https://codereview.chromium.org/2350253004/diff/40001/content/public/browser/android/vr_input_manager.h > File content/public/browser/android/vr_input_manager.h (right): > > https://codereview.chromium.org/2350253004/diff/40001/content/public/browser/android/vr_input_manager.h#newcode19 > ...
4 years, 3 months ago (2016-09-22 17:51:11 UTC) #18
mthiesse
On 2016/09/22 17:51:11, boliu wrote: > On 2016/09/22 17:34:57, asimjour wrote: > > > https://codereview.chromium.org/2350253004/diff/40001/content/public/browser/android/vr_input_manager.h ...
4 years, 3 months ago (2016-09-22 18:05:12 UTC) #19
mthiesse
On 2016/09/22 17:51:11, boliu wrote: > On 2016/09/22 17:34:57, asimjour wrote: > > > https://codereview.chromium.org/2350253004/diff/40001/content/public/browser/android/vr_input_manager.h ...
4 years, 3 months ago (2016-09-22 18:05:12 UTC) #20
boliu
On 2016/09/22 18:05:12, mthiesse wrote: > On 2016/09/22 17:51:11, boliu wrote: > > On 2016/09/22 ...
4 years, 3 months ago (2016-09-22 18:33:44 UTC) #21
mthiesse
On 2016/09/22 18:33:44, boliu wrote: > On 2016/09/22 18:05:12, mthiesse wrote: > > On 2016/09/22 ...
4 years, 3 months ago (2016-09-22 18:46:24 UTC) #22
boliu
<snip> On 2016/09/22 18:46:24, mthiesse wrote: > This seems to me like a feature and ...
4 years, 3 months ago (2016-09-22 19:52:44 UTC) #23
asimjour
https://codereview.chromium.org/2350253004/diff/40001/chrome/browser/android/vr_shell/vr_controller.cc File chrome/browser/android/vr_shell/vr_controller.cc (right): https://codereview.chromium.org/2350253004/diff/40001/chrome/browser/android/vr_shell/vr_controller.cc#newcode39 chrome/browser/android/vr_shell/vr_controller.cc:39: inline void VectSetZero(gvr_vec2f* v) { On 2016/09/22 16:20:10, mthiesse ...
4 years, 3 months ago (2016-09-22 22:55:17 UTC) #24
bshe
a few more nits. it is good that we can keep everything in vr_shell https://codereview.chromium.org/2350253004/diff/60001/chrome/browser/android/vr_shell/vr_controller.cc ...
4 years, 3 months ago (2016-09-22 23:16:49 UTC) #25
boliu
did input folks say skipping RWHVA is ok? RWHVA has code that sends a speculative ...
4 years, 3 months ago (2016-09-22 23:25:37 UTC) #26
boliu
I'm probably a pretty picky reviewer. If you don't want to have all this discussion ...
4 years, 3 months ago (2016-09-22 23:34:00 UTC) #27
mthiesse
On 2016/09/22 23:25:37, boliu wrote: > RWHVA has code that sends a speculative begin frame ...
4 years, 3 months ago (2016-09-23 00:11:14 UTC) #28
boliu
fair -me then
4 years, 3 months ago (2016-09-23 00:13:54 UTC) #30
tdresser
mthiesse's arguments SGTM. A few high level concerns: Why are we introducing a new set ...
4 years, 3 months ago (2016-09-23 13:48:19 UTC) #32
asimjour
https://codereview.chromium.org/2350253004/diff/60001/chrome/browser/android/vr_shell/vr_controller.cc File chrome/browser/android/vr_shell/vr_controller.cc (right): https://codereview.chromium.org/2350253004/diff/60001/chrome/browser/android/vr_shell/vr_controller.cc#newcode19 chrome/browser/android/vr_shell/vr_controller.cc:19: constexpr float kDisplacementScaleFactor = 800.0f; On 2016/09/23 13:48:18, tdresser ...
4 years, 3 months ago (2016-09-23 16:58:22 UTC) #33
tdresser
https://codereview.chromium.org/2350253004/diff/60001/chrome/browser/android/vr_shell/vr_controller.cc File chrome/browser/android/vr_shell/vr_controller.cc (right): https://codereview.chromium.org/2350253004/diff/60001/chrome/browser/android/vr_shell/vr_controller.cc#newcode163 chrome/browser/android/vr_shell/vr_controller.cc:163: return VrGesture( On 2016/09/23 16:58:20, asimjour wrote: > On ...
4 years, 3 months ago (2016-09-23 17:45:17 UTC) #34
asimjour
https://codereview.chromium.org/2350253004/diff/60001/chrome/browser/android/vr_shell/vr_controller.cc File chrome/browser/android/vr_shell/vr_controller.cc (right): https://codereview.chromium.org/2350253004/diff/60001/chrome/browser/android/vr_shell/vr_controller.cc#newcode163 chrome/browser/android/vr_shell/vr_controller.cc:163: return VrGesture( On 2016/09/23 17:45:17, tdresser (OOO Sept 26-28) ...
4 years, 3 months ago (2016-09-23 19:56:31 UTC) #36
tdresser
https://codereview.chromium.org/2350253004/diff/60001/chrome/browser/android/vr_shell/vr_controller.cc File chrome/browser/android/vr_shell/vr_controller.cc (right): https://codereview.chromium.org/2350253004/diff/60001/chrome/browser/android/vr_shell/vr_controller.cc#newcode163 chrome/browser/android/vr_shell/vr_controller.cc:163: return VrGesture( On 2016/09/23 19:56:31, asimjour wrote: > On ...
4 years, 3 months ago (2016-09-23 20:36:44 UTC) #37
asimjour
On 2016/09/23 20:36:44, tdresser (OOO Sept 26-28) wrote: > https://codereview.chromium.org/2350253004/diff/60001/chrome/browser/android/vr_shell/vr_controller.cc > File chrome/browser/android/vr_shell/vr_controller.cc (right): > ...
4 years, 3 months ago (2016-09-23 20:59:00 UTC) #38
bshe
lgtm
4 years, 2 months ago (2016-09-29 14:23:55 UTC) #39
mthiesse
https://codereview.chromium.org/2350253004/diff/120001/chrome/browser/android/vr_shell/vr_controller_manager.h File chrome/browser/android/vr_shell/vr_controller_manager.h (right): https://codereview.chromium.org/2350253004/diff/120001/chrome/browser/android/vr_shell/vr_controller_manager.h#newcode32 chrome/browser/android/vr_shell/vr_controller_manager.h:32: void ProcessUpdatedGesture(VrGesture gesture); ProcessUpdatedContentGesture? https://codereview.chromium.org/2350253004/diff/120001/chrome/browser/android/vr_shell/vr_gesture.h File chrome/browser/android/vr_shell/vr_gesture.h (right): https://codereview.chromium.org/2350253004/diff/120001/chrome/browser/android/vr_shell/vr_gesture.h#newcode49 ...
4 years, 2 months ago (2016-09-29 14:46:59 UTC) #40
asimjour
https://codereview.chromium.org/2350253004/diff/100001/chrome/browser/android/vr_shell/vr_controller.cc File chrome/browser/android/vr_shell/vr_controller.cc (right): https://codereview.chromium.org/2350253004/diff/100001/chrome/browser/android/vr_shell/vr_controller.cc#newcode41 chrome/browser/android/vr_shell/vr_controller.cc:41: static inline void ClampTouchpadPosition(gvr::Vec2f* position) { On 2016/09/23 20:36:44, ...
4 years, 2 months ago (2016-09-30 13:37:44 UTC) #41
mthiesse
lgtm with nits https://codereview.chromium.org/2350253004/diff/140001/chrome/browser/android/vr_shell/vr_controller.cc File chrome/browser/android/vr_shell/vr_controller.cc (right): https://codereview.chromium.org/2350253004/diff/140001/chrome/browser/android/vr_shell/vr_controller.cc#newcode7 chrome/browser/android/vr_shell/vr_controller.cc:7: #include <android/log.h> remove this https://codereview.chromium.org/2350253004/diff/140001/chrome/browser/android/vr_shell/vr_controller.h File ...
4 years, 2 months ago (2016-09-30 14:09:36 UTC) #42
mthiesse
https://codereview.chromium.org/2350253004/diff/140001/chrome/browser/android/vr_shell/vr_gesture.h File chrome/browser/android/vr_shell/vr_gesture.h (right): https://codereview.chromium.org/2350253004/diff/140001/chrome/browser/android/vr_shell/vr_gesture.h#newcode75 chrome/browser/android/vr_shell/vr_gesture.h:75: type(WebInputEvent::GestureTap), One more thing: Do MouseDown for the touch ...
4 years, 2 months ago (2016-09-30 14:14:31 UTC) #43
asimjour
https://codereview.chromium.org/2350253004/diff/140001/chrome/browser/android/vr_shell/vr_controller.cc File chrome/browser/android/vr_shell/vr_controller.cc (right): https://codereview.chromium.org/2350253004/diff/140001/chrome/browser/android/vr_shell/vr_controller.cc#newcode7 chrome/browser/android/vr_shell/vr_controller.cc:7: #include <android/log.h> On 2016/09/30 14:09:36, mthiesse wrote: > remove ...
4 years, 2 months ago (2016-09-30 15:38:08 UTC) #44
tdresser
I'm okay with landing this to get it into M55, but let's look into getting ...
4 years, 2 months ago (2016-09-30 17:14:10 UTC) #45
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/2350253004/160001
4 years, 2 months ago (2016-09-30 17:36:56 UTC) #48
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 2 months ago (2016-09-30 19:27:52 UTC) #50
commit-bot: I haz the power
4 years, 2 months ago (2016-09-30 19:31:33 UTC) #52
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/230e7a29d98a166df6de4b9518e631dff553a739
Cr-Commit-Position: refs/heads/master@{#422179}

Powered by Google App Engine
This is Rietveld 408576698