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

Side by Side Diff: Source/devtools/front_end/sources/CallStackSidebarPane.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
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 placard._asyncPlacard.setHidden(false); 142 placard._asyncPlacard.setHidden(false);
143 } 143 }
144 if (this._hiddenPlacardsMessageElement) { 144 if (this._hiddenPlacardsMessageElement) {
145 this._hiddenPlacardsMessageElement.remove(); 145 this._hiddenPlacardsMessageElement.remove();
146 delete this._hiddenPlacardsMessageElement; 146 delete this._hiddenPlacardsMessageElement;
147 } 147 }
148 }, 148 },
149 149
150 /** 150 /**
151 * @param {!WebInspector.CallStackSidebarPane.Placard} placard 151 * @param {!WebInspector.CallStackSidebarPane.Placard} placard
152 * @param {?Event} event
152 */ 153 */
153 _placardContextMenu: function(placard, event) 154 _placardContextMenu: function(placard, event)
154 { 155 {
155 var contextMenu = new WebInspector.ContextMenu(event); 156 var contextMenu = new WebInspector.ContextMenu(event);
156 157
157 if (!placard._callFrame.isAsync()) 158 if (!placard._callFrame.isAsync())
158 contextMenu.appendItem(WebInspector.UIString(WebInspector.useLowerCa seMenuTitles() ? "Restart frame" : "Restart Frame"), this._restartFrame.bind(thi s, placard)); 159 contextMenu.appendItem(WebInspector.UIString(WebInspector.useLowerCa seMenuTitles() ? "Restart frame" : "Restart Frame"), this._restartFrame.bind(thi s, placard));
159 160
160 contextMenu.appendItem(WebInspector.UIString(WebInspector.useLowerCaseMe nuTitles() ? "Copy stack trace" : "Copy Stack Trace"), this._copyStackTrace.bind (this)); 161 contextMenu.appendItem(WebInspector.UIString(WebInspector.useLowerCaseMe nuTitles() ? "Copy stack trace" : "Copy Stack Trace"), this._copyStackTrace.bind (this));
161 contextMenu.show(); 162 contextMenu.show();
162 }, 163 },
163 164
164 /** 165 /**
165 * @param {number} index 166 * @param {number} index
167 * @param {?Event} event
166 */ 168 */
167 _asyncPlacardContextMenu: function(index, event) 169 _asyncPlacardContextMenu: function(index, event)
168 { 170 {
169 for (; index < this.placards.length; ++index) { 171 for (; index < this.placards.length; ++index) {
170 var placard = this.placards[index]; 172 var placard = this.placards[index];
171 if (!placard.isHidden()) { 173 if (!placard.isHidden()) {
172 this._placardContextMenu(placard, event); 174 this._placardContextMenu(placard, event);
173 break; 175 break;
174 } 176 }
175 } 177 }
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 /** 360 /**
359 * @param {!WebInspector.UILocation} uiLocation 361 * @param {!WebInspector.UILocation} uiLocation
360 */ 362 */
361 _update: function(uiLocation) 363 _update: function(uiLocation)
362 { 364 {
363 this.subtitle = uiLocation.linkText().trimMiddle(100); 365 this.subtitle = uiLocation.linkText().trimMiddle(100);
364 }, 366 },
365 367
366 __proto__: WebInspector.Placard.prototype 368 __proto__: WebInspector.Placard.prototype
367 } 369 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698