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

Side by Side Diff: Source/devtools/front_end/layers/LayerPaintProfilerView.js

Issue 1113813002: [DevTools] Rename View to Widget. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 5 years, 7 months 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 /** 5 /**
6 * @constructor 6 * @constructor
7 * @param {function(!WebInspector.Layer, string=)} showImageForLayerCallback 7 * @param {function(!WebInspector.Layer, string=)} showImageForLayerCallback
8 * @extends {WebInspector.SplitView} 8 * @extends {WebInspector.SplitWidget}
9 */ 9 */
10 WebInspector.LayerPaintProfilerView = function(showImageForLayerCallback) 10 WebInspector.LayerPaintProfilerView = function(showImageForLayerCallback)
11 { 11 {
12 WebInspector.SplitView.call(this, true, false); 12 WebInspector.SplitWidget.call(this, true, false);
13 13
14 this._showImageForLayerCallback = showImageForLayerCallback; 14 this._showImageForLayerCallback = showImageForLayerCallback;
15 this._logTreeView = new WebInspector.PaintProfilerCommandLogView(); 15 this._logTreeView = new WebInspector.PaintProfilerCommandLogView();
16 this.setSidebarView(this._logTreeView); 16 this.setSidebarWidget(this._logTreeView);
17 this._paintProfilerView = new WebInspector.PaintProfilerView(this._showImage .bind(this)); 17 this._paintProfilerView = new WebInspector.PaintProfilerView(this._showImage .bind(this));
18 this.setMainView(this._paintProfilerView); 18 this.setMainWidget(this._paintProfilerView);
19 19
20 this._paintProfilerView.addEventListener(WebInspector.PaintProfilerView.Even ts.WindowChanged, this._onWindowChanged, this); 20 this._paintProfilerView.addEventListener(WebInspector.PaintProfilerView.Even ts.WindowChanged, this._onWindowChanged, this);
21 } 21 }
22 22
23 WebInspector.LayerPaintProfilerView.prototype = { 23 WebInspector.LayerPaintProfilerView.prototype = {
24 /** 24 /**
25 * @param {!WebInspector.Layer} layer 25 * @param {!WebInspector.Layer} layer
26 */ 26 */
27 profileLayer: function(layer) 27 profileLayer: function(layer)
28 { 28 {
(...skipping 30 matching lines...) Expand all
59 }, 59 },
60 60
61 /** 61 /**
62 * @param {string=} imageURL 62 * @param {string=} imageURL
63 */ 63 */
64 _showImage: function(imageURL) 64 _showImage: function(imageURL)
65 { 65 {
66 this._showImageForLayerCallback(this._layer, imageURL); 66 this._showImageForLayerCallback(this._layer, imageURL);
67 }, 67 },
68 68
69 __proto__: WebInspector.SplitView.prototype 69 __proto__: WebInspector.SplitWidget.prototype
70 }; 70 };
71 71
OLDNEW
« no previous file with comments | « Source/devtools/front_end/inspectorCommon.css ('k') | Source/devtools/front_end/layers/LayersPanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698