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

Side by Side Diff: Source/devtools/front_end/sdk/Target.js

Issue 315223002: DevTools: [JSDoc] Fix invalid @param and @return annotations (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
« no previous file with comments | « Source/devtools/front_end/profiler/heap_snapshot_worker/HeapSnapshot.js ('k') | no next file » | 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 2014 The Chromium Authors. All rights reserved. 2 * Copyright 2014 The Chromium Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 /** 7 /**
8 * @constructor 8 * @constructor
9 * @extends {Protocol.Agents} 9 * @extends {Protocol.Agents}
10 * @param {!InspectorBackendClass.Connection} connection 10 * @param {!InspectorBackendClass.Connection} connection
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 /** 238 /**
239 * @param {!InspectorBackendClass.Connection} connection 239 * @param {!InspectorBackendClass.Connection} connection
240 * @param {function(!WebInspector.Target)=} callback 240 * @param {function(!WebInspector.Target)=} callback
241 */ 241 */
242 createTarget: function(connection, callback) 242 createTarget: function(connection, callback)
243 { 243 {
244 var target = new WebInspector.Target(connection, callbackWrapper.bind(th is)); 244 var target = new WebInspector.Target(connection, callbackWrapper.bind(th is));
245 245
246 /** 246 /**
247 * @this {WebInspector.TargetManager} 247 * @this {WebInspector.TargetManager}
248 * @param newTarget 248 * @param {!WebInspector.Target} newTarget
249 */ 249 */
250 function callbackWrapper(newTarget) 250 function callbackWrapper(newTarget)
251 { 251 {
252 this._targets.push(newTarget); 252 this._targets.push(newTarget);
253 var copy = this._observers; 253 var copy = this._observers;
254 for (var i = 0; i < copy.length; ++i) 254 for (var i = 0; i < copy.length; ++i)
255 copy[i].targetAdded(newTarget); 255 copy[i].targetAdded(newTarget);
256 256
257 if (callback) 257 if (callback)
258 callback(newTarget); 258 callback(newTarget);
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 /** 292 /**
293 * @param {!WebInspector.Target} target 293 * @param {!WebInspector.Target} target
294 */ 294 */
295 targetRemoved: function(target) { }, 295 targetRemoved: function(target) { },
296 } 296 }
297 297
298 /** 298 /**
299 * @type {!WebInspector.TargetManager} 299 * @type {!WebInspector.TargetManager}
300 */ 300 */
301 WebInspector.targetManager; 301 WebInspector.targetManager;
OLDNEW
« no previous file with comments | « Source/devtools/front_end/profiler/heap_snapshot_worker/HeapSnapshot.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698