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

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

Issue 2433253002: Add passive and FOV-locked properties to UI elements. (Closed)
Patch Set: Address nits. Created 4 years, 2 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
« no previous file with comments | « no previous file | chrome/browser/android/vr_shell/ui_scene.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/vr_shell/ui_elements.h
diff --git a/chrome/browser/android/vr_shell/ui_elements.h b/chrome/browser/android/vr_shell/ui_elements.h
index 7316eaa34cd2d97c01702426e30582d14c6de857..fda2a2fa2b819d6ca2f106165eb13e621bfb77fe 100644
--- a/chrome/browser/android/vr_shell/ui_elements.h
+++ b/chrome/browser/android/vr_shell/ui_elements.h
@@ -70,9 +70,16 @@ struct ContentRectangle : public WorldRectangle {
// are applied relative to the parent, rather than absolutely.
int parent_id = -1;
- // If true, this object will be visible and accept input.
+ // If true, this object will be visible.
bool visible = true;
+ // If false, the reticle will not hit the element, even if visible.
+ bool hit_testable = true;
+
+ // If true, transformations will be applied relative to the field of view,
+ // rather than the world.
+ bool lock_to_fov = false;
+
// Specifies the region (in pixels) of a texture to render.
Recti copy_rect = {0, 0, 0, 0};
« no previous file with comments | « no previous file | chrome/browser/android/vr_shell/ui_scene.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698