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

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

Issue 805853002: DevTools: Make labeled checkbox a web component (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years 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 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 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"))); 36 var asyncCheckbox = this.titleElement.appendChild(WebInspector.SettingsUI.cr eateSettingCheckbox(WebInspector.UIString("Async"), WebInspector.settings.enable AsyncStackTraces, true, WebInspector.UIString("Capture async stack traces")));
37 asyncCheckbox.classList.add("scripts-callstack-async"); 37 asyncCheckbox.classList.add("scripts-callstack-async");
38 asyncCheckbox.addEventListener("click", consumeEvent, false); 38 asyncCheckbox.addEventListener("click", consumeEvent, false);
39 WebInspector.settings.enableAsyncStackTraces.addChangeListener(this._asyncSt ackTracesStateChanged, this); 39 WebInspector.settings.enableAsyncStackTraces.addChangeListener(this._asyncSt ackTracesStateChanged, this);
40 WebInspector.settings.skipStackFramesPattern.addChangeListener(this._blackbo xingStateChanged, this); 40 WebInspector.settings.skipStackFramesPattern.addChangeListener(this._blackbo xingStateChanged, this);
41 } 41 }
42 42
43 WebInspector.CallStackSidebarPane.Events = { 43 WebInspector.CallStackSidebarPane.Events = {
44 CallFrameSelected: "CallFrameSelected" 44 CallFrameSelected: "CallFrameSelected"
45 } 45 }
46 46
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 */ 412 */
413 _update: function(uiLocation) 413 _update: function(uiLocation)
414 { 414 {
415 var text = uiLocation.linkText(); 415 var text = uiLocation.linkText();
416 this.subtitle = text.trimMiddle(30); 416 this.subtitle = text.trimMiddle(30);
417 this.subtitleElement.title = text; 417 this.subtitleElement.title = text;
418 }, 418 },
419 419
420 __proto__: WebInspector.Placard.prototype 420 __proto__: WebInspector.Placard.prototype
421 } 421 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/sources/BreakpointsSidebarPane.js ('k') | Source/devtools/front_end/toolbox/ResponsiveDesignView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698