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

Side by Side Diff: chrome/browser/resources/vr_shell/vr_shell_ui_api.js

Issue 2615613009: Put Scene class into scene namespace. (Closed)
Patch Set: Fix nit. 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 unified diff | Download patch
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 var api = new Object(); 5 var api = {};
6 6
7 /** 7 /**
8 * Enumeration of scene update commands. 8 * Enumeration of scene update commands.
9 * @enum {number} 9 * @enum {number}
10 * @const 10 * @const
11 */ 11 */
12 api.Command = { 12 api.Command = {
13 'ADD_ELEMENT': 0, 13 'ADD_ELEMENT': 0,
14 'UPDATE_ELEMENT': 1, 14 'UPDATE_ELEMENT': 1,
15 'REMOVE_ELEMENT': 2, 15 'REMOVE_ELEMENT': 2,
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 * @param {number} y 353 * @param {number} y
354 * @param {number} z 354 * @param {number} z
355 */ 355 */
356 setTranslation(x, y, z) { 356 setTranslation(x, y, z) {
357 this.property = api.Property.TRANSLATION; 357 this.property = api.Property.TRANSLATION;
358 this.to.x = x; 358 this.to.x = x;
359 this.to.y = y; 359 this.to.y = y;
360 this.to.z = z; 360 this.to.z = z;
361 } 361 }
362 }; 362 };
OLDNEW
« no previous file with comments | « chrome/browser/resources/vr_shell/vr_shell_ui.js ('k') | chrome/browser/resources/vr_shell/vr_shell_ui_scene.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698