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

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

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 | « chrome/browser/resources/vr_shell/vr_shell_ui.js ('k') | no next file » | 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 var api = (function() { 5 var api = (function() {
6 'use strict'; 6 'use strict';
7 7
8 /** 8 /**
9 * Enumeration of scene update commands. 9 * Enumeration of scene update commands.
10 * @enum {number} 10 * @enum {number}
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 chrome.send('domLoaded'); 99 chrome.send('domLoaded');
100 } 100 }
101 101
102 /** 102 /**
103 * Represents updates to UI element properties. Any properties set on this 103 * Represents updates to UI element properties. Any properties set on this
104 * object are relayed to an underlying native element via scene command. 104 * object are relayed to an underlying native element via scene command.
105 * Properties that are not set on this object are left unchanged. 105 * Properties that are not set on this object are left unchanged.
106 */ 106 */
107 class UiElementUpdate { 107 class UiElementUpdate {
108 108
109 setIsContentQuad() {
110 this.contentQuad = true;
111 }
112
109 /** 113 /**
110 * Specify a parent for this element. If set, this element is positioned 114 * Specify a parent for this element. If set, this element is positioned
111 * relative to its parent element, rather than absolutely. This allows 115 * relative to its parent element, rather than absolutely. This allows
112 * elements to automatically move with a parent. 116 * elements to automatically move with a parent.
113 */ 117 */
114 setParentId(id) { 118 setParentId(id) {
115 this.parentId = id; 119 this.parentId = id;
116 } 120 }
117 121
118 /** 122 /**
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 Action: Action, 300 Action: Action,
297 Mode: Mode, 301 Mode: Mode,
298 getContentElementId: getContentElementId, 302 getContentElementId: getContentElementId,
299 UiElement: UiElement, 303 UiElement: UiElement,
300 UiElementUpdate: UiElementUpdate, 304 UiElementUpdate: UiElementUpdate,
301 Animation: Animation, 305 Animation: Animation,
302 doAction: doAction, 306 doAction: doAction,
303 domLoaded: domLoaded, 307 domLoaded: domLoaded,
304 }; 308 };
305 })(); 309 })();
OLDNEW
« no previous file with comments | « chrome/browser/resources/vr_shell/vr_shell_ui.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698