| 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":"webstorePrivate", |    7     "namespace":"webstorePrivate", | 
|    8     "description": "none", |    8     "description": "none", | 
|    9     "functions": [ |    9     "functions": [ | 
|   10       { |   10       { | 
|   11         "name": "install", |   11         "name": "install", | 
|   12         "nocompile": true, |   12         "nocompile": true, | 
|   13         "description": "Installs the extension corresponding to the given id", |   13         "description": "Installs the extension corresponding to the given id", | 
|   14         "parameters": [ |   14         "parameters": [ | 
|   15           { |   15           { | 
|   16             "name": "expected_id", |   16             "name": "expected_id", | 
|   17             "type": "string", |   17             "type": "string", | 
|   18             "description": "The id of the extension to install." |   18             "description": "The id of the extension to install." | 
|   19           }, |   19           }, | 
|   20           { |   20           { | 
|   21             "name": "callback", |   21             "name": "callback", | 
|   22             "type": "function", |   22             "type": "function", | 
|   23             "optional": true, |   23             "optional": true, | 
|   24             "parameters": [] |   24             "parameters": [] | 
|   25           } |   25           } | 
|   26         ] |   26         ] | 
|   27       }, |   27       }, | 
|   28       { |   28       { | 
|   29         "name": "installBundle", |  | 
|   30         "description": "Initiates the install process for the given bundle of ex
     tensions.", |  | 
|   31         "parameters": [ |  | 
|   32           { |  | 
|   33             "name": "details", |  | 
|   34             "description": "An array of extension details to be installed.", |  | 
|   35             "type": "array", |  | 
|   36             "items": { |  | 
|   37               "type": "object", |  | 
|   38               "properties": { |  | 
|   39                 "id": { |  | 
|   40                   "type": "string", |  | 
|   41                   "description": "The id of the extension to be installed.", |  | 
|   42                   "minLength": 32, |  | 
|   43                   "maxLength": 32 |  | 
|   44                 }, |  | 
|   45                 "manifest": { |  | 
|   46                   "type": "string", |  | 
|   47                   "description": "A string with the contents of the extension's 
     manifest.json file. During the install process, the browser will check that the 
     downloaded extension's manifest matches what was passed in here.", |  | 
|   48                   "minLength": 1 |  | 
|   49                 }, |  | 
|   50                 "localizedName": { |  | 
|   51                   "type": "string", |  | 
|   52                   "description": "A string to use instead of the raw value of th
     e 'name' key from manifest.json." |  | 
|   53                 } |  | 
|   54               } |  | 
|   55             } |  | 
|   56           }, |  | 
|   57           { |  | 
|   58             "name": "callback", |  | 
|   59             "type": "function", |  | 
|   60             "description": "Called when the install process completes. Upon fail
     ures, chrome.runtime.lastError will be set to 'user_canceled' or 'unknown_error'
     .", |  | 
|   61             "optional": true, |  | 
|   62             "parameters": [] |  | 
|   63           } |  | 
|   64         ] |  | 
|   65       }, |  | 
|   66       { |  | 
|   67         "name": "beginInstallWithManifest3", |   29         "name": "beginInstallWithManifest3", | 
|   68         "description": "Initiates the install process for the given extension.", |   30         "description": "Initiates the install process for the given extension.", | 
|   69         "parameters": [ |   31         "parameters": [ | 
|   70           { |   32           { | 
|   71             "name": "details", |   33             "name": "details", | 
|   72             "type": "object", |   34             "type": "object", | 
|   73             "properties": { |   35             "properties": { | 
|   74               "id": { |   36               "id": { | 
|   75                 "type": "string", |   37                 "type": "string", | 
|   76                 "description": "The id of the extension to be installled.", |   38                 "description": "The id of the extension to be installled.", | 
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  292                 "enum": ["success", "user_gesture_required", "unknown_error", "f
     eature_disabled", "unsupported_extension_type", "missing_dependencies", "install
     _error", "user_cancelled", "invalid_id", "blacklisted", "blocked_by_policy", "in
     stall_in_progress", "launch_in_progress"], |  254                 "enum": ["success", "user_gesture_required", "unknown_error", "f
     eature_disabled", "unsupported_extension_type", "missing_dependencies", "install
     _error", "user_cancelled", "invalid_id", "blacklisted", "blocked_by_policy", "in
     stall_in_progress", "launch_in_progress"], | 
|  293                 "description": "Whether an attempt to launch an app succeeded, o
     r the reason for failure." |  255                 "description": "Whether an attempt to launch an app succeeded, o
     r the reason for failure." | 
|  294               } |  256               } | 
|  295             ] |  257             ] | 
|  296           } |  258           } | 
|  297         ] |  259         ] | 
|  298       } |  260       } | 
|  299     ] |  261     ] | 
|  300   } |  262   } | 
|  301 ] |  263 ] | 
| OLD | NEW |