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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/timeline/TimelineLayersView.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 2014 The Chromium Authors. All rights reserved. 2 * Copyright 2014 The Chromium Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 /** 7 /**
8 * @constructor 8 * @constructor
9 * @extends {WebInspector.SplitWidget} 9 * @extends {WebInspector.SplitWidget}
10 * @param {!WebInspector.TimelineModel} model 10 * @param {!WebInspector.TimelineModel} model
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 */ 44 */
45 showLayerTree: function(frameLayerTree) 45 showLayerTree: function(frameLayerTree)
46 { 46 {
47 this._frameLayerTree = frameLayerTree; 47 this._frameLayerTree = frameLayerTree;
48 if (this.isShowing()) 48 if (this.isShowing())
49 this._update(); 49 this._update();
50 else 50 else
51 this._updateWhenVisible = true; 51 this._updateWhenVisible = true;
52 }, 52 },
53 53
54 /**
55 * @override
56 */
54 wasShown: function() 57 wasShown: function()
55 { 58 {
56 if (this._updateWhenVisible) { 59 if (this._updateWhenVisible) {
57 this._updateWhenVisible = false; 60 this._updateWhenVisible = false;
58 this._update(); 61 this._update();
59 } 62 }
60 }, 63 },
61 64
62 /** 65 /**
63 * @param {!WebInspector.Event} event 66 * @param {!WebInspector.Event} event
64 */ 67 */
65 _onPaintProfilerRequested: function(event) 68 _onPaintProfilerRequested: function(event)
66 { 69 {
67 var selection = /** @type {!WebInspector.LayerView.Selection} */ (event. data); 70 var selection = /** @type {!WebInspector.LayerView.Selection} */ (event. data);
68 this._layers3DView.snapshotForSelection(selection).then(snapshotWithRect => { 71 this._layers3DView.snapshotForSelection(selection).then(snapshotWithRect => {
69 if (snapshotWithRect) 72 if (snapshotWithRect)
70 this._showPaintProfilerCallback(snapshotWithRect.snapshot); 73 this._showPaintProfilerCallback(snapshotWithRect.snapshot);
71 }); 74 });
72 }, 75 },
73 76
74 _update: function() 77 _update: function()
75 { 78 {
76 this._frameLayerTree.layerTreePromise().then(layerTree => this._layerVie wHost.setLayerTree(layerTree)); 79 this._frameLayerTree.layerTreePromise().then(layerTree => this._layerVie wHost.setLayerTree(layerTree));
77 }, 80 },
78 81
79 __proto__: WebInspector.SplitWidget.prototype 82 __proto__: WebInspector.SplitWidget.prototype
80 }; 83 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698