OLD | NEW |
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 * @extends {WebInspector.VBox} | 7 * @extends {WebInspector.VBox} |
8 */ | 8 */ |
9 WebInspector.PromisePane = function() | 9 WebInspector.PromisePane = function() |
10 { | 10 { |
(...skipping 26 matching lines...) Expand all Loading... |
37 ]; | 37 ]; |
38 this._dataGrid = new WebInspector.DataGrid(columns, undefined, undefined, un
defined, this._onContextMenu.bind(this)); | 38 this._dataGrid = new WebInspector.DataGrid(columns, undefined, undefined, un
defined, this._onContextMenu.bind(this)); |
39 this._dataGrid.show(this._dataGridContainer.element); | 39 this._dataGrid.show(this._dataGridContainer.element); |
40 | 40 |
41 this._linkifier = new WebInspector.Linkifier(); | 41 this._linkifier = new WebInspector.Linkifier(); |
42 } | 42 } |
43 | 43 |
44 WebInspector.PromisePane.prototype = { | 44 WebInspector.PromisePane.prototype = { |
45 _recordButtonClicked: function(event) | 45 _recordButtonClicked: function(event) |
46 { | 46 { |
47 var recording = !this._recordButton.toggled; | 47 var recording = !this._recordButton.toggled(); |
48 this._recordButton.toggled = recording; | 48 this._recordButton.setToggled(recording); |
49 this._refreshButton.setEnabled(recording); | 49 this._refreshButton.setEnabled(recording); |
50 if (recording) | 50 if (recording) |
51 this._enablePromiseTracker(); | 51 this._enablePromiseTracker(); |
52 else | 52 else |
53 this._disablePromiseTracker(); | 53 this._disablePromiseTracker(); |
54 }, | 54 }, |
55 | 55 |
56 _refreshButtonClicked: function(event) | 56 _refreshButtonClicked: function(event) |
57 { | 57 { |
58 this._updateData(); | 58 this._updateData(); |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 undefined, | 191 undefined, |
192 undefined, | 192 undefined, |
193 [promise]); | 193 [promise]); |
194 this._target.consoleModel.addMessage(message); | 194 this._target.consoleModel.addMessage(message); |
195 WebInspector.console.show(); | 195 WebInspector.console.show(); |
196 } | 196 } |
197 }, | 197 }, |
198 | 198 |
199 __proto__: WebInspector.VBox.prototype | 199 __proto__: WebInspector.VBox.prototype |
200 } | 200 } |
OLD | NEW |