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

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

Issue 2345873002: [Devtools] Add capability for the log domain (Closed)
Patch Set: [Devtools] Add capability for the log domain Created 4 years, 3 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 099b0a06c1f0981569e5d0a164e0a3a1ef5da2fc..857aab54e7385fad2209bba00d8d08b8b26c70e9 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/Target.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/Target.js
@@ -34,11 +34,12 @@ WebInspector.Target = function(targetManager, name, capabilitiesMask, connection
*/
WebInspector.Target.Capability = {
Browser: 1,
- JS: 2,
- Network: 4,
- Worker: 8,
- DOM: 16
-}
+ DOM: 2,
+ JS: 4,
+ Log: 8,
+ Network: 16,
+ Worker: 32
+};
WebInspector.Target._nextId = 1;
@@ -123,6 +124,14 @@ WebInspector.Target.prototype = {
/**
* @return {boolean}
*/
+ hasLogCapability: function()
+ {
+ return this.hasAllCapabilities(WebInspector.Target.Capability.Log);
+ },
+
+ /**
+ * @return {boolean}
+ */
hasNetworkCapability: function()
{
return this.hasAllCapabilities(WebInspector.Target.Capability.Network);

Powered by Google App Engine
This is Rietveld 408576698