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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sdk/Target.js

Issue 2543633009: [Devtools] Template fromTarget() function calls to model (Closed)
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/sdk/Target.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/Target.js b/third_party/WebKit/Source/devtools/front_end/sdk/Target.js
index c7a38f142492741f72980011a96201c489c00796..ddd7696b845730a14f79be62212ce6a4bedf2221 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/Target.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/Target.js
@@ -136,8 +136,9 @@ SDK.Target = class extends Protocol.TargetBase {
}
/**
lushnikov 2016/12/03 00:36:23 nit: we sort jsdoc parameters alphabetically, so i
allada 2016/12/03 02:12:02 Done.
- * @param {!Function} modelClass
- * @return {?SDK.SDKModel}
+ * @template T
+ * @param {function(new: (!T<!SDK.SDKModel>), ...)} modelClass
+ * @return {?T}
*/
model(modelClass) {
return this._modelByConstructor.get(modelClass) || null;

Powered by Google App Engine
This is Rietveld 408576698