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

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

Issue 2879973002: Expose Gamepad API instance for Cardboard button (Closed)
Patch Set: Created 3 years, 7 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 df5d8a107200cfd8e30923f76fd5926eb73e24c3..39cb3efb893fd742022d248ed21a28285af0d24a 100644
--- a/chrome/browser/android/vr_shell/vr_shell_gl.h
+++ b/chrome/browser/android/vr_shell/vr_shell_gl.h
@@ -78,7 +78,7 @@ class VrShellGl : public device::mojom::VRVSyncProvider {
void Initialize();
void InitializeGl(gfx::AcceleratedWidget window);
- void OnTriggerEvent();
+ void OnTriggerEvent(bool touched);
void OnPause();
void OnResume();
@@ -191,6 +191,7 @@ class VrShellGl : public device::mojom::VRVSyncProvider {
std::unique_ptr<VrShellRenderer> vr_shell_renderer_;
bool touch_pending_ = false;
+ bool currently_touched_ = false;
vr::Quatf controller_quat_;
gfx::Point3F target_point_;

Powered by Google App Engine
This is Rietveld 408576698