Index: chrome/browser/resources/vr_shell/vr_shell_ui_api.js |
diff --git a/chrome/browser/resources/vr_shell/vr_shell_ui_api.js b/chrome/browser/resources/vr_shell/vr_shell_ui_api.js |
index 8f64ed4b0d7fdc07e95808fb2849cac0851b8367..3e5f89bb56a0c41e47733ba362fda52a84cb1c46 100644 |
--- a/chrome/browser/resources/vr_shell/vr_shell_ui_api.js |
+++ b/chrome/browser/resources/vr_shell/vr_shell_ui_api.js |
@@ -43,22 +43,14 @@ var api = (function() { |
* @enum {number} |
* @const |
*/ |
- var XAnchoring = Object.freeze({ |
- 'XNONE': 0, |
- 'XLEFT': 1, |
- 'XRIGHT': 2 |
- }); |
+ var XAnchoring = Object.freeze({'XNONE': 0, 'XLEFT': 1, 'XRIGHT': 2}); |
/** |
* Enumeration of valid Anchroing for Y axis. |
* @enum {number} |
* @const |
*/ |
- var YAnchoring = Object.freeze({ |
- 'YNONE': 0, |
- 'YTOP': 1, |
- 'YBOTTOM': 2 |
- }); |
+ var YAnchoring = Object.freeze({'YNONE': 0, 'YTOP': 1, 'YBOTTOM': 2}); |
/** |
* Enumeration of actions that can be triggered by the HTML UI. |
@@ -113,7 +105,6 @@ var api = (function() { |
* Properties that are not set on this object are left unchanged. |
*/ |
class UiElementUpdate { |
- |
setIsContentQuad() { |
this.contentQuad = true; |
} |
@@ -131,14 +122,14 @@ var api = (function() { |
* Specify the width and height (in meters) of an element. |
*/ |
setSize(x, y) { |
- this.size = { x: x, y: y }; |
+ this.size = {x: x, y: y}; |
} |
/** |
* Specify optional scaling of the element, and any children. |
*/ |
setScale(x, y, z) { |
- this.scale = { x: x, y: y, z: z }; |
+ this.scale = {x: x, y: y, z: z}; |
} |
/** |
@@ -146,7 +137,7 @@ var api = (function() { |
* representation (rotate around unit vector [x, y, z] by 'a' radians). |
*/ |
setRotation(x, y, z, a) { |
- this.rotation = { x: x, y: y, z: z, a: a }; |
+ this.rotation = {x: x, y: y, z: z, a: a}; |
} |
/** |
@@ -155,7 +146,7 @@ var api = (function() { |
* Translation is applied after scaling and rotation. |
*/ |
setTranslation(x, y, z) { |
- this.translation = { x: x, y: y, z: z }; |
+ this.translation = {x: x, y: y, z: z}; |
} |
/** |
@@ -206,12 +197,8 @@ var api = (function() { |
constructor(pixelX, pixelY, pixelWidth, pixelHeight) { |
super(); |
- this.copyRect = { |
- x: pixelX, |
- y: pixelY, |
- width: pixelWidth, |
- height: pixelHeight |
- }; |
+ this.copyRect = |
+ {x: pixelX, y: pixelY, width: pixelWidth, height: pixelHeight}; |
} |
}; |
@@ -233,12 +220,8 @@ var api = (function() { |
* @enum {number} |
* @const |
*/ |
- var Easing = Object.freeze({ |
- 'LINEAR': 0, |
- 'CUBICBEZIER': 1, |
- 'EASEIN': 2, |
- 'EASEOUT': 3 |
- }); |
+ var Easing = |
+ Object.freeze({'LINEAR': 0, 'CUBICBEZIER': 1, 'EASEIN': 2, 'EASEOUT': 3}); |
/** |
* Base animation class. An animation can vary only one object property. |