1 // Copyright 2014 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": "webViewInternal",
10 "implemented_in": "extensions/browser/api/web_view/web_view_internal_api.h"
16 "description": "A set of data types. Missing data types are interpreted as <code>false</code>.",
21 "description": "Websites' appcaches."
26 "description": "The browser's cookies."
31 "description": "Websites' file systems."
36 "description": "Websites' IndexedDB data."
41 "description": "Websites' local storage data."
46 "description": "Websites' WebSQL data."
51 "id": "RemovalOptions",
53 "description": "Options that determine exactly what data will be removed.",
58 "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)."
65 "name": "executeScript",
67 "description": "Injects JavaScript code into a <webview> page.",
72 "description": "The instance ID of the guest <webview> process."
77 "description": "The src of the guest <webview> tag."
80 "$ref": "extensionTypes.InjectDetails",
82 "description": "Details of the script to run."
88 "description": "Called after all the JavaScript has been executed.",
94 "items": {"type": "any", "minimum": 0},
95 "description": "The result of the script in every injected frame."
104 "description": "Injects CSS into a <webview> page. For details, see the <a href='/extensions/content_scripts#pi'>programmatic injection</a> section of the content scripts doc.",
108 "name": "instanceId",
109 "description": "The instance ID of the guest <webview> process."
114 "description": "The src of the guest <webview> tag."
117 "$ref": "extensionTypes.InjectDetails",
119 "description": "Details of the CSS text to insert."
125 "description": "Called when all the CSS has been inserted.",
131 "name": "captureVisibleRegion",
133 "description": "Captures the visible area of the currently loaded page inside <webview>.",
137 "name": "instanceId",
138 "description": "The instance ID of the guest <webview> process."
141 "$ref": "extensionTypes.ImageDetails",
146 "type": "function", "name": "callback", "parameters": [
147 {"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."}
158 "name": "instanceId",
159 "description": "The instance ID of the guest <webview> process."
163 "name": "zoomFactor",
164 "description" : "The new zoom factor."
169 "description": "Called after the zoom message has been sent to the guest process.",
181 "name": "instanceId",
182 "description": "The instance ID of the guest <webview> process."
187 "description": "Called after the current zoom factor is retreived.",
191 "name": "zoomFactor",
192 "description": "The current zoom factor."
201 "description": "Initiates a find-in-page request.",
205 "name": "instanceId",
206 "description": "The instance ID of the guest <webview> process."
210 "name": "searchText",
211 "description": "The string to find in the page."
220 "description": "Flag to find matches in reverse order.",
225 "description": "Flag to match |searchText| with case-sensitivity.",
233 "description": "Called after all find results have been returned for this find request.",
243 "description": "The number of times |searchText| was matched on the page."
245 "activeMatchOrdinal": {
247 "description": "The ordinal number of the current match."
251 "description": "Describes a rectangle around the active match.",
269 "description": "Indicates whether this find request was canceled."
278 "name": "stopFinding",
280 "description": "Ends the current find session (clearing all highlighting) and cancels all find requests in progress.",
284 "name": "instanceId",
285 "description": "The instance ID of the guest <webview> process."
290 "description": "Determines what to do with the active match after the find session has ended. 'clear' will clear the highlighting over the active match; 'keep' will keep the active match highlighted; 'activate' will keep the active match highlighted and simulate a user click on that match.",
292 "enum": ["clear", "keep", "activate"]
306 "name": "relativeIndex"
311 "name": "overrideUserAgent",
320 "name": "userAgentOverride"
335 "name": "setAllowTransparency",
363 "name": "setPermission",
377 "enum": ["allow", "deny", "default"]
434 "description": "Clears various types of browsing data stored in a storage partition of a <webview>.",
438 "name": "instanceId",
439 "description": "The instance ID of the guest <webview> process."
442 "$ref": "RemovalOptions",
446 "name": "dataToRemove",
447 "$ref": "DataTypeSet",
448 "description": "The set of data types to remove."
453 "description": "Called when deletion has completed.",