Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / extensions / common / api / extension_view_internal.json
blob3160c68369ca4bd1bc38e53bf50154637853b493
1 // Copyright 2015 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.
6   {
7     "namespace": "extensionViewInternal",
8     "description": "none",
9     "compiler_options": {
10       "implemented_in": "extensions/browser/api/guest_view/extension_view/extension_view_internal_api.h"
11     },
12     "functions": [
13       {
14         "name": "loadSrc",
15         "type": "function",
16         "parameters": [
17           {
18             "type": "integer",
19             "name": "instanceId"
20           },
21           {
22             "type": "string",
23             "name": "src"
24           },
25           {
26             "type": "function",
27             "name": "callback",
28             "parameters": [
29               {
30                 "name": "hasLoadSucceeded",
31                 "type": "boolean",
32                 "description": "Whether or not loading the src has succeeded."
33               }
34             ]
35           }
36         ]
37       },
38       {
39         "name": "parseSrc",
40         "type": "function",
41         "parameters": [
42           {
43             "type": "string",
44             "name": "src"
45           },
46           {
47             "type": "function",
48             "name": "callback",
49             "parameters": [
50               {
51                 "name": "isSrcValid",
52                 "type": "boolean",
53                 "description": "Whether or not the src is valid."
54               },
55               {
56                 "name": "extensionId",
57                 "type": "string",
58                 "description": "The extension ID of the src."
59               }
60             ]
61           }
62         ]
63       }
64     ]
65   }