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

Unified Diff: chrome/common/extensions/api/devtools_api.json

Issue 9006027: Rip Out the Sidebar API (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 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: chrome/common/extensions/api/devtools_api.json
===================================================================
--- chrome/common/extensions/api/devtools_api.json (revision 115251)
+++ chrome/common/extensions/api/devtools_api.json (working copy)
@@ -288,105 +288,6 @@
]
},
{
- "id": "ExtensionSidebarPane",
Aaron Boodman 2011/12/21 08:38:20 Wrong 'sidebar'. This should stay.
- "type": "object",
- "description": "A sidebar created by the extension.",
- "functions": [
- {
- "name": "setHeight",
- "type": "function",
- "description": "Sets the height of the sidebar.",
- "parameters": [
- {
- "name": "height",
- "type": "string",
- "description": "A CSS-like size specification, such as <code>'100px'</code> or <code>'12ex'</code>."
- }
- ]
- },
- {
- "name": "setExpression",
- "type": "function",
- "description": "Sets an expression that is evaluated within the inspected page. The result is displayed in the sidebar pane.",
- "parameters": [
- {
- "name": "expression",
- "type": "string",
- "description": "An expression to be evaluated in context of the inspected page. JavaScript objects and DOM nodes are displayed in an expandable tree similar to the console/watch."
- },
- {
- "name": "rootTitle",
- "type": "string",
- "optional": true,
- "description": "An optional title for the root of the expression tree."
- },
- {
- "name": "callback",
- "type": "function",
- "optional": true,
- "description": "A callback invoked after the sidebar pane is updated with the expression evaluation results."
- }
- ]
- },
- {
- "name": "setObject",
- "type": "function",
- "description": "Sets a JSON-compliant object to be displayed in the sidebar pane.",
- "parameters": [
- {
- "name": "jsonObject",
- "type": "string",
- "description": "An object to be displayed in context of the inspected page. Evaluated in the context of the caller (API client)."
- },
- {
- "name": "rootTitle",
- "type": "string",
- "optional": true,
- "description": "An optional title for the root of the expression tree."
- },
- {
- "name": "callback",
- "type": "function",
- "optional": true,
- "description": "A callback invoked after the sidebar is updated with the object."
- }
- ]
- },
- {
- "name": "setPage",
- "type": "function",
- "description": "Sets an HTML page to be displayed in the sidebar pane.",
- "parameters": [
- {
- "name": "path",
- "type": "string",
- "description": "Relative path of an extension page to display within the sidebar."
- }
- ]
- }
- ],
- "events": [
- {
- "name": "onShown",
- "type": "function",
- "description": "Fired when the sidebar pane becomes visible as a result of user switching to the panel that hosts it.",
- "parameters": [
- {
- "name": "window",
- "type": "DOMWindow",
- "optional": true,
- "description": "The <code>window</code> object of the sidebar page, if one was set with the <code>setPage()</code> method."
- }
- ]
- },
- {
- "name": "onHidden",
- "type": "function",
- "description": "Fired when the sidebar pane becomes hidden as a result of the user switching away from the panel that hosts the sidebar pane."
- }
- ]
- },
- {
"id": "Button",
"type": "object",
"description": "A button created by the extension.",

Powered by Google App Engine
This is Rietveld 408576698