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

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

Issue 1292673002: [DevTools] Group options in network presets select. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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 /* 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 14 matching lines...) Expand all
25 25
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.element.addEventListener("keydown", this._keyDown.bind(this), true); 33 this.element.addEventListener("keydown", this._keyDown.bind(this), true);
34 this.element.tabIndex = 0; 34 this.element.tabIndex = 0;
35
36 var manageBlackboxingButton = new WebInspector.ToolbarButton(WebInspector.UI String("Manage blackboxing"), "filter-small-toolbar-item");
37 manageBlackboxingButton.addEventListener("click", this._manageBlackboxingBut tonClicked.bind(this));
38 this.toolbar().appendToolbarItem(manageBlackboxingButton);
39
35 this.callFrameList = new WebInspector.UIList(); 40 this.callFrameList = new WebInspector.UIList();
36 this.callFrameList.show(this.element); 41 this.callFrameList.show(this.element);
37 42
38 WebInspector.moduleSetting("enableAsyncStackTraces").addChangeListener(this. _asyncStackTracesStateChanged, this); 43 WebInspector.moduleSetting("enableAsyncStackTraces").addChangeListener(this. _asyncStackTracesStateChanged, this);
39 WebInspector.moduleSetting("skipStackFramesPattern").addChangeListener(this. _blackboxingStateChanged, this); 44 WebInspector.moduleSetting("skipStackFramesPattern").addChangeListener(this. _blackboxingStateChanged, this);
40 } 45 }
41 46
42 /** @enum {string} */ 47 /** @enum {string} */
43 WebInspector.CallStackSidebarPane.Events = { 48 WebInspector.CallStackSidebarPane.Events = {
44 CallFrameSelected: "CallFrameSelected", 49 CallFrameSelected: "CallFrameSelected",
45 RevealHiddenCallFrames: "RevealHiddenCallFrames" 50 RevealHiddenCallFrames: "RevealHiddenCallFrames"
46 } 51 }
47 52
48 WebInspector.CallStackSidebarPane.prototype = { 53 WebInspector.CallStackSidebarPane.prototype = {
54 _manageBlackboxingButtonClicked: function()
55 {
56 WebInspector.Revealer.reveal(WebInspector.moduleSetting("skipStackFrames Pattern"));
pfeldman 2015/08/13 23:33:13 Why would we point to it and not click it?
57 },
58
49 /** 59 /**
50 * @param {?WebInspector.DebuggerPausedDetails} details 60 * @param {?WebInspector.DebuggerPausedDetails} details
51 */ 61 */
52 update: function(details) 62 update: function(details)
53 { 63 {
54 this.callFrameList.detach(); 64 this.callFrameList.detach();
55 this.callFrameList.clear(); 65 this.callFrameList.clear();
56 this.element.removeChildren(); 66 this.element.removeChildren();
57 67
58 if (!details) { 68 if (!details) {
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 */ 438 */
429 _update: function(uiLocation) 439 _update: function(uiLocation)
430 { 440 {
431 var text = uiLocation.linkText(); 441 var text = uiLocation.linkText();
432 this.setSubtitle(text.trimMiddle(30)); 442 this.setSubtitle(text.trimMiddle(30));
433 this.subtitleElement.title = text; 443 this.subtitleElement.title = text;
434 }, 444 },
435 445
436 __proto__: WebInspector.UIList.Item.prototype 446 __proto__: WebInspector.UIList.Item.prototype
437 } 447 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698