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

Unified Diff: chrome/browser/android/vr_shell/vr_shell_gl.h

Issue 2795793002: Implementation of elbow model for the controller position and rotation. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/android/vr_shell/vr_shell_gl.h
diff --git a/chrome/browser/android/vr_shell/vr_shell_gl.h b/chrome/browser/android/vr_shell/vr_shell_gl.h
index 2bba8c2585c2fc47f578e37936783c3d0ddf0387..6a15b49e2219f8829fd75b6b89a461cd0eed45dc 100644
--- a/chrome/browser/android/vr_shell/vr_shell_gl.h
+++ b/chrome/browser/android/vr_shell/vr_shell_gl.h
@@ -134,8 +134,8 @@ class VrShellGl : public device::mojom::VRVSyncProvider {
void DrawWebVr();
bool WebVrPoseByteIsValid(int pose_index_byte);
- void UpdateController();
- void HandleControllerInput(const gvr::Vec3f& forward_vector);
+ void UpdateController(const gvr::Vec3f& head_direction);
+ void HandleControllerInput(const gvr::Vec3f& head_direction);
void HandleControllerAppButtonActivity(
const gvr::Vec3f& controller_direction);
void SendEventsToTarget(InputTarget input_target, int pixel_x, int pixel_y);
@@ -241,6 +241,8 @@ class VrShellGl : public device::mojom::VRVSyncProvider {
// Attributes for gesture detection while holding app button.
gvr::Vec3f controller_start_direction_;
+ gvr::Vec3f pointer_start_;
+
base::WeakPtrFactory<VrShellGl> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(VrShellGl);

Powered by Google App Engine
This is Rietveld 408576698