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

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

Issue 2624243002: VrShell: Allow native control of UI element opacity. (Closed)
Patch Set: 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
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..a034e3db07440c3c5fbb0ca906e17fff0916d038 100644
--- a/chrome/browser/android/vr_shell/ui_elements.h
+++ b/chrome/browser/android/vr_shell/ui_elements.h
@@ -100,6 +100,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.

Powered by Google App Engine
This is Rietveld 408576698