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

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

Issue 2600683002: Run tools/clang-format-js on some of chrome/browser/resources/ (Closed)
Patch Set: event_handler.js Created 4 years 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
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 a83ef30ea09ca787a67c6ac658469cb65ab024e5..032db45daee1b4c1564848405220477c4faf36e2 100644
--- a/chrome/browser/resources/vr_shell/vr_shell_ui_scene.js
+++ b/chrome/browser/resources/vr_shell/vr_shell_ui_scene.js
@@ -42,7 +42,6 @@ var ui = (function() {
* scene.flush();
*/
class Scene {
-
constructor() {
this.idIndex = api.getContentElementId() + 1;
this.commands = [];
@@ -64,10 +63,7 @@ var ui = (function() {
addElement(element) {
var id = this.idIndex++;
element.id = id;
- this.commands.push({
- 'type': api.Command.ADD_ELEMENT,
- 'data': element
- });
+ this.commands.push({'type': api.Command.ADD_ELEMENT, 'data': element});
this.elements.add(id);
return id;
}
@@ -78,10 +74,7 @@ var ui = (function() {
updateElement(id, update) {
// To-do: Make sure ID exists.
update.id = id;
- this.commands.push({
- 'type': api.Command.UPDATE_ELEMENT,
- 'data': update
- });
+ this.commands.push({'type': api.Command.UPDATE_ELEMENT, 'data': update});
}
/*
@@ -89,10 +82,8 @@ var ui = (function() {
*/
removeElement(id) {
// To-do: Make sure ID exists.
- this.commands.push({
- 'type': api.Command.REMOVE_ELEMENT,
- 'data': {'id': id}
- });
+ this.commands.push(
+ {'type': api.Command.REMOVE_ELEMENT, 'data': {'id': id}});
this.elements.delete(id);
}
@@ -102,10 +93,8 @@ var ui = (function() {
addAnimation(animation) {
var id = this.idIndex++;
animation.id = id;
- this.commands.push({
- 'type': api.Command.ADD_ANIMATION,
- 'data': animation
- });
+ this.commands.push(
+ {'type': api.Command.ADD_ANIMATION, 'data': animation});
this.animations[id] = animation.meshId;
return id;
}

Powered by Google App Engine
This is Rietveld 408576698