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

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

Issue 283603003: fixes for issue #51 in devtools-docs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed some problems after figuring out how to preview the files Created 6 years, 7 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: 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..10e46ccee2fb2f9f7ccbbbc3c127d9890696c524 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,41 @@
]
}
]
+ },
+ {
+ "name": "openResource",
+ "type": "function",
+ "description": "Allows extensions to open a URL in a Developer Tools panel.",
caseq 2014/05/15 14:31:34 "Requests DevTools to open a URL..."
mem 2014/05/15 20:19:03 Done.
+ "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."
+ }
+ ]
+ },
+ {
+ "name": "applyStyleSheet",
caseq 2014/05/15 14:31:34 Let's not make this one public yet, I'm not sure i
mem 2014/05/15 20:19:03 Done.
+ "type": "function",
+ "description": "Allows you to customize the styling of the DevTools panel.",
+ "parameters": [
+ {
+ "name": "responseText",
+ "type": "string",
+ "description": "Contains the response from the request."
+ }
+ ]
}
]
}

Powered by Google App Engine
This is Rietveld 408576698