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

Side by Side Diff: Source/devtools/front_end/promises/PromisePane.js

Issue 722713002: DevTools: get rid of getters and setters in StatusBarButton. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | 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 * @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
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
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 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/profiler/ProfilesPanel.js ('k') | Source/devtools/front_end/resources/ApplicationCacheItemsView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698