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

Side by Side Diff: Source/devtools/front_end/CallStackSidebarPane.js

Issue 202113007: DevTools: Async stacks out of experiments. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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
« no previous file with comments | « no previous file | Source/devtools/front_end/DebuggerModel.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 15 matching lines...) Expand all
26 /** 26 /**
27 * @constructor 27 * @constructor
28 * @extends {WebInspector.SidebarPane} 28 * @extends {WebInspector.SidebarPane}
29 */ 29 */
30 WebInspector.CallStackSidebarPane = function() 30 WebInspector.CallStackSidebarPane = function()
31 { 31 {
32 WebInspector.SidebarPane.call(this, WebInspector.UIString("Call Stack")); 32 WebInspector.SidebarPane.call(this, WebInspector.UIString("Call Stack"));
33 this.bodyElement.addEventListener("keydown", this._keyDown.bind(this), true) ; 33 this.bodyElement.addEventListener("keydown", this._keyDown.bind(this), true) ;
34 this.bodyElement.tabIndex = 0; 34 this.bodyElement.tabIndex = 0;
35 35
36 if (WebInspector.experimentsSettings.asyncStackTraces.isEnabled()) { 36 var asyncCheckbox = this.titleElement.appendChild(WebInspector.SettingsUI.cr eateSettingCheckbox(WebInspector.UIString("Async"), WebInspector.settings.enable AsyncStackTraces, true, undefined, WebInspector.UIString("Capture async stack tr aces")));
37 var asyncCheckbox = this.titleElement.appendChild(WebInspector.SettingsU I.createSettingCheckbox(WebInspector.UIString("Async"), WebInspector.settings.en ableAsyncStackTraces, true, undefined, WebInspector.UIString("Capture async stac k traces"))); 37 asyncCheckbox.classList.add("scripts-callstack-async");
38 asyncCheckbox.classList.add("scripts-callstack-async"); 38 asyncCheckbox.addEventListener("click", consumeEvent, false);
39 asyncCheckbox.addEventListener("click", consumeEvent, false); 39 WebInspector.settings.enableAsyncStackTraces.addChangeListener(this._asyncSt ackTracesStateChanged, this);
40 WebInspector.settings.enableAsyncStackTraces.addChangeListener(this._asy ncStackTracesStateChanged, this);
41 }
42 } 40 }
43 41
44 WebInspector.CallStackSidebarPane.Events = { 42 WebInspector.CallStackSidebarPane.Events = {
45 CallFrameRestarted: "CallFrameRestarted", 43 CallFrameRestarted: "CallFrameRestarted",
46 CallFrameSelected: "CallFrameSelected" 44 CallFrameSelected: "CallFrameSelected"
47 } 45 }
48 46
49 WebInspector.CallStackSidebarPane.prototype = { 47 WebInspector.CallStackSidebarPane.prototype = {
50 /** 48 /**
51 * @param {?Array.<!WebInspector.DebuggerModel.CallFrame>} callFrames 49 * @param {?Array.<!WebInspector.DebuggerModel.CallFrame>} callFrames
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 /** 281 /**
284 * @param {!WebInspector.UILocation} uiLocation 282 * @param {!WebInspector.UILocation} uiLocation
285 */ 283 */
286 _update: function(uiLocation) 284 _update: function(uiLocation)
287 { 285 {
288 this.subtitle = uiLocation.linkText().trimMiddle(100); 286 this.subtitle = uiLocation.linkText().trimMiddle(100);
289 }, 287 },
290 288
291 __proto__: WebInspector.Placard.prototype 289 __proto__: WebInspector.Placard.prototype
292 } 290 }
OLDNEW
« no previous file with comments | « no previous file | Source/devtools/front_end/DebuggerModel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698