OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 [ | 5 [ |
6 { | 6 { |
7 "namespace": "experimental.devtools.console", | 7 "namespace": "experimental.devtools.console", |
| 8 "description": "Use the <code>chrome.experimental.devtools.console</code> AP
I to retrieve messages from the inspected page console and post messages there."
, |
8 "nocompile": true, | 9 "nocompile": true, |
9 "functions": [ | 10 "functions": [ |
10 { | 11 { |
11 "name": "addMessage", | 12 "name": "addMessage", |
12 "type": "function", | 13 "type": "function", |
13 "description": "Adds a message to the console.", | 14 "description": "Adds a message to the console.", |
14 "parameters": [ | 15 "parameters": [ |
15 { "name": "severity", "$ref": "Severity", "description": "The severity
of the message." }, | 16 { "name": "severity", "$ref": "Severity", "description": "The severity
of the message." }, |
16 { "name": "text", "type": "string", "description": "The text of the me
ssage." } | 17 { "name": "text", "type": "string", "description": "The text of the me
ssage." } |
17 ] | 18 ] |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 "name": "onMessageAdded", | 91 "name": "onMessageAdded", |
91 "type": "function", | 92 "type": "function", |
92 "description": "Fired when a new message is added to the console.", | 93 "description": "Fired when a new message is added to the console.", |
93 "parameters": [ | 94 "parameters": [ |
94 { "name": "message", "$ref": "ConsoleMessage" } | 95 { "name": "message", "$ref": "ConsoleMessage" } |
95 ] | 96 ] |
96 } | 97 } |
97 ] | 98 ] |
98 } | 99 } |
99 ] | 100 ] |
OLD | NEW |