Changeset 84624 in webkit
- Timestamp:
- Apr 22, 2011 6:36:51 AM (13 years ago)
- Location:
- trunk/Source
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r84623 r84624 1 2011-04-22 Andrey Kosyakov <caseq@chromium.org> 2 3 Reviewed by Pavel Feldman. 4 5 Web Inspector: [Extensions API] misc API cleanup 6 https://bugs.webkit.org/show_bug.cgi?id=59194 7 8 * inspector/front-end/ExtensionAPISchema.json: 9 * inspector/front-end/ExtensionPanel.js: 10 (WebInspector.ExtensionSidebarPane.prototype._setObject): 11 1 12 2011-04-21 Pavel Feldman <pfeldman@google.com> 2 13 -
trunk/Source/WebCore/inspector/front-end/ExtensionAPISchema.json
r83033 r84624 22 22 "name": "callback", 23 23 "type": "function", 24 "description": "A callback invoked when sidebar is created ",24 "description": "A callback invoked when sidebar is created.", 25 25 "parameters": [ 26 26 { 27 27 "name": "result", 28 "description": "An ExtensionSidebarPane object for created sidebar pane ",28 "description": "An ExtensionSidebarPane object for created sidebar pane.", 29 29 "$ref": "ExtensionSidebarPane" 30 30 } … … 43 43 { 44 44 "name": "onSelectionChanged", 45 "description": "Fired when an object sis selected in the panel."45 "description": "Fired when an object is selected in the panel." 46 46 } 47 47 ] … … 51 51 "type": "object", 52 52 "isInstanceOf": "Panel", 53 "description": "Represents a panel created by extension ",53 "description": "Represents a panel created by extension.", 54 54 "events": [ 55 55 { … … 66 66 "type": "string", 67 67 "optional": true, 68 "description": "Query string (only for 'performSearch') "68 "description": "Query string (only for 'performSearch')." 69 69 } 70 70 ] … … 85 85 "name": "height", 86 86 "type": "string", 87 "description": "A CSS-like size specification, e.g. '10px' or '12pt' "87 "description": "A CSS-like size specification, e.g. '10px' or '12pt'." 88 88 } 89 89 ] … … 141 141 ], 142 142 "properties": { 143 " scripts": {144 "$ref": " ScriptsPanel",145 "description": " Scripts panel"143 "elements": { 144 "$ref": "ElementsPanel", 145 "description": "Elements panel." 146 146 } 147 147 }, … … 270 270 "description": "Adds an audit category.", 271 271 "parameters": [ 272 { "name": "displayName", "type": "string", "description": "A display name for the category " },272 { "name": "displayName", "type": "string", "description": "A display name for the category." }, 273 273 { "name": "resultCount", "type": "number", "description": "The expected number of audit results in the category." } 274 274 ], … … 297 297 "id": "FormattedValue", 298 298 "type": "object", 299 "description": "A value returned from one of the formatters (an URL, code snippet etc), to be passed to createResult or addChild "299 "description": "A value returned from one of the formatters (an URL, code snippet etc), to be passed to createResult or addChild." 300 300 }, 301 301 { 302 302 "id": "AuditResults", 303 303 "type": "object", 304 "description": "A collection of audit results for current run of the audit category ",304 "description": "A collection of audit results for current run of the audit category.", 305 305 "functions": [ 306 306 { … … 311 311 "name": "displayName", 312 312 "type": "string", 313 "description": "A concise, high-level description of audit rule result "313 "description": "A concise, high-level description of audit rule result." 314 314 }, 315 315 { 316 316 "name": "description", 317 317 "type": "string", 318 "description": "A detailed description of what the displayName means "318 "description": "A detailed description of what the displayName means." 319 319 }, 320 320 { … … 326 326 "$ref": "AuditResultNode", 327 327 "optional": true, 328 "description": "A subtree that appears under added result that may provide additional details on the violations found "328 "description": "A subtree that appears under added result that may provide additional details on the violations found." 329 329 } 330 330 ] … … 333 333 "name": "createResult", 334 334 "type": "function", 335 "description": "Creates a result node that may be user as details parameters to addResult ",335 "description": "Creates a result node that may be user as details parameters to addResult.", 336 336 "parameters": [ 337 337 { … … 341 341 { "$ref": "FormattedValue" } 342 342 ], 343 "description": "Either string or formatted values returned by one of AuditResult formatters (url, snippet etc) "343 "description": "Either string or formatted values returned by one of AuditResult formatters (url, snippet etc)." 344 344 } 345 345 ], … … 358 358 "description": "Render passed value as an URL in the Audits panel", 359 359 "parameters": [ 360 { "name": "href", "type": "string", "description": "An URL that will appear as href value on resulting link" },361 { "name": "displayText", "type": "string", "description": "A text that will appear to user", "optional": true }360 { "name": "href", "type": "string", "description": "An URL that will appear as the href value on the resulting link." }, 361 { "name": "displayText", "type": "string", "description": "A text that will appear to the user.", "optional": true } 362 362 ], 363 363 "returns": { "$ref": "FormattedValue" } … … 366 366 "name": "snippet", 367 367 "type": "function", 368 "description": "Render passed text as a code snippet in the Audits panel ",369 "parameters": [ 370 { "name": "text", "type": "string", "description": "Snippet text " }368 "description": "Render passed text as a code snippet in the Audits panel.", 369 "parameters": [ 370 { "name": "text", "type": "string", "description": "Snippet text." } 371 371 ], 372 372 "returns": { "$ref": "FormattedValue" } … … 398 398 "id": "AuditResultNode", 399 399 "type": "object", 400 "description": "A node in the audit result tree s. Displays some content and optionally has children node",400 "description": "A node in the audit result tree. Displays some content and optionally has children node.", 401 401 "functions": [ 402 402 { 403 403 "name": "addChild", 404 "description": "Adds another child node to this node ",404 "description": "Adds another child node to this node.", 405 405 "parameters": [ 406 406 { … … 410 410 { "$ref": "FormattedValue" } 411 411 ], 412 "description": "Either string or formatted values returned by one of AuditResult formatters (url, snippet etc) "412 "description": "Either string or formatted values returned by one of AuditResult formatters (url, snippet etc)." 413 413 } 414 414 ], … … 421 421 "expanded": { 422 422 "type": "boolean", 423 "description": "If set, the subtree will always be expanded "423 "description": "If set, the subtree will always be expanded." 424 424 } 425 425 } -
trunk/Source/WebCore/inspector/front-end/ExtensionPanel.js
r84510 r84624 120 120 section.headerElement.addStyleClass("hidden"); 121 121 section.expanded = true; 122 section.editable = false; 122 123 this.bodyElement.appendChild(section.element); 123 124 WebInspector.extensionServer.notifyExtensionSidebarUpdated(this._id); -
trunk/Source/WebKit/chromium/ChangeLog
r84593 r84624 1 2011-04-22 Andrey Kosyakov <caseq@chromium.org> 2 3 Reviewed by Pavel Feldman. 4 5 Web Inspector: [Extensions API] misc API cleanup 6 https://bugs.webkit.org/show_bug.cgi?id=59194 7 8 * src/js/DevTools.js: 9 (WebInspector.platformExtensionAPI): 10 1 11 2011-04-21 Chris Fleizach <cfleizach@apple.com> 2 12 -
trunk/Source/WebKit/chromium/src/js/DevTools.js
r84358 r84624 172 172 webInspector.inspectedWindow.__proto__.__defineGetter__("tabId", getTabId); 173 173 chrome = window.chrome || {}; 174 chrome.devTools = chrome.devTools || {}; 174 chrome.experimental = chrome.experimental || {}; 175 chrome.experimental.devtools = chrome.experimental.devtools || {}; 175 176 for (var property in webInspector) 176 chrome. devTools[property] = webInspector[property];177 chrome.experimental.devtools[property] = webInspector[property]; 177 178 } 178 179
Note: See TracChangeset
for help on using the changeset viewer.