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

Unified Diff: chrome/common/extensions/api/devtools/panels.json

Issue 391243004: docs for chrome.devtools.panels & inspectedWindow (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: fix invalid json Created 6 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
« no previous file with comments | « chrome/common/extensions/api/devtools/inspected_window.json ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/devtools/panels.json
diff --git a/chrome/common/extensions/api/devtools/panels.json b/chrome/common/extensions/api/devtools/panels.json
index 0fec13a830c5bde19010df6d97e892616b4e641d..fa02daaffbc60c4b8457ff74168d64ec9537396e 100644
--- a/chrome/common/extensions/api/devtools/panels.json
+++ b/chrome/common/extensions/api/devtools/panels.json
@@ -256,6 +256,10 @@
"elements": {
"$ref": "ElementsPanel",
"description": "Elements panel."
+ },
+ "sources": {
+ "$ref": "SourcesPanel",
+ "description": "Sources panel."
}
},
"functions": [
@@ -313,6 +317,29 @@
]
}
]
+ },
+ {
+ "name": "openResource",
+ "type": "function",
+ "description": "Requests DevTools to open a URL in a Developer Tools panel.",
+ "parameters": [
+ {
+ "name": "url",
+ "type": "string",
+ "description": "The URL of the resource to open."
+ },
+ {
+ "name": "lineNumber",
+ "type": "integer",
+ "description": "Specifies the line number to scroll to when the resource is loaded."
+ },
+ {
+ "name": "callback",
+ "type": "function",
+ "optional": true,
+ "description": "A function that is called when the resource has been successfully loaded."
+ }
+ ]
}
]
}
« no previous file with comments | « chrome/common/extensions/api/devtools/inspected_window.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698