1 // Copyright (c) 2013 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.
7 "namespace": "webview",
13 "description": "A set of data types. Missing data types are interpreted as <code>false</code>.",
18 "description": "Websites' appcaches."
23 "description": "The browser's cookies."
28 "description": "Websites' file systems."
33 "description": "Websites' IndexedDB data."
38 "description": "Websites' local storage data."
43 "description": "Websites' WebSQL data."
48 "id": "RemovalOptions",
50 "description": "Options that determine exactly what data will be removed.",
55 "description": "Remove data accumulated on or after this date, represented in milliseconds since the epoch (accessible via the <code>getTime</code> method of the JavaScript <code>Date</code> object). If absent, defaults to 0 (which would remove all browsing data)."
64 "description": "Clears various types of browsing data stored in a storage partition of a <webview>.",
69 "description": "The instance ID of the guest <webview> process."
72 "$ref": "RemovalOptions",
76 "name": "dataToRemove",
77 "$ref": "DataTypeSet",
78 "description": "The set of data types to remove."
83 "description": "Called when deletion has completed.",
90 "name": "executeScript",
92 "description": "Injects JavaScript code into a <webview> page.",
97 "description": "The instance ID of the guest <webview> process."
100 "$ref": "tabs.InjectDetails",
102 "description": "Details of the script to run."
108 "description": "Called after all the JavaScript has been executed.",
114 "items": {"type": "any", "minimum": 0},
115 "description": "The result of the script in every injected frame."
124 "description": "Injects JavaScript code into a <webview> page.",
128 "name": "instanceId",
129 "description": "The instance ID of the guest <webview> process."
132 "$ref": "tabs.InjectDetails",
134 "description": "Details of the script to run."
140 "description": "Called after all the JavaScript has been executed.",
146 "items": {"type": "any", "minimum": 0},
147 "description": "The result of the script in every injected frame."
154 "name": "captureVisibleRegion",
156 "description": "Captures the visible area of the currently loaded page inside <webview>.",
160 "name": "instanceId",
161 "description": "The instance ID of the guest <webview> process."
164 "$ref": "types.ImageDetails",
169 "type": "function", "name": "callback", "parameters": [
170 {"type": "string", "name": "dataUrl", "description": "A data URL which encodes an image of the visible area of the captured tab. May be assigned to the 'src' property of an HTML Image element for display."}
185 "name": "relativeIndex"
190 "name": "overrideUserAgent",
199 "name": "userAgentOverride"
214 "name": "setPermission",
228 "enum": ["allow", "deny", "default"]