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

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

Issue 2543633009: [Devtools] Template fromTarget() function calls to model (Closed)
Patch Set: fix 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..64ddbdda061884b8a461c39a7bfce7c4e2c66f7b 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 {
}
/**
- * @param {!Function} modelClass
- * @return {?SDK.SDKModel}
+ * @param {function(new: (!T<!SDK.SDKModel>), ...)} modelClass
+ * @return {?T}
+ * @template T
*/
model(modelClass) {
return this._modelByConstructor.get(modelClass) || null;

Powered by Google App Engine
This is Rietveld 408576698