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

Unified Diff: chrome/browser/resources/vr_shell/vr_shell_ui_scene.js

Issue 2698623007: Change how the VR reticle distance is determined. (Closed)
Patch Set: Change background distance multplier to 1.414; move Reload UI button out of the floor. Created 3 years, 10 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/resources/vr_shell/vr_shell_ui_api.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/vr_shell/vr_shell_ui_scene.js
diff --git a/chrome/browser/resources/vr_shell/vr_shell_ui_scene.js b/chrome/browser/resources/vr_shell/vr_shell_ui_scene.js
index d1651a56f04ed41c054a3d62d9ac52991ad8c0f7..4ed691a93cc894c83b28809237952bf18e246741 100644
--- a/chrome/browser/resources/vr_shell/vr_shell_ui_scene.js
+++ b/chrome/browser/resources/vr_shell/vr_shell_ui_scene.js
@@ -129,12 +129,27 @@ scene.Scene = class {
delete this.animations[id];
}
+ /**
+ * Set the background color of the scene.
+ * @param {{r: number, b: number, g: number, a: number}} color
+ */
setBackgroundColor(color) {
this.commands.push(
{'type': api.Command.UPDATE_BACKGROUND, 'data': {'color': color}});
}
/**
+ * Set the radius of background-bounding sphere.
+ * @param {number} distance
+ */
+ setBackgroundDistance(distance) {
+ this.commands.push({
+ 'type': api.Command.UPDATE_BACKGROUND,
+ 'data': {'distance': distance}
+ });
+ }
+
+ /**
* Purge all elements in the scene.
*/
purge() {
« no previous file with comments | « chrome/browser/resources/vr_shell/vr_shell_ui_api.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698