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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/layer_viewer/Layers3DView.js

Issue 2466123002: DevTools: reformat front-end code to match chromium style. (Closed)
Patch Set: 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 this._update(); 172 this._update();
173 return; 173 return;
174 } 174 }
175 WebInspector.loadImage(imageURL).then(image => { 175 WebInspector.loadImage(imageURL).then(image => {
176 var texture = image && WebInspector.LayerTextureManager._createTextu reForImage(this._gl, image); 176 var texture = image && WebInspector.LayerTextureManager._createTextu reForImage(this._gl, image);
177 this._layerTexture = texture ? {layer: layer, texture: texture} : nu ll; 177 this._layerTexture = texture ? {layer: layer, texture: texture} : nu ll;
178 this._update(); 178 this._update();
179 }); 179 });
180 }, 180 },
181 181
182 /**
183 * @override
184 */
182 onResize: function() 185 onResize: function()
183 { 186 {
184 this._resizeCanvas(); 187 this._resizeCanvas();
185 this._update(); 188 this._update();
186 }, 189 },
187 190
188 /** 191 /**
189 * @override 192 * @override
190 */ 193 */
191 willHide: function() 194 willHide: function()
(...skipping 1011 matching lines...) Expand 10 before | Expand all | Expand 10 after
1203 { 1206 {
1204 this._gl = glContext; 1207 this._gl = glContext;
1205 this.scale = scale; 1208 this.scale = scale;
1206 return this.snapshot.replay(null, null, scale) 1209 return this.snapshot.replay(null, null, scale)
1207 .then(imageURL => imageURL && WebInspector.loadImage(imageURL)) 1210 .then(imageURL => imageURL && WebInspector.loadImage(imageURL))
1208 .then(image => { 1211 .then(image => {
1209 this.texture = image && WebInspector.LayerTextureManager._create TextureForImage(glContext, image); 1212 this.texture = image && WebInspector.LayerTextureManager._create TextureForImage(glContext, image);
1210 }); 1213 });
1211 } 1214 }
1212 }; 1215 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698