1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
7 "namespace": "experimental.devtools.console",
8 "description": "Use the <code>chrome.experimental.devtools.console</code> API to retrieve messages from the inspected page console and post messages there.",
14 "description": "Adds a message to the console.",
16 { "name": "severity", "$ref": "Severity", "description": "The severity of the message." },
17 { "name": "text", "type": "string", "description": "The text of the message." }
21 "name": "getMessages",
23 "description": "Retrieves console messages.",
28 "description": "A function that receives console messages when the request completes.",
33 "items": { "$ref": "ConsoleMessage" },
34 "description": "Console messages."
43 "id": "ConsoleMessage",
45 "description": "A console message.",
49 "description": "Message severity."
53 "description": "The text of the console message, as represented by the first argument to the console.log() or a similar method (no parameter substitution performed)."
58 "description": "The URL of the script that originated the message, if available."
63 "description": "The number of the line where the message originated, if available."
91 "name": "onMessageAdded",
93 "description": "Fired when a new message is added to the console.",
95 { "name": "message", "$ref": "ConsoleMessage" }