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

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

Issue 2775283004: Rendering Daydream controller in a fixed position. (Closed)
Patch Set: Moving code to more appropriate locations. 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_controller.h
diff --git a/chrome/browser/android/vr_shell/vr_controller.h b/chrome/browser/android/vr_shell/vr_controller.h
index b8b878590162ebd29b8313eefb973bea9de54e85..3b9ff1ca8e757d0383896d55e687d75ad7686d29 100644
--- a/chrome/browser/android/vr_shell/vr_controller.h
+++ b/chrome/browser/android/vr_shell/vr_controller.h
@@ -9,6 +9,7 @@
#include <vector>
#include "base/macros.h"
+#include "chrome/browser/android/vr_shell/vr_controller_model.h"
#include "device/vr/android/gvr/gvr_gamepad_data_provider.h"
#include "third_party/WebKit/public/platform/WebGestureEvent.h"
#include "third_party/WebKit/public/platform/WebInputEvent.h"
@@ -51,7 +52,11 @@ class VrController {
float TouchPosY();
- const gvr::Quatf Orientation();
+ gvr::Quatf Orientation() const;
+
+ gvr::Mat4f GetTransform() const;
+
+ VrControllerModel::State GetModelState() const;
bool TouchDownHappened();
@@ -59,6 +64,7 @@ class VrController {
bool ButtonUpHappened(gvr::ControllerButton button);
bool ButtonDownHappened(gvr::ControllerButton button);
+ bool ButtonState(gvr::ControllerButton button) const;
bool IsConnected();
« no previous file with comments | « chrome/browser/android/vr_shell/gltf_parser_unittest.cc ('k') | chrome/browser/android/vr_shell/vr_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698