vivaldi.webViewPrivate Modders API Reference
none
Types
#ThumbnailParams
Object passed to various thumbnail capture functions.
Properties:
- width
- (optional)
integer
The width of the scaled output bitmap.
- height
- (optional)
integer
The height of the scaled output bitmap.
- scale
- (optional)
number
Set scale of the output bitmap, defaults to 0.5. Note that |width.height| will be used if both |scale| and |width.height| are set.
Methods
#getThumbnail
⚠ NO DESCRIPTION PROVIDED
Parameters:
- instanceId
integer
⚠ NO DESCRIPTION PROVIDED
- params
ThumbnailParams
⚠ NO DESCRIPTION PROVIDED
#showPageInfo
⚠ NO DESCRIPTION PROVIDED
Parameters:
- instanceId
integer
⚠ NO DESCRIPTION PROVIDED
- position
object
⚠ NO DESCRIPTION PROVIDED
Object Properties:
- left
integer
Anchor left position, screen coordinates.
- top
integer
Anchor top position, screen coordinates.
#setIsFullscreen
⚠ NO DESCRIPTION PROVIDED
Parameters:
- instanceId
integer
⚠ NO DESCRIPTION PROVIDED
- isFullscreen
boolean
This is used to set a webview as fullscreen or not. This is needed for updating the pseudo-style :fullscreen when going in and out of fullscreen not via element.requestFullscreen and element.cancelFullscreen .
#getPageHistory
⚠ NO DESCRIPTION PROVIDED
Parameters:
- instanceId
integer
The instance ID of the guest
process.
- callback
Called when history .
Parameters:
- currentEntryIndex
integer
The current index.
- pageHistory
Array of history items with name and index.
Array
of:- object
- {'name': {'type': 'string', 'description': 'Title for the page.'}, 'url': {'type': 'string', 'description': 'URL for the entry.'}, 'index': {'type': 'integer', 'description': 'Relative history index. This can be used in
.go(|index|).'}}
#allowBlockedInsecureContent
Will load all blocked content in a page.
Parameters:
- instanceId
integer
⚠ NO DESCRIPTION PROVIDED
#sendRequest
Navigates the webview to a given URL but with greater control over the sent request.
Parameters:
- instanceId
integer
⚠ NO DESCRIPTION PROVIDED
- url
string
The URL of the page to navigate to.
- transitionType
historyPrivate.TransitionType
How the URL was reached.
- fromUrlField
boolean
Whether the request came from the url field
- usePost
boolean
Whether to perform the navigation via POST.
- postData
string
When using POST, this will be the body of the request.
- extraHeaders
string
Extra headers to pass with the request. See OpenURLParams in chromium code.