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

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

Issue 2624243002: VrShell: Allow native control of UI element opacity. (Closed)
Patch Set: for (auto nit : nits) nit.fix(); Created 3 years, 11 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 | « chrome/browser/android/vr_shell/animation.h ('k') | chrome/browser/android/vr_shell/ui_elements.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 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.
« no previous file with comments | « chrome/browser/android/vr_shell/animation.h ('k') | chrome/browser/android/vr_shell/ui_elements.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698