// Package deviceaccess provides the Chrome DevTools Protocol // commands, types, and events for the DeviceAccess domain. // // Generated by the cdproto-gen command.
package deviceaccess // Code generated by cdproto-gen. DO NOT EDIT. import ( ) // EnableParams enable events in this domain. type EnableParams struct{} // Enable enable events in this domain. // // See: https://chromedevtools.github.io/devtools-protocol/tot/DeviceAccess#method-enable func () *EnableParams { return &EnableParams{} } // Do executes DeviceAccess.enable against the provided context. func ( *EnableParams) ( context.Context) ( error) { return cdp.Execute(, CommandEnable, nil, nil) } // DisableParams disable events in this domain. type DisableParams struct{} // Disable disable events in this domain. // // See: https://chromedevtools.github.io/devtools-protocol/tot/DeviceAccess#method-disable func () *DisableParams { return &DisableParams{} } // Do executes DeviceAccess.disable against the provided context. func ( *DisableParams) ( context.Context) ( error) { return cdp.Execute(, CommandDisable, nil, nil) } // SelectPromptParams select a device in response to a // DeviceAccess.deviceRequestPrompted event. type SelectPromptParams struct { ID RequestID `json:"id"` DeviceID DeviceID `json:"deviceId"` } // SelectPrompt select a device in response to a // DeviceAccess.deviceRequestPrompted event. // // See: https://chromedevtools.github.io/devtools-protocol/tot/DeviceAccess#method-selectPrompt // // parameters: // // id // deviceID func ( RequestID, DeviceID) *SelectPromptParams { return &SelectPromptParams{ ID: , DeviceID: , } } // Do executes DeviceAccess.selectPrompt against the provided context. func ( *SelectPromptParams) ( context.Context) ( error) { return cdp.Execute(, CommandSelectPrompt, , nil) } // CancelPromptParams cancel a prompt in response to a // DeviceAccess.deviceRequestPrompted event. type CancelPromptParams struct { ID RequestID `json:"id"` } // CancelPrompt cancel a prompt in response to a // DeviceAccess.deviceRequestPrompted event. // // See: https://chromedevtools.github.io/devtools-protocol/tot/DeviceAccess#method-cancelPrompt // // parameters: // // id func ( RequestID) *CancelPromptParams { return &CancelPromptParams{ ID: , } } // Do executes DeviceAccess.cancelPrompt against the provided context. func ( *CancelPromptParams) ( context.Context) ( error) { return cdp.Execute(, CommandCancelPrompt, , nil) } // Command names. const ( CommandEnable = "DeviceAccess.enable" CommandDisable = "DeviceAccess.disable" CommandSelectPrompt = "DeviceAccess.selectPrompt" CommandCancelPrompt = "DeviceAccess.cancelPrompt" )