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/guest_view/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.",
136 "name": "instanceId",
137 "description": "The instance ID of the guest <webview> process."
141 "name": "zoomFactor",
142 "description" : "The new zoom factor."
147 "description": "Called after the zoom message has been sent to the guest process.",
159 "name": "instanceId",
160 "description": "The instance ID of the guest <webview> process."
165 "description": "Called after the current zoom factor is retrieved.",
169 "name": "zoomFactor",
170 "description": "The current zoom factor."
179 "description": "Initiates a find-in-page request.",
183 "name": "instanceId",
184 "description": "The instance ID of the guest <webview> process."
188 "name": "searchText",
189 "description": "The string to find in the page."
198 "description": "Flag to find matches in reverse order.",
203 "description": "Flag to match |searchText| with case-sensitivity.",
211 "description": "Called after all find results have been returned for this find request.",
221 "description": "The number of times |searchText| was matched on the page."
223 "activeMatchOrdinal": {
225 "description": "The ordinal number of the current match."
229 "description": "Describes a rectangle around the active match.",
247 "description": "Indicates whether this find request was canceled."
256 "name": "stopFinding",
258 "description": "Ends the current find session (clearing all highlighting) and cancels all find requests in progress.",
262 "name": "instanceId",
263 "description": "The instance ID of the guest <webview> process."
268 "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.",
270 "enum": ["clear", "keep", "activate"]
275 "name": "loadDataWithBaseUrl",
277 "description": "Loads a data URL with a specified base URL used for relative links. Optionally, a virtual URL can be provided to be shown to the user instead of the data URL.",
281 "name": "instanceId",
282 "description": "The instance ID of the guest <webview> process."
287 "description" : "The data URL to load."
292 "description": "The base URL that will be used for relative links."
296 "name": "virtualUrl",
297 "description": "The URL that will be displayed to the user.",
303 "description": "Called internally for the purpose of reporting errors to console.error().",
318 "name": "relativeIndex"
328 "description": "Indicates whether the navigation was successful."
335 "name": "overrideUserAgent",
344 "name": "userAgentOverride"
359 "name": "setAllowTransparency",
373 "name": "setAllowScaling",
401 "name": "setPermission",
415 "enum": ["allow", "deny", "default"]
472 "description": "Clears various types of browsing data stored in a storage partition of a <webview>.",
476 "name": "instanceId",
477 "description": "The instance ID of the guest <webview> process."
480 "$ref": "RemovalOptions",
484 "name": "dataToRemove",
485 "$ref": "DataTypeSet",
486 "description": "The set of data types to remove."
491 "description": "Called when deletion has completed.",