| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 })(); |
| OLD | NEW |