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

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

Issue 2160843002: [DevTools] Introduce DOM capability. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 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 6b8ca7053c4120d7780cf8ac5bbcc56979d2dec9..d36d8c10897c9cae966cd180361266fe84fe0c8b 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/Target.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/Target.js
@@ -36,6 +36,7 @@ WebInspector.Target.Capability = {
JS: 2,
Network: 4,
Worker: 8,
+ DOM: 16
}
WebInspector.Target._nextId = 1;
@@ -135,6 +136,14 @@ WebInspector.Target.prototype = {
},
/**
+ * @return {boolean}
+ */
+ hasDOMCapability: function()
+ {
+ return this.hasAllCapabilities(WebInspector.Target.Capability.DOM);
+ },
+
+ /**
* @return {?WebInspector.Target}
*/
parentTarget: function()

Powered by Google App Engine
This is Rietveld 408576698