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 a8a2527b004b06ed91238b6f34594d4773da4c60..42c349058508660b945750d247c88f5696d33354 100644 |
--- a/chrome/browser/android/vr_shell/ui_elements.h |
+++ b/chrome/browser/android/vr_shell/ui_elements.h |
@@ -63,6 +63,12 @@ struct ContentRectangle : public WorldRectangle { |
void Animate(int64_t time); |
+ // Indicates whether the element should be visually rendered. |
+ bool IsVisible() const; |
+ |
+ // Indicates whether the element should be tested for cursor input. |
+ bool IsHitTestable() const; |
+ |
// Valid IDs are non-negative. |
int id = -1; |
@@ -100,6 +106,12 @@ struct ContentRectangle : public WorldRectangle { |
// after rotation and scaling. |
gvr::Vec3f translation = {0.0f, 0.0f, 0.0f}; |
+ // The opacity of the object (between 0.0 and 1.0). |
+ float opacity = 1.0f; |
+ |
+ // The computed opacity, incorporating opacity of parent objects. |
+ float computed_opacity; |
+ |
// If anchoring is specified, the translation will be relative to the |
// specified edge(s) of the parent, rather than the center. A parent object |
// must be specified when using anchoring. |