home *** CD-ROM | disk | FTP | other *** search
/ Freelog 115 / FreelogNo115-MaiJuin2013.iso / Internet / AvantBrowser / asetup.exe / _data / webkit / chrome.dll / 0 / BINDATA / 26511 < prev    next >
Encoding:
Text File  |  2013-04-03  |  5.5 KB  |  148 lines

  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.
  4.  
  5. [
  6.   {
  7.     "namespace": "debugger",
  8.     "types": [
  9.       {
  10.         "id": "Debuggee",
  11.         "type": "object",
  12.         "description": "Debuggee identifier.",
  13.         "properties": {
  14.           "tabId": { "type": "integer", "description": "The id of the tab which you intend to debug." }
  15.         }
  16.       }
  17.     ],
  18.     "functions": [
  19.       {
  20.         "name": "attach",
  21.         "type": "function",
  22.         "description": "Attaches debugger to the given target.",
  23.         "parameters": [
  24.           {
  25.             "$ref": "Debuggee",
  26.             "name": "target",
  27.             "description": "Debugging target to which you want to attach."
  28.           },
  29.           {
  30.             "type": "string",
  31.             "name": "requiredVersion",
  32.             "description": "Required debugging protocol version (\"0.1\"). One can only attach to the debuggee with matching major version and greater or equal minor version. List of the protocol versions can be obtained <a href='http://code.google.com/chrome/devtools/docs/remote-debugging.html'>here</a>."
  33.           },
  34.           {
  35.             "type": "function",
  36.             "name": "callback",
  37.             "optional": true,
  38.             "parameters": [],
  39.             "description": "Called once the attach operation succeeds or fails. Callback receives no arguments. If the attach fails, $ref:runtime.lastError will be set to the error message."
  40.           }
  41.         ]
  42.       },
  43.       {
  44.         "name": "detach",
  45.         "type": "function",
  46.         "description": "Detaches debugger from the given target.",
  47.         "parameters": [
  48.           {
  49.             "$ref": "Debuggee",
  50.             "name": "target",
  51.             "description": "Debugging target from which you want to detach."
  52.           },
  53.           {
  54.             "type": "function",
  55.             "name": "callback",
  56.             "optional": true,
  57.             "parameters": [],
  58.             "description": "Called once the detach operation succeeds or fails. Callback receives no arguments. If the detach fails, $ref:runtime.lastError will be set to the error message."
  59.           }
  60.         ]
  61.       },
  62.       {
  63.         "name": "sendCommand",
  64.         "type": "function",
  65.         "description": "Sends given command to the debugging target.",
  66.         "parameters": [
  67.           {
  68.             "$ref": "Debuggee",
  69.             "name": "target",
  70.             "description": "Debugging target to which you want to send the command."
  71.           },
  72.           {
  73.             "type": "string",
  74.             "name": "method",
  75.             "description": "Method name. Should be one of the methods defined by the <a href='http://code.google.com/chrome/devtools/docs/remote-debugging.html'>remote debugging protocol</a>."
  76.           },
  77.           {
  78.             "type": "object",
  79.             "name": "commandParams",
  80.             "optional": true,
  81.             "additionalProperties": { "type": "any" },
  82.             "description": "JSON object with request parameters. This object must conform to the remote debugging params scheme for given method."
  83.           },
  84.           {
  85.             "type": "function",
  86.             "name": "callback",
  87.             "optional": true,
  88.             "parameters": [
  89.               {
  90.                 "type": "object",
  91.                 "name": "result",
  92.                 "optional": true,
  93.                 "additionalProperties": { "type": "any" },
  94.                 "description": "JSON object with the response. Structure of the response varies depending on the method and is defined by the remote debugging protocol."
  95.               }
  96.             ],
  97.             "description": "Response body. If an error occurs while posting the message, the callback will be called with no arguments and $ref:runtime.lastError will be set to the error message."
  98.           }
  99.         ]
  100.       }
  101.     ],
  102.     "events": [
  103.       {
  104.         "name": "onEvent",
  105.         "type": "function",
  106.         "description": "Fired whenever debugging target issues instrumentation event.",
  107.         "parameters": [
  108.           {
  109.             "$ref": "Debuggee",
  110.             "name": "source",
  111.             "description": "The debuggee that generated this event."
  112.           },
  113.           {
  114.             "type": "string",
  115.             "name": "method",
  116.             "description": "Method name. Should be one of the notifications defined by the <a href='http://code.google.com/chrome/devtools/docs/remote-debugging.html'>remote debugging protocol</a>."
  117.           },
  118.           {
  119.             "type": "object",
  120.             "name": "params",
  121.             "optional": true,
  122.             "additionalProperties": { "type": "any" },
  123.             "description": "JSON object with the response. Structure of the response varies depending on the method and is defined by the remote debugging protocol."
  124.           }
  125.         ]
  126.       },
  127.       {
  128.         "name": "onDetach",
  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 being invoked for the attached tab.",
  131.         "parameters": [
  132.           {
  133.             "$ref": "Debuggee",
  134.             "name": "source",
  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_devtools" ]
  142.           }
  143.         ]
  144.       }
  145.     ]
  146.   }
  147. ]
  148.