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

Side by Side Diff: chrome/browser/android/vr_shell/ui_elements.h

Issue 2442873002: Control the VrShell content quad via the HTML UI. (Closed)
Patch Set: Rebase; address nits and bug. Created 4 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/android/vr_shell/ui_scene.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_H_ 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_H_
6 #define CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_H_ 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 // If true, this object will be visible. 73 // If true, this object will be visible.
74 bool visible = true; 74 bool visible = true;
75 75
76 // If false, the reticle will not hit the element, even if visible. 76 // If false, the reticle will not hit the element, even if visible.
77 bool hit_testable = true; 77 bool hit_testable = true;
78 78
79 // If true, transformations will be applied relative to the field of view, 79 // If true, transformations will be applied relative to the field of view,
80 // rather than the world. 80 // rather than the world.
81 bool lock_to_fov = false; 81 bool lock_to_fov = false;
82 82
83 // If true, this element is the content quad. Only one content quad may be
84 // added to the scene.
85 bool content_quad = false;
86
83 // Specifies the region (in pixels) of a texture to render. 87 // Specifies the region (in pixels) of a texture to render.
84 Recti copy_rect = {0, 0, 0, 0}; 88 Recti copy_rect = {0, 0, 0, 0};
85 89
86 // The size of the object. This does not affect children. 90 // The size of the object. This does not affect children.
87 gvr::Vec3f size = {1.0f, 1.0f, 1.0f}; 91 gvr::Vec3f size = {1.0f, 1.0f, 1.0f};
88 92
89 // The scale of the object, and its children. 93 // The scale of the object, and its children.
90 gvr::Vec3f scale = {1.0f, 1.0f, 1.0f}; 94 gvr::Vec3f scale = {1.0f, 1.0f, 1.0f};
91 95
92 // The rotation of the object, and its children. 96 // The rotation of the object, and its children.
(...skipping 12 matching lines...) Expand all
105 // Animations that affect the properties of the object over time. 109 // Animations that affect the properties of the object over time.
106 std::vector<std::unique_ptr<Animation>> animations; 110 std::vector<std::unique_ptr<Animation>> animations;
107 111
108 private: 112 private:
109 DISALLOW_COPY_AND_ASSIGN(ContentRectangle); 113 DISALLOW_COPY_AND_ASSIGN(ContentRectangle);
110 }; 114 };
111 115
112 } // namespace vr_shell 116 } // namespace vr_shell
113 117
114 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_H_ 118 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_UI_ELEMENTS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/android/vr_shell/ui_scene.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698