home *** CD-ROM | disk | FTP | other *** search
/ Freelog 115 / FreelogNo115-MaiJuin2013.iso / Internet / AvantBrowser / asetup.exe / _data / webkit / chrome.dll / 0 / BINDATA / 26540 < prev    next >
Encoding:
Text File  |  2013-04-03  |  4.0 KB  |  119 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": "omnibox",
  8.     "types": [
  9.       {
  10.         "id": "SuggestResult",
  11.         "type": "object",
  12.         "description": "A suggest result.",
  13.         "properties": {
  14.           "content": {
  15.             "type": "string",
  16.             "minLength": 1,
  17.             "description": "The text that is put into the URL bar, and that is sent to the extension when the user chooses this entry."
  18.           },
  19.           "description": {
  20.             "type": "string",
  21.             "minLength": 1,
  22.             "description": "The text that is displayed in the URL dropdown. Can contain XML-style markup for styling. The supported tags are 'url' (for a literal URL), 'match' (for highlighting text that matched what the user's query), and 'dim' (for dim helper text). The styles can be nested, eg. <dim><match>dimmed match</match></dim>."
  23.           }
  24.         }
  25.       }
  26.     ],
  27.     "functions": [
  28.       {
  29.         "name": "sendSuggestions",
  30.         "nodoc": true,
  31.         "type": "function",
  32.         "description": "A callback passed to the onInputChanged event used for sending suggestions back to the browser.",
  33.         "parameters": [
  34.           {"type": "integer", "name": "requestId"},
  35.           {
  36.             "name": "suggestResults",
  37.             "type": "array",
  38.             "description": "Array of suggest results",
  39.             "items": {
  40.               "type": "object",
  41.               "additionalProperties": { "type": "any" }
  42.             }
  43.           }
  44.         ]
  45.       },
  46.       {
  47.         "name": "setDefaultSuggestion",
  48.         "type": "function",
  49.         "description": "Sets the description and styling for the default suggestion. The default suggestion is the text that is displayed in the first suggestion row underneath the URL bar.",
  50.         "parameters": [
  51.           {
  52.             "type": "object",
  53.             "name": "suggestion",
  54.             "description": "A partial SuggestResult object, without the 'content' parameter. See SuggestResult for a description of the parameters.",
  55.             "properties": {
  56.               "description": {
  57.                 "type": "string",
  58.                 "minLength": 1,
  59.                 "description": "The text to display in the default suggestion. The placeholder string '%s' can be included and will be replaced with the user's input."
  60.               }
  61.             }
  62.           }
  63.         ]
  64.       }
  65.     ],
  66.     "events": [
  67.       {
  68.         "name": "onInputStarted",
  69.         "type": "function",
  70.         "description": "User has started a keyword input session by typing the extension's keyword. This is guaranteed to be sent exactly once per input session, and before any onInputChanged events.",
  71.         "parameters": []
  72.       },
  73.       {
  74.         "name": "onInputChanged",
  75.         "type": "function",
  76.         "description": "User has changed what is typed into the omnibox.",
  77.         "parameters": [
  78.           {
  79.             "type": "string",
  80.             "name": "text"
  81.           },
  82.           {
  83.             "name": "suggest",
  84.             "type": "function",
  85.             "description": "A callback passed to the onInputChanged event used for sending suggestions back to the browser.",
  86.             "parameters": [
  87.               {
  88.                 "name": "suggestResults",
  89.                 "type": "array",
  90.                 "description": "Array of suggest results",
  91.                 "items": {
  92.                   "$ref": "SuggestResult"
  93.                 }
  94.               }
  95.             ]
  96.           }
  97.         ]
  98.       },
  99.       {
  100.         "name": "onInputEntered",
  101.         "type": "function",
  102.         "description": "User has accepted what is typed into the omnibox.",
  103.         "parameters": [
  104.           {
  105.             "type": "string",
  106.             "name": "text"
  107.           }
  108.         ]
  109.       },
  110.       {
  111.         "name": "onInputCancelled",
  112.         "type": "function",
  113.         "description": "User has ended the keyword input session without accepting the input.",
  114.         "parameters": []
  115.       }
  116.     ]
  117.   }
  118. ]
  119.