Package-level declarations

Types

@Serializable
data class AddPrivacySandboxEnrollmentOverrideRequest(val url: String)

Request object containing input parameters for the BrowserDomain.addPrivacySandboxEnrollmentOverride command.

A dummy response object for the BrowserDomain.addPrivacySandboxEnrollmentOverride command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class Bounds(val left: Int? = null, val top: Int? = null, val width: Int? = null, val height: Int? = null, val windowState: WindowState? = null)

Browser window bounds information

Link copied to clipboard
@Serializable
enum BrowserCommandId : Enum<BrowserCommandId>

Browser command ids used by executeBrowserCommand.

Link copied to clipboard
Link copied to clipboard

The Browser domain defines methods and events for browser managing.

Link copied to clipboard
@Serializable
data class Bucket(val low: Int, val high: Int, val count: Int)

Chrome histogram bucket.

Link copied to clipboard
@Serializable
data class CancelDownloadRequest(val guid: String, val browserContextId: BrowserContextID? = null)

Request object containing input parameters for the BrowserDomain.cancelDownload command.

Link copied to clipboard
@Serializable
object CancelDownloadResponse

A dummy response object for the BrowserDomain.cancelDownload command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
object CloseResponse

A dummy response object for the BrowserDomain.close command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
object CrashGpuProcessResponse

A dummy response object for the BrowserDomain.crashGpuProcess command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
object CrashResponse

A dummy response object for the BrowserDomain.crash command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
enum DownloadBehavior : Enum<DownloadBehavior>

This enum doesn't have a proper description because it was generated from an inline declaration. Its name was inferred based on the place where it is used:

Link copied to clipboard

This enum doesn't have a proper description because it was generated from an inline declaration. Its name was inferred based on the place where it is used:

Link copied to clipboard
@Serializable
data class ExecuteBrowserCommandRequest(val commandId: BrowserCommandId)

Request object containing input parameters for the BrowserDomain.executeBrowserCommand command.

Link copied to clipboard
@Serializable
object ExecuteBrowserCommandResponse

A dummy response object for the BrowserDomain.executeBrowserCommand command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class GetBrowserCommandLineResponse(val arguments: List<String>)

Response type for the BrowserDomain.getBrowserCommandLine command.

Link copied to clipboard
@Serializable
data class GetHistogramRequest(val name: String, val delta: Boolean? = null)

Request object containing input parameters for the BrowserDomain.getHistogram command.

Link copied to clipboard
@Serializable
data class GetHistogramResponse(val histogram: Histogram)

Response type for the BrowserDomain.getHistogram command.

Link copied to clipboard
@Serializable
data class GetHistogramsRequest(val query: String? = null, val delta: Boolean? = null)

Request object containing input parameters for the BrowserDomain.getHistograms command.

Link copied to clipboard
@Serializable
data class GetHistogramsResponse(val histograms: List<Histogram>)

Response type for the BrowserDomain.getHistograms command.

Link copied to clipboard
@Serializable
data class GetVersionResponse(val protocolVersion: String, val product: String, val revision: String, val userAgent: String, val jsVersion: String)

Response type for the BrowserDomain.getVersion command.

Link copied to clipboard
@Serializable
data class GetWindowBoundsRequest(val windowId: WindowID)

Request object containing input parameters for the BrowserDomain.getWindowBounds command.

Link copied to clipboard
@Serializable
data class GetWindowBoundsResponse(val bounds: Bounds)

Response type for the BrowserDomain.getWindowBounds command.

Link copied to clipboard
@Serializable
data class GetWindowForTargetRequest(val targetId: TargetID? = null)

Request object containing input parameters for the BrowserDomain.getWindowForTarget command.

Link copied to clipboard
@Serializable
data class GetWindowForTargetResponse(val windowId: WindowID, val bounds: Bounds)

Response type for the BrowserDomain.getWindowForTarget command.

Link copied to clipboard
@Serializable
data class GrantPermissionsRequest(val permissions: List<PermissionType>, val origin: String? = null, val browserContextId: BrowserContextID? = null)

Request object containing input parameters for the BrowserDomain.grantPermissions command.

Link copied to clipboard
@Serializable
object GrantPermissionsResponse

A dummy response object for the BrowserDomain.grantPermissions command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class Histogram(val name: String, val sum: Int, val count: Int, val buckets: List<Bucket>)

Chrome histogram.

Link copied to clipboard
@Serializable
data class PermissionDescriptor(val name: String, val sysex: Boolean? = null, val userVisibleOnly: Boolean? = null, val allowWithoutSanitization: Boolean? = null, val panTiltZoom: Boolean? = null)

Definition of PermissionDescriptor defined in the Permissions API: https://w3c.github.io/permissions/#dictdef-permissiondescriptor.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@Serializable
data class ResetPermissionsRequest(val browserContextId: BrowserContextID? = null)

Request object containing input parameters for the BrowserDomain.resetPermissions command.

Link copied to clipboard
@Serializable
object ResetPermissionsResponse

A dummy response object for the BrowserDomain.resetPermissions command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class SetDockTileRequest(val badgeLabel: String? = null, val image: String? = null)

Request object containing input parameters for the BrowserDomain.setDockTile command.

Link copied to clipboard
@Serializable
object SetDockTileResponse

A dummy response object for the BrowserDomain.setDockTile command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class SetDownloadBehaviorRequest(val behavior: DownloadBehavior, val browserContextId: BrowserContextID? = null, val downloadPath: String? = null, val eventsEnabled: Boolean? = null)

Request object containing input parameters for the BrowserDomain.setDownloadBehavior command.

Link copied to clipboard
@Serializable
object SetDownloadBehaviorResponse

A dummy response object for the BrowserDomain.setDownloadBehavior command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class SetPermissionRequest(val permission: PermissionDescriptor, val setting: PermissionSetting, val origin: String? = null, val browserContextId: BrowserContextID? = null)

Request object containing input parameters for the BrowserDomain.setPermission command.

Link copied to clipboard
@Serializable
object SetPermissionResponse

A dummy response object for the BrowserDomain.setPermission command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class SetWindowBoundsRequest(val windowId: WindowID, val bounds: Bounds)

Request object containing input parameters for the BrowserDomain.setWindowBounds command.

Link copied to clipboard
@Serializable
object SetWindowBoundsResponse

A dummy response object for the BrowserDomain.setWindowBounds command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
Link copied to clipboard
@Serializable
enum WindowState : Enum<WindowState>

The state of the browser window.