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

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

Issue 301163005: DevTools: [JSDoc] Avoid partial arg list annotations in code except "profiler" module (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 6 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
11 * documentation and/or other materials provided with the distribution. 11 * documentation and/or other materials provided with the distribution.
12 * 12 *
13 * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY 13 * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
14 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 14 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 15 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR 16 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR
17 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 17 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
18 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 18 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
19 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 19 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
20 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 20 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 /** 26 /**
27 * @constructor 27 * @constructor
28 * @extends {WebInspector.SidebarPane}
28 * @param {!WebInspector.DebuggerModel} debuggerModel 29 * @param {!WebInspector.DebuggerModel} debuggerModel
29 * @param {!WebInspector.BreakpointManager} breakpointManager 30 * @param {!WebInspector.BreakpointManager} breakpointManager
30 * @extends {WebInspector.SidebarPane} 31 * @param {function(!WebInspector.UISourceCode, number=, number=, boolean=)} sho wSourceLineDelegate
31 */ 32 */
32 WebInspector.JavaScriptBreakpointsSidebarPane = function(debuggerModel, breakpoi ntManager, showSourceLineDelegate) 33 WebInspector.JavaScriptBreakpointsSidebarPane = function(debuggerModel, breakpoi ntManager, showSourceLineDelegate)
33 { 34 {
34 WebInspector.SidebarPane.call(this, WebInspector.UIString("Breakpoints")); 35 WebInspector.SidebarPane.call(this, WebInspector.UIString("Breakpoints"));
35 this._debuggerModel = debuggerModel; 36 this._debuggerModel = debuggerModel;
36 this.registerRequiredCSS("breakpointsList.css"); 37 this.registerRequiredCSS("breakpointsList.css");
37 38
38 this._breakpointManager = breakpointManager; 39 this._breakpointManager = breakpointManager;
39 this._showSourceLineDelegate = showSourceLineDelegate; 40 this._showSourceLineDelegate = showSourceLineDelegate;
40 41
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 } 177 }
177 }, 178 },
178 179
179 _breakpointClicked: function(uiLocation, event) 180 _breakpointClicked: function(uiLocation, event)
180 { 181 {
181 this._showSourceLineDelegate(uiLocation.uiSourceCode, uiLocation.lineNum ber); 182 this._showSourceLineDelegate(uiLocation.uiSourceCode, uiLocation.lineNum ber);
182 }, 183 },
183 184
184 /** 185 /**
185 * @param {!WebInspector.BreakpointManager.Breakpoint} breakpoint 186 * @param {!WebInspector.BreakpointManager.Breakpoint} breakpoint
187 * @param {?Event} event
186 */ 188 */
187 _breakpointCheckboxClicked: function(breakpoint, event) 189 _breakpointCheckboxClicked: function(breakpoint, event)
188 { 190 {
189 // Breakpoint element has it's own click handler. 191 // Breakpoint element has it's own click handler.
190 event.consume(); 192 event.consume();
191 breakpoint.setEnabled(event.target.checked); 193 breakpoint.setEnabled(event.target.checked);
192 }, 194 },
193 195
194 /** 196 /**
195 * @param {!WebInspector.BreakpointManager.Breakpoint} breakpoint 197 * @param {!WebInspector.BreakpointManager.Breakpoint} breakpoint
198 * @param {?Event} event
196 */ 199 */
197 _breakpointContextMenu: function(breakpoint, event) 200 _breakpointContextMenu: function(breakpoint, event)
198 { 201 {
199 var breakpoints = this._items.values(); 202 var breakpoints = this._items.values();
200 var contextMenu = new WebInspector.ContextMenu(event); 203 var contextMenu = new WebInspector.ContextMenu(event);
201 contextMenu.appendItem(WebInspector.UIString(WebInspector.useLowerCaseMe nuTitles() ? "Remove breakpoint" : "Remove Breakpoint"), breakpoint.remove.bind( breakpoint)); 204 contextMenu.appendItem(WebInspector.UIString(WebInspector.useLowerCaseMe nuTitles() ? "Remove breakpoint" : "Remove Breakpoint"), breakpoint.remove.bind( breakpoint));
202 if (breakpoints.length > 1) { 205 if (breakpoints.length > 1) {
203 var removeAllTitle = WebInspector.UIString(WebInspector.useLowerCase MenuTitles() ? "Remove all breakpoints" : "Remove All Breakpoints"); 206 var removeAllTitle = WebInspector.UIString(WebInspector.useLowerCase MenuTitles() ? "Remove all breakpoints" : "Remove All Breakpoints");
204 contextMenu.appendItem(removeAllTitle, this._breakpointManager.remov eAllBreakpoints.bind(this._breakpointManager)); 207 contextMenu.appendItem(removeAllTitle, this._breakpointManager.remov eAllBreakpoints.bind(this._breakpointManager));
205 } 208 }
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
722 var breakpoints = WebInspector.settings.eventListenerBreakpoints.get(); 725 var breakpoints = WebInspector.settings.eventListenerBreakpoints.get();
723 for (var i = 0; i < breakpoints.length; ++i) { 726 for (var i = 0; i < breakpoints.length; ++i) {
724 var breakpoint = breakpoints[i]; 727 var breakpoint = breakpoints[i];
725 if (breakpoint && typeof breakpoint.eventName === "string") 728 if (breakpoint && typeof breakpoint.eventName === "string")
726 this._setBreakpoint(breakpoint.eventName); 729 this._setBreakpoint(breakpoint.eventName);
727 } 730 }
728 }, 731 },
729 732
730 __proto__: WebInspector.SidebarPane.prototype 733 __proto__: WebInspector.SidebarPane.prototype
731 } 734 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698