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": "debugger", | 7 "namespace": "debugger", |
8 "types": [ | 8 "types": [ |
9 { | 9 { |
10 "id": "Debuggee", | 10 "id": "Debuggee", |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 }, | 126 }, |
127 { | 127 { |
128 "name": "onDetach", | 128 "name": "onDetach", |
129 "type": "function", | 129 "type": "function", |
130 "description": "Fired when browser terminates debugging session for the
tab. This happens when either the tab is being closed or Chrome DevTools is bein
g invoked for the attached tab.", | 130 "description": "Fired when browser terminates debugging session for the
tab. This happens when either the tab is being closed or Chrome DevTools is bein
g invoked for the attached tab.", |
131 "parameters": [ | 131 "parameters": [ |
132 { | 132 { |
133 "$ref": "Debuggee", | 133 "$ref": "Debuggee", |
134 "name": "source", | 134 "name": "source", |
135 "description": "The debuggee that was detached." | 135 "description": "The debuggee that was detached." |
| 136 }, |
| 137 { |
| 138 "type": "string", |
| 139 "name": "reason", |
| 140 "description": "Connection termination reason.", |
| 141 "enum": [ "target_closed", "canceled_by_user", "replaced_with_devtoo
ls" ] |
136 } | 142 } |
137 ] | 143 ] |
138 } | 144 } |
139 ] | 145 ] |
140 } | 146 } |
141 ] | 147 ] |
OLD | NEW |