Documentation ¶
Index ¶
- type AddScriptToEvaluateOnLoadCommand
- func (c *AddScriptToEvaluateOnLoadCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
- func (c *AddScriptToEvaluateOnLoadCommand) Respond(r *AddScriptToEvaluateOnLoadReturn)
- func (c *AddScriptToEvaluateOnLoadCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
- type AddScriptToEvaluateOnLoadCommandFn
- type AddScriptToEvaluateOnLoadReturn
- type AppManifestError
- type CaptureScreenshotCommand
- type CaptureScreenshotCommandFn
- type CaptureScreenshotFormatEnum
- type CaptureScreenshotReturn
- type ClearDeviceMetricsOverrideCommand
- type ClearDeviceMetricsOverrideCommandFn
- type ClearDeviceMetricsOverrideReturn
- type ClearDeviceOrientationOverrideCommand
- type ClearDeviceOrientationOverrideCommandFn
- type ClearDeviceOrientationOverrideReturn
- type ClearGeolocationOverrideCommand
- type ClearGeolocationOverrideCommandFn
- type ClearGeolocationOverrideReturn
- type ColorPickedEvent
- type ConfigureOverlayCommand
- type ConfigureOverlayCommandFn
- type ConfigureOverlayReturn
- type DeleteCookieCommand
- type DeleteCookieCommandFn
- type DeleteCookieReturn
- type DialogType
- type DisableCommand
- type DisableCommandFn
- type DisableReturn
- type DomContentEventFiredEvent
- type EnableCommand
- type EnableCommandFn
- type EnableReturn
- type Frame
- type FrameAttachedEvent
- type FrameClearedScheduledNavigationEvent
- type FrameDetachedEvent
- type FrameId
- type FrameNavigatedEvent
- type FrameResizedEvent
- type FrameResource
- type FrameResourceTree
- type FrameScheduledNavigationEvent
- type FrameStartedLoadingEvent
- type FrameStoppedLoadingEvent
- type GetAppManifestCommand
- type GetAppManifestCommandFn
- type GetAppManifestReturn
- type GetLayoutMetricsCommand
- type GetLayoutMetricsCommandFn
- type GetLayoutMetricsReturn
- type GetNavigationHistoryCommand
- type GetNavigationHistoryCommandFn
- type GetNavigationHistoryReturn
- type GetResourceContentCommand
- type GetResourceContentCommandFn
- type GetResourceContentReturn
- type GetResourceTreeCommand
- type GetResourceTreeCommandFn
- type GetResourceTreeReturn
- type HandleJavaScriptDialogCommand
- type HandleJavaScriptDialogCommandFn
- type HandleJavaScriptDialogReturn
- type InterstitialHiddenEvent
- type InterstitialShownEvent
- type JavascriptDialogClosedEvent
- type JavascriptDialogOpeningEvent
- type LayoutViewport
- type LoadEventFiredEvent
- type NavigateCommand
- type NavigateCommandFn
- type NavigateReturn
- type NavigateToHistoryEntryCommand
- type NavigateToHistoryEntryCommandFn
- type NavigateToHistoryEntryReturn
- type NavigationEntry
- type NavigationRequestedEvent
- type NavigationResponse
- type PageAgent
- func (agent *PageAgent) FireColorPicked(event ColorPickedEvent)
- func (agent *PageAgent) FireColorPickedOnTarget(targetId string, event ColorPickedEvent)
- func (agent *PageAgent) FireDomContentEventFired(event DomContentEventFiredEvent)
- func (agent *PageAgent) FireDomContentEventFiredOnTarget(targetId string, event DomContentEventFiredEvent)
- func (agent *PageAgent) FireFrameAttached(event FrameAttachedEvent)
- func (agent *PageAgent) FireFrameAttachedOnTarget(targetId string, event FrameAttachedEvent)
- func (agent *PageAgent) FireFrameClearedScheduledNavigation(event FrameClearedScheduledNavigationEvent)
- func (agent *PageAgent) FireFrameClearedScheduledNavigationOnTarget(targetId string, event FrameClearedScheduledNavigationEvent)
- func (agent *PageAgent) FireFrameDetached(event FrameDetachedEvent)
- func (agent *PageAgent) FireFrameDetachedOnTarget(targetId string, event FrameDetachedEvent)
- func (agent *PageAgent) FireFrameNavigated(event FrameNavigatedEvent)
- func (agent *PageAgent) FireFrameNavigatedOnTarget(targetId string, event FrameNavigatedEvent)
- func (agent *PageAgent) FireFrameResized()
- func (agent *PageAgent) FireFrameResizedOnTarget(targetId string)
- func (agent *PageAgent) FireFrameScheduledNavigation(event FrameScheduledNavigationEvent)
- func (agent *PageAgent) FireFrameScheduledNavigationOnTarget(targetId string, event FrameScheduledNavigationEvent)
- func (agent *PageAgent) FireFrameStartedLoading(event FrameStartedLoadingEvent)
- func (agent *PageAgent) FireFrameStartedLoadingOnTarget(targetId string, event FrameStartedLoadingEvent)
- func (agent *PageAgent) FireFrameStoppedLoading(event FrameStoppedLoadingEvent)
- func (agent *PageAgent) FireFrameStoppedLoadingOnTarget(targetId string, event FrameStoppedLoadingEvent)
- func (agent *PageAgent) FireInterstitialHidden()
- func (agent *PageAgent) FireInterstitialHiddenOnTarget(targetId string)
- func (agent *PageAgent) FireInterstitialShown()
- func (agent *PageAgent) FireInterstitialShownOnTarget(targetId string)
- func (agent *PageAgent) FireJavascriptDialogClosed(event JavascriptDialogClosedEvent)
- func (agent *PageAgent) FireJavascriptDialogClosedOnTarget(targetId string, event JavascriptDialogClosedEvent)
- func (agent *PageAgent) FireJavascriptDialogOpening(event JavascriptDialogOpeningEvent)
- func (agent *PageAgent) FireJavascriptDialogOpeningOnTarget(targetId string, event JavascriptDialogOpeningEvent)
- func (agent *PageAgent) FireLoadEventFired(event LoadEventFiredEvent)
- func (agent *PageAgent) FireLoadEventFiredOnTarget(targetId string, event LoadEventFiredEvent)
- func (agent *PageAgent) FireNavigationRequested(event NavigationRequestedEvent)
- func (agent *PageAgent) FireNavigationRequestedOnTarget(targetId string, event NavigationRequestedEvent)
- func (agent *PageAgent) FireScreencastFrame(event ScreencastFrameEvent)
- func (agent *PageAgent) FireScreencastFrameOnTarget(targetId string, event ScreencastFrameEvent)
- func (agent *PageAgent) FireScreencastVisibilityChanged(event ScreencastVisibilityChangedEvent)
- func (agent *PageAgent) FireScreencastVisibilityChangedOnTarget(targetId string, event ScreencastVisibilityChangedEvent)
- func (agent *PageAgent) Name() string
- func (agent *PageAgent) ProcessCommand(id int64, targetId string, funcName string, data *json.RawMessage)
- func (agent *PageAgent) SetAddScriptToEvaluateOnLoadHandler(handler func(AddScriptToEvaluateOnLoadCommand))
- func (agent *PageAgent) SetCaptureScreenshotHandler(handler func(CaptureScreenshotCommand))
- func (agent *PageAgent) SetClearDeviceMetricsOverrideHandler(handler func(ClearDeviceMetricsOverrideCommand))
- func (agent *PageAgent) SetClearDeviceOrientationOverrideHandler(handler func(ClearDeviceOrientationOverrideCommand))
- func (agent *PageAgent) SetClearGeolocationOverrideHandler(handler func(ClearGeolocationOverrideCommand))
- func (agent *PageAgent) SetConfigureOverlayHandler(handler func(ConfigureOverlayCommand))
- func (agent *PageAgent) SetDeleteCookieHandler(handler func(DeleteCookieCommand))
- func (agent *PageAgent) SetDisableHandler(handler func(DisableCommand))
- func (agent *PageAgent) SetEnableHandler(handler func(EnableCommand))
- func (agent *PageAgent) SetGetAppManifestHandler(handler func(GetAppManifestCommand))
- func (agent *PageAgent) SetGetLayoutMetricsHandler(handler func(GetLayoutMetricsCommand))
- func (agent *PageAgent) SetGetNavigationHistoryHandler(handler func(GetNavigationHistoryCommand))
- func (agent *PageAgent) SetGetResourceContentHandler(handler func(GetResourceContentCommand))
- func (agent *PageAgent) SetGetResourceTreeHandler(handler func(GetResourceTreeCommand))
- func (agent *PageAgent) SetHandleJavaScriptDialogHandler(handler func(HandleJavaScriptDialogCommand))
- func (agent *PageAgent) SetNavigateHandler(handler func(NavigateCommand))
- func (agent *PageAgent) SetNavigateToHistoryEntryHandler(handler func(NavigateToHistoryEntryCommand))
- func (agent *PageAgent) SetPrintToPDFHandler(handler func(PrintToPDFCommand))
- func (agent *PageAgent) SetProcessNavigationHandler(handler func(ProcessNavigationCommand))
- func (agent *PageAgent) SetReloadHandler(handler func(ReloadCommand))
- func (agent *PageAgent) SetRemoveScriptToEvaluateOnLoadHandler(handler func(RemoveScriptToEvaluateOnLoadCommand))
- func (agent *PageAgent) SetRequestAppBannerHandler(handler func(RequestAppBannerCommand))
- func (agent *PageAgent) SetScreencastFrameAckHandler(handler func(ScreencastFrameAckCommand))
- func (agent *PageAgent) SetSearchInResourceHandler(handler func(SearchInResourceCommand))
- func (agent *PageAgent) SetSetAutoAttachToCreatedPagesHandler(handler func(SetAutoAttachToCreatedPagesCommand))
- func (agent *PageAgent) SetSetColorPickerEnabledHandler(handler func(SetColorPickerEnabledCommand))
- func (agent *PageAgent) SetSetControlNavigationsHandler(handler func(SetControlNavigationsCommand))
- func (agent *PageAgent) SetSetDeviceMetricsOverrideHandler(handler func(SetDeviceMetricsOverrideCommand))
- func (agent *PageAgent) SetSetDeviceOrientationOverrideHandler(handler func(SetDeviceOrientationOverrideCommand))
- func (agent *PageAgent) SetSetDocumentContentHandler(handler func(SetDocumentContentCommand))
- func (agent *PageAgent) SetSetGeolocationOverrideHandler(handler func(SetGeolocationOverrideCommand))
- func (agent *PageAgent) SetSetTouchEmulationEnabledHandler(handler func(SetTouchEmulationEnabledCommand))
- func (agent *PageAgent) SetStartScreencastHandler(handler func(StartScreencastCommand))
- func (agent *PageAgent) SetStopLoadingHandler(handler func(StopLoadingCommand))
- func (agent *PageAgent) SetStopScreencastHandler(handler func(StopScreencastCommand))
- type PrintToPDFCommand
- type PrintToPDFCommandFn
- type PrintToPDFReturn
- type ProcessNavigationCommand
- type ProcessNavigationCommandFn
- type ProcessNavigationReturn
- type ReloadCommand
- type ReloadCommandFn
- type ReloadReturn
- type RemoveScriptToEvaluateOnLoadCommand
- type RemoveScriptToEvaluateOnLoadCommandFn
- type RemoveScriptToEvaluateOnLoadReturn
- type RequestAppBannerCommand
- type RequestAppBannerCommandFn
- type RequestAppBannerReturn
- type ScreencastFrameAckCommand
- type ScreencastFrameAckCommandFn
- type ScreencastFrameAckReturn
- type ScreencastFrameEvent
- type ScreencastFrameMetadata
- type ScreencastVisibilityChangedEvent
- type ScriptIdentifier
- type SearchInResourceCommand
- type SearchInResourceCommandFn
- type SearchInResourceReturn
- type SetAutoAttachToCreatedPagesCommand
- type SetAutoAttachToCreatedPagesCommandFn
- type SetAutoAttachToCreatedPagesReturn
- type SetColorPickerEnabledCommand
- type SetColorPickerEnabledCommandFn
- type SetColorPickerEnabledReturn
- type SetControlNavigationsCommand
- type SetControlNavigationsCommandFn
- type SetControlNavigationsReturn
- type SetDeviceMetricsOverrideCommand
- type SetDeviceMetricsOverrideCommandFn
- type SetDeviceMetricsOverrideReturn
- type SetDeviceOrientationOverrideCommand
- type SetDeviceOrientationOverrideCommandFn
- type SetDeviceOrientationOverrideReturn
- type SetDocumentContentCommand
- type SetDocumentContentCommandFn
- type SetDocumentContentReturn
- type SetGeolocationOverrideCommand
- type SetGeolocationOverrideCommandFn
- type SetGeolocationOverrideReturn
- type SetTouchEmulationEnabledCommand
- type SetTouchEmulationEnabledCommandFn
- type SetTouchEmulationEnabledConfigurationEnum
- type SetTouchEmulationEnabledReturn
- type StartScreencastCommand
- type StartScreencastCommandFn
- type StartScreencastFormatEnum
- type StartScreencastReturn
- type StopLoadingCommand
- type StopLoadingCommandFn
- type StopLoadingReturn
- type StopScreencastCommand
- type StopScreencastCommandFn
- type StopScreencastReturn
- type VisualViewport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddScriptToEvaluateOnLoadCommand ¶
type AddScriptToEvaluateOnLoadCommand struct { DestinationTargetID string ScriptSource string `json:"scriptSource"` // contains filtered or unexported fields }
func (*AddScriptToEvaluateOnLoadCommand) Initalize ¶
func (c *AddScriptToEvaluateOnLoadCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*AddScriptToEvaluateOnLoadCommand) Respond ¶
func (c *AddScriptToEvaluateOnLoadCommand) Respond(r *AddScriptToEvaluateOnLoadReturn)
func (*AddScriptToEvaluateOnLoadCommand) RespondWithError ¶
func (c *AddScriptToEvaluateOnLoadCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type AddScriptToEvaluateOnLoadCommandFn ¶
type AddScriptToEvaluateOnLoadCommandFn struct {
// contains filtered or unexported fields
}
func (*AddScriptToEvaluateOnLoadCommandFn) Load ¶
func (a *AddScriptToEvaluateOnLoadCommandFn) Load() func(AddScriptToEvaluateOnLoadCommand)
func (*AddScriptToEvaluateOnLoadCommandFn) Store ¶
func (a *AddScriptToEvaluateOnLoadCommandFn) Store(fn func(AddScriptToEvaluateOnLoadCommand))
type AddScriptToEvaluateOnLoadReturn ¶
type AddScriptToEvaluateOnLoadReturn struct {
Identifier ScriptIdentifier `json:"identifier"` // Identifier of the added script.
}
type AppManifestError ¶
type CaptureScreenshotCommand ¶
type CaptureScreenshotCommand struct { DestinationTargetID string Format *CaptureScreenshotFormatEnum `json:"format,omitempty"` // Image compression format (defaults to png). Quality *int64 `json:"quality,omitempty"` // Compression quality from range [0..100] (jpeg only). // contains filtered or unexported fields }
func (*CaptureScreenshotCommand) Initalize ¶
func (c *CaptureScreenshotCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*CaptureScreenshotCommand) Respond ¶
func (c *CaptureScreenshotCommand) Respond(r *CaptureScreenshotReturn)
func (*CaptureScreenshotCommand) RespondWithError ¶
func (c *CaptureScreenshotCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type CaptureScreenshotCommandFn ¶
type CaptureScreenshotCommandFn struct {
// contains filtered or unexported fields
}
func (*CaptureScreenshotCommandFn) Load ¶
func (a *CaptureScreenshotCommandFn) Load() func(CaptureScreenshotCommand)
func (*CaptureScreenshotCommandFn) Store ¶
func (a *CaptureScreenshotCommandFn) Store(fn func(CaptureScreenshotCommand))
type CaptureScreenshotFormatEnum ¶
type CaptureScreenshotFormatEnum string
const ( CaptureScreenshotFormatJpeg CaptureScreenshotFormatEnum = "jpeg" CaptureScreenshotFormatPng CaptureScreenshotFormatEnum = "png" )
type CaptureScreenshotReturn ¶
type CaptureScreenshotReturn struct {
Data string `json:"data"` // Base64-encoded image data.
}
type ClearDeviceMetricsOverrideCommand ¶
type ClearDeviceMetricsOverrideCommand struct { DestinationTargetID string // contains filtered or unexported fields }
func (*ClearDeviceMetricsOverrideCommand) Initalize ¶
func (c *ClearDeviceMetricsOverrideCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*ClearDeviceMetricsOverrideCommand) Respond ¶
func (c *ClearDeviceMetricsOverrideCommand) Respond()
func (*ClearDeviceMetricsOverrideCommand) RespondWithError ¶
func (c *ClearDeviceMetricsOverrideCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type ClearDeviceMetricsOverrideCommandFn ¶
type ClearDeviceMetricsOverrideCommandFn struct {
// contains filtered or unexported fields
}
func (*ClearDeviceMetricsOverrideCommandFn) Load ¶
func (a *ClearDeviceMetricsOverrideCommandFn) Load() func(ClearDeviceMetricsOverrideCommand)
func (*ClearDeviceMetricsOverrideCommandFn) Store ¶
func (a *ClearDeviceMetricsOverrideCommandFn) Store(fn func(ClearDeviceMetricsOverrideCommand))
type ClearDeviceMetricsOverrideReturn ¶
type ClearDeviceMetricsOverrideReturn struct { }
type ClearDeviceOrientationOverrideCommand ¶
type ClearDeviceOrientationOverrideCommand struct { DestinationTargetID string // contains filtered or unexported fields }
func (*ClearDeviceOrientationOverrideCommand) Initalize ¶
func (c *ClearDeviceOrientationOverrideCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*ClearDeviceOrientationOverrideCommand) Respond ¶
func (c *ClearDeviceOrientationOverrideCommand) Respond()
func (*ClearDeviceOrientationOverrideCommand) RespondWithError ¶
func (c *ClearDeviceOrientationOverrideCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type ClearDeviceOrientationOverrideCommandFn ¶
type ClearDeviceOrientationOverrideCommandFn struct {
// contains filtered or unexported fields
}
func (*ClearDeviceOrientationOverrideCommandFn) Load ¶
func (a *ClearDeviceOrientationOverrideCommandFn) Load() func(ClearDeviceOrientationOverrideCommand)
func (*ClearDeviceOrientationOverrideCommandFn) Store ¶
func (a *ClearDeviceOrientationOverrideCommandFn) Store(fn func(ClearDeviceOrientationOverrideCommand))
type ClearDeviceOrientationOverrideReturn ¶
type ClearDeviceOrientationOverrideReturn struct { }
type ClearGeolocationOverrideCommand ¶
type ClearGeolocationOverrideCommand struct { DestinationTargetID string // contains filtered or unexported fields }
func (*ClearGeolocationOverrideCommand) Initalize ¶
func (c *ClearGeolocationOverrideCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*ClearGeolocationOverrideCommand) Respond ¶
func (c *ClearGeolocationOverrideCommand) Respond()
func (*ClearGeolocationOverrideCommand) RespondWithError ¶
func (c *ClearGeolocationOverrideCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type ClearGeolocationOverrideCommandFn ¶
type ClearGeolocationOverrideCommandFn struct {
// contains filtered or unexported fields
}
func (*ClearGeolocationOverrideCommandFn) Load ¶
func (a *ClearGeolocationOverrideCommandFn) Load() func(ClearGeolocationOverrideCommand)
func (*ClearGeolocationOverrideCommandFn) Store ¶
func (a *ClearGeolocationOverrideCommandFn) Store(fn func(ClearGeolocationOverrideCommand))
type ClearGeolocationOverrideReturn ¶
type ClearGeolocationOverrideReturn struct { }
type ColorPickedEvent ¶
type ConfigureOverlayCommand ¶
type ConfigureOverlayCommand struct { DestinationTargetID string Suspended *bool `json:"suspended,omitempty"` // Whether overlay should be suspended and not consume any resources. Message *string `json:"message,omitempty"` // Overlay message to display. // contains filtered or unexported fields }
func (*ConfigureOverlayCommand) Initalize ¶
func (c *ConfigureOverlayCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*ConfigureOverlayCommand) Respond ¶
func (c *ConfigureOverlayCommand) Respond()
func (*ConfigureOverlayCommand) RespondWithError ¶
func (c *ConfigureOverlayCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type ConfigureOverlayCommandFn ¶
type ConfigureOverlayCommandFn struct {
// contains filtered or unexported fields
}
func (*ConfigureOverlayCommandFn) Load ¶
func (a *ConfigureOverlayCommandFn) Load() func(ConfigureOverlayCommand)
func (*ConfigureOverlayCommandFn) Store ¶
func (a *ConfigureOverlayCommandFn) Store(fn func(ConfigureOverlayCommand))
type ConfigureOverlayReturn ¶
type ConfigureOverlayReturn struct { }
type DeleteCookieCommand ¶
type DeleteCookieCommand struct { DestinationTargetID string CookieName string `json:"cookieName"` // Name of the cookie to remove. Url string `json:"url"` // URL to match cooke domain and path. // contains filtered or unexported fields }
func (*DeleteCookieCommand) Initalize ¶
func (c *DeleteCookieCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*DeleteCookieCommand) Respond ¶
func (c *DeleteCookieCommand) Respond()
func (*DeleteCookieCommand) RespondWithError ¶
func (c *DeleteCookieCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type DeleteCookieCommandFn ¶
type DeleteCookieCommandFn struct {
// contains filtered or unexported fields
}
func (*DeleteCookieCommandFn) Load ¶
func (a *DeleteCookieCommandFn) Load() func(DeleteCookieCommand)
func (*DeleteCookieCommandFn) Store ¶
func (a *DeleteCookieCommandFn) Store(fn func(DeleteCookieCommand))
type DeleteCookieReturn ¶
type DeleteCookieReturn struct { }
type DialogType ¶
type DialogType string
const ( DialogTypeAlert DialogType = "alert" DialogTypeConfirm DialogType = "confirm" DialogTypePrompt DialogType = "prompt" DialogTypeBeforeunload DialogType = "beforeunload" )
type DisableCommand ¶
type DisableCommand struct { DestinationTargetID string // contains filtered or unexported fields }
func (*DisableCommand) Initalize ¶
func (c *DisableCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*DisableCommand) Respond ¶
func (c *DisableCommand) Respond()
func (*DisableCommand) RespondWithError ¶
func (c *DisableCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type DisableCommandFn ¶
type DisableCommandFn struct {
// contains filtered or unexported fields
}
func (*DisableCommandFn) Load ¶
func (a *DisableCommandFn) Load() func(DisableCommand)
func (*DisableCommandFn) Store ¶
func (a *DisableCommandFn) Store(fn func(DisableCommand))
type DisableReturn ¶
type DisableReturn struct { }
type DomContentEventFiredEvent ¶
type DomContentEventFiredEvent struct {
Timestamp float64 `json:"timestamp"`
}
type EnableCommand ¶
type EnableCommand struct { DestinationTargetID string // contains filtered or unexported fields }
func (*EnableCommand) Initalize ¶
func (c *EnableCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*EnableCommand) Respond ¶
func (c *EnableCommand) Respond()
func (*EnableCommand) RespondWithError ¶
func (c *EnableCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type EnableCommandFn ¶
type EnableCommandFn struct {
// contains filtered or unexported fields
}
func (*EnableCommandFn) Load ¶
func (a *EnableCommandFn) Load() func(EnableCommand)
func (*EnableCommandFn) Store ¶
func (a *EnableCommandFn) Store(fn func(EnableCommand))
type EnableReturn ¶
type EnableReturn struct { }
type Frame ¶
type Frame struct { Id string `json:"id"` // Frame unique identifier. ParentId *string `json:"parentId,omitempty"` // Parent frame identifier. LoaderId string `json:"loaderId"` // Identifier of the loader associated with this frame. Name *string `json:"name,omitempty"` // Frame's name as specified in the tag. Url string `json:"url"` // Frame document's URL. SecurityOrigin string `json:"securityOrigin"` // Frame document's security origin. MimeType string `json:"mimeType"` // Frame document's mimeType as determined by the browser. }
type FrameAttachedEvent ¶
type FrameClearedScheduledNavigationEvent ¶
type FrameClearedScheduledNavigationEvent struct {
}type FrameDetachedEvent ¶
type FrameDetachedEvent struct {
FrameId FrameId `json:"frameId"` // Id of the frame that has been detached.
}
type FrameNavigatedEvent ¶
type FrameNavigatedEvent struct {
}type FrameResizedEvent ¶
type FrameResizedEvent struct { }
type FrameResource ¶
type FrameResource struct { Url string `json:"url"` // Resource URL. Type runtime.ResourceType `json:"type"` // Type of this resource. MimeType string `json:"mimeType"` // Resource mimeType as determined by the browser. LastModified *float64 `json:"lastModified,omitempty"` // last-modified timestamp as reported by server. ContentSize *float64 `json:"contentSize,omitempty"` // Resource content size. Failed *bool `json:"failed,omitempty"` // True if the resource failed to load. Canceled *bool `json:"canceled,omitempty"` // True if the resource was canceled during loading. }
type FrameResourceTree ¶
type FrameResourceTree struct { Frame Frame `json:"frame"` // Frame information for this tree item. ChildFrames *[]FrameResourceTree `json:"childFrames,omitempty"` // Child frames. Resources []FrameResource `json:"resources"` // Information about frame resources. }
type FrameScheduledNavigationEvent ¶
type FrameScheduledNavigationEvent struct {}
type FrameStartedLoadingEvent ¶
type FrameStartedLoadingEvent struct {
FrameId FrameId `json:"frameId"` // Id of the frame that has started loading.
}
type FrameStoppedLoadingEvent ¶
type FrameStoppedLoadingEvent struct {
FrameId FrameId `json:"frameId"` // Id of the frame that has stopped loading.
}
type GetAppManifestCommand ¶
type GetAppManifestCommand struct { DestinationTargetID string // contains filtered or unexported fields }
func (*GetAppManifestCommand) Initalize ¶
func (c *GetAppManifestCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*GetAppManifestCommand) Respond ¶
func (c *GetAppManifestCommand) Respond(r *GetAppManifestReturn)
func (*GetAppManifestCommand) RespondWithError ¶
func (c *GetAppManifestCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type GetAppManifestCommandFn ¶
type GetAppManifestCommandFn struct {
// contains filtered or unexported fields
}
func (*GetAppManifestCommandFn) Load ¶
func (a *GetAppManifestCommandFn) Load() func(GetAppManifestCommand)
func (*GetAppManifestCommandFn) Store ¶
func (a *GetAppManifestCommandFn) Store(fn func(GetAppManifestCommand))
type GetAppManifestReturn ¶
type GetAppManifestReturn struct { Url string `json:"url"` // Manifest location. Errors []AppManifestError `json:"errors"` Data *string `json:"data,omitempty"` // Manifest content. }
type GetLayoutMetricsCommand ¶
type GetLayoutMetricsCommand struct { DestinationTargetID string // contains filtered or unexported fields }
func (*GetLayoutMetricsCommand) Initalize ¶
func (c *GetLayoutMetricsCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*GetLayoutMetricsCommand) Respond ¶
func (c *GetLayoutMetricsCommand) Respond(r *GetLayoutMetricsReturn)
func (*GetLayoutMetricsCommand) RespondWithError ¶
func (c *GetLayoutMetricsCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type GetLayoutMetricsCommandFn ¶
type GetLayoutMetricsCommandFn struct {
// contains filtered or unexported fields
}
func (*GetLayoutMetricsCommandFn) Load ¶
func (a *GetLayoutMetricsCommandFn) Load() func(GetLayoutMetricsCommand)
func (*GetLayoutMetricsCommandFn) Store ¶
func (a *GetLayoutMetricsCommandFn) Store(fn func(GetLayoutMetricsCommand))
type GetLayoutMetricsReturn ¶
type GetLayoutMetricsReturn struct { LayoutViewport LayoutViewport `json:"layoutViewport"` // Metrics relating to the layout viewport. VisualViewport VisualViewport `json:"visualViewport"` // Metrics relating to the visual viewport. ContentSize dom.Rect `json:"contentSize"` // Size of scrollable area. }
type GetNavigationHistoryCommand ¶
type GetNavigationHistoryCommand struct { // contains filtered or unexported fields }
func (*GetNavigationHistoryCommand) Initalize ¶
func (c *GetNavigationHistoryCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*GetNavigationHistoryCommand) Respond ¶
func (c *GetNavigationHistoryCommand) Respond(r *GetNavigationHistoryReturn)
func (*GetNavigationHistoryCommand) RespondWithError ¶
func (c *GetNavigationHistoryCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type GetNavigationHistoryCommandFn ¶
type GetNavigationHistoryCommandFn struct {
// contains filtered or unexported fields
}
func (*GetNavigationHistoryCommandFn) Load ¶
func (a *GetNavigationHistoryCommandFn) Load() func(GetNavigationHistoryCommand)
func (*GetNavigationHistoryCommandFn) Store ¶
func (a *GetNavigationHistoryCommandFn) Store(fn func(GetNavigationHistoryCommand))
type GetNavigationHistoryReturn ¶
type GetNavigationHistoryReturn struct {}
type GetResourceContentCommand ¶
type GetResourceContentCommand struct { DestinationTargetID string FrameId FrameId `json:"frameId"` // Frame id to get resource for. Url string `json:"url"` // URL of the resource to get content for. // contains filtered or unexported fields }
func (*GetResourceContentCommand) Initalize ¶
func (c *GetResourceContentCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*GetResourceContentCommand) Respond ¶
func (c *GetResourceContentCommand) Respond(r *GetResourceContentReturn)
func (*GetResourceContentCommand) RespondWithError ¶
func (c *GetResourceContentCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type GetResourceContentCommandFn ¶
type GetResourceContentCommandFn struct {
// contains filtered or unexported fields
}
func (*GetResourceContentCommandFn) Load ¶
func (a *GetResourceContentCommandFn) Load() func(GetResourceContentCommand)
func (*GetResourceContentCommandFn) Store ¶
func (a *GetResourceContentCommandFn) Store(fn func(GetResourceContentCommand))
type GetResourceTreeCommand ¶
type GetResourceTreeCommand struct { DestinationTargetID string // contains filtered or unexported fields }
func (*GetResourceTreeCommand) Initalize ¶
func (c *GetResourceTreeCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*GetResourceTreeCommand) Respond ¶
func (c *GetResourceTreeCommand) Respond(r *GetResourceTreeReturn)
func (*GetResourceTreeCommand) RespondWithError ¶
func (c *GetResourceTreeCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type GetResourceTreeCommandFn ¶
type GetResourceTreeCommandFn struct {
// contains filtered or unexported fields
}
func (*GetResourceTreeCommandFn) Load ¶
func (a *GetResourceTreeCommandFn) Load() func(GetResourceTreeCommand)
func (*GetResourceTreeCommandFn) Store ¶
func (a *GetResourceTreeCommandFn) Store(fn func(GetResourceTreeCommand))
type GetResourceTreeReturn ¶
type GetResourceTreeReturn struct {
FrameTree FrameResourceTree `json:"frameTree"` // Present frame / resource tree structure.
}
type HandleJavaScriptDialogCommand ¶
type HandleJavaScriptDialogCommand struct { DestinationTargetID string Accept bool `json:"accept"` // Whether to accept or dismiss the dialog. PromptText *string `json:"promptText,omitempty"` // The text to enter into the dialog prompt before accepting. Used only if this is a prompt dialog. // contains filtered or unexported fields }
func (*HandleJavaScriptDialogCommand) Initalize ¶
func (c *HandleJavaScriptDialogCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*HandleJavaScriptDialogCommand) Respond ¶
func (c *HandleJavaScriptDialogCommand) Respond()
func (*HandleJavaScriptDialogCommand) RespondWithError ¶
func (c *HandleJavaScriptDialogCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type HandleJavaScriptDialogCommandFn ¶
type HandleJavaScriptDialogCommandFn struct {
// contains filtered or unexported fields
}
func (*HandleJavaScriptDialogCommandFn) Load ¶
func (a *HandleJavaScriptDialogCommandFn) Load() func(HandleJavaScriptDialogCommand)
func (*HandleJavaScriptDialogCommandFn) Store ¶
func (a *HandleJavaScriptDialogCommandFn) Store(fn func(HandleJavaScriptDialogCommand))
type HandleJavaScriptDialogReturn ¶
type HandleJavaScriptDialogReturn struct { }
type InterstitialHiddenEvent ¶
type InterstitialHiddenEvent struct { }
type InterstitialShownEvent ¶
type InterstitialShownEvent struct { }
type JavascriptDialogClosedEvent ¶
type JavascriptDialogClosedEvent struct {
Result bool `json:"result"` // Whether dialog was confirmed.
}
type JavascriptDialogOpeningEvent ¶
type JavascriptDialogOpeningEvent struct { Message string `json:"message"` // Message that will be displayed by the dialog. Type DialogType `json:"type"` // Dialog type. }
type LayoutViewport ¶
type LayoutViewport struct { PageX int64 `json:"pageX"` // Horizontal offset relative to the document (CSS pixels). PageY int64 `json:"pageY"` // Vertical offset relative to the document (CSS pixels). ClientWidth int64 `json:"clientWidth"` // Width (CSS pixels), excludes scrollbar if present. ClientHeight int64 `json:"clientHeight"` // Height (CSS pixels), excludes scrollbar if present. }
type LoadEventFiredEvent ¶
type LoadEventFiredEvent struct {
Timestamp float64 `json:"timestamp"`
}
type NavigateCommand ¶
type NavigateCommand struct { // contains filtered or unexported fields }
func (*NavigateCommand) Initalize ¶
func (c *NavigateCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*NavigateCommand) Respond ¶
func (c *NavigateCommand) Respond(r *NavigateReturn)
func (*NavigateCommand) RespondWithError ¶
func (c *NavigateCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type NavigateCommandFn ¶
type NavigateCommandFn struct {
// contains filtered or unexported fields
}
func (*NavigateCommandFn) Load ¶
func (a *NavigateCommandFn) Load() func(NavigateCommand)
func (*NavigateCommandFn) Store ¶
func (a *NavigateCommandFn) Store(fn func(NavigateCommand))
type NavigateReturn ¶
type NavigateReturn struct {
}type NavigateToHistoryEntryCommand ¶
type NavigateToHistoryEntryCommand struct { // contains filtered or unexported fields }
func (*NavigateToHistoryEntryCommand) Initalize ¶
func (c *NavigateToHistoryEntryCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*NavigateToHistoryEntryCommand) Respond ¶
func (c *NavigateToHistoryEntryCommand) Respond()
func (*NavigateToHistoryEntryCommand) RespondWithError ¶
func (c *NavigateToHistoryEntryCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type NavigateToHistoryEntryCommandFn ¶
type NavigateToHistoryEntryCommandFn struct {
// contains filtered or unexported fields
}
func (*NavigateToHistoryEntryCommandFn) Load ¶
func (a *NavigateToHistoryEntryCommandFn) Load() func(NavigateToHistoryEntryCommand)
func (*NavigateToHistoryEntryCommandFn) Store ¶
func (a *NavigateToHistoryEntryCommandFn) Store(fn func(NavigateToHistoryEntryCommand))
type NavigateToHistoryEntryReturn ¶
type NavigateToHistoryEntryReturn struct { }
type NavigationEntry ¶
type NavigationEntry struct {}
type NavigationRequestedEvent ¶
type NavigationRequestedEvent struct {}
type PageAgent ¶
type PageAgent struct {
// contains filtered or unexported fields
}
func NewAgent ¶
func NewAgent(conn *shared.Connection) *PageAgent
func (*PageAgent) FireColorPicked ¶
func (agent *PageAgent) FireColorPicked(event ColorPickedEvent)
func (*PageAgent) FireColorPickedOnTarget ¶
func (agent *PageAgent) FireColorPickedOnTarget(targetId string, event ColorPickedEvent)
func (*PageAgent) FireDomContentEventFired ¶
func (agent *PageAgent) FireDomContentEventFired(event DomContentEventFiredEvent)
Dispatchable Events
func (*PageAgent) FireDomContentEventFiredOnTarget ¶
func (agent *PageAgent) FireDomContentEventFiredOnTarget(targetId string, event DomContentEventFiredEvent)
func (*PageAgent) FireFrameAttached ¶
func (agent *PageAgent) FireFrameAttached(event FrameAttachedEvent)
func (*PageAgent) FireFrameAttachedOnTarget ¶
func (agent *PageAgent) FireFrameAttachedOnTarget(targetId string, event FrameAttachedEvent)
func (*PageAgent) FireFrameClearedScheduledNavigation ¶
func (agent *PageAgent) FireFrameClearedScheduledNavigation(event FrameClearedScheduledNavigationEvent)
func (*PageAgent) FireFrameClearedScheduledNavigationOnTarget ¶
func (agent *PageAgent) FireFrameClearedScheduledNavigationOnTarget(targetId string, event FrameClearedScheduledNavigationEvent)
func (*PageAgent) FireFrameDetached ¶
func (agent *PageAgent) FireFrameDetached(event FrameDetachedEvent)
func (*PageAgent) FireFrameDetachedOnTarget ¶
func (agent *PageAgent) FireFrameDetachedOnTarget(targetId string, event FrameDetachedEvent)
func (*PageAgent) FireFrameNavigated ¶
func (agent *PageAgent) FireFrameNavigated(event FrameNavigatedEvent)
func (*PageAgent) FireFrameNavigatedOnTarget ¶
func (agent *PageAgent) FireFrameNavigatedOnTarget(targetId string, event FrameNavigatedEvent)
func (*PageAgent) FireFrameResized ¶
func (agent *PageAgent) FireFrameResized()
func (*PageAgent) FireFrameResizedOnTarget ¶
func (*PageAgent) FireFrameScheduledNavigation ¶
func (agent *PageAgent) FireFrameScheduledNavigation(event FrameScheduledNavigationEvent)
func (*PageAgent) FireFrameScheduledNavigationOnTarget ¶
func (agent *PageAgent) FireFrameScheduledNavigationOnTarget(targetId string, event FrameScheduledNavigationEvent)
func (*PageAgent) FireFrameStartedLoading ¶
func (agent *PageAgent) FireFrameStartedLoading(event FrameStartedLoadingEvent)
func (*PageAgent) FireFrameStartedLoadingOnTarget ¶
func (agent *PageAgent) FireFrameStartedLoadingOnTarget(targetId string, event FrameStartedLoadingEvent)
func (*PageAgent) FireFrameStoppedLoading ¶
func (agent *PageAgent) FireFrameStoppedLoading(event FrameStoppedLoadingEvent)
func (*PageAgent) FireFrameStoppedLoadingOnTarget ¶
func (agent *PageAgent) FireFrameStoppedLoadingOnTarget(targetId string, event FrameStoppedLoadingEvent)
func (*PageAgent) FireInterstitialHidden ¶
func (agent *PageAgent) FireInterstitialHidden()
func (*PageAgent) FireInterstitialHiddenOnTarget ¶
func (*PageAgent) FireInterstitialShown ¶
func (agent *PageAgent) FireInterstitialShown()
func (*PageAgent) FireInterstitialShownOnTarget ¶
func (*PageAgent) FireJavascriptDialogClosed ¶
func (agent *PageAgent) FireJavascriptDialogClosed(event JavascriptDialogClosedEvent)
func (*PageAgent) FireJavascriptDialogClosedOnTarget ¶
func (agent *PageAgent) FireJavascriptDialogClosedOnTarget(targetId string, event JavascriptDialogClosedEvent)
func (*PageAgent) FireJavascriptDialogOpening ¶
func (agent *PageAgent) FireJavascriptDialogOpening(event JavascriptDialogOpeningEvent)
func (*PageAgent) FireJavascriptDialogOpeningOnTarget ¶
func (agent *PageAgent) FireJavascriptDialogOpeningOnTarget(targetId string, event JavascriptDialogOpeningEvent)
func (*PageAgent) FireLoadEventFired ¶
func (agent *PageAgent) FireLoadEventFired(event LoadEventFiredEvent)
func (*PageAgent) FireLoadEventFiredOnTarget ¶
func (agent *PageAgent) FireLoadEventFiredOnTarget(targetId string, event LoadEventFiredEvent)
func (*PageAgent) FireNavigationRequested ¶
func (agent *PageAgent) FireNavigationRequested(event NavigationRequestedEvent)
func (*PageAgent) FireNavigationRequestedOnTarget ¶
func (agent *PageAgent) FireNavigationRequestedOnTarget(targetId string, event NavigationRequestedEvent)
func (*PageAgent) FireScreencastFrame ¶
func (agent *PageAgent) FireScreencastFrame(event ScreencastFrameEvent)
func (*PageAgent) FireScreencastFrameOnTarget ¶
func (agent *PageAgent) FireScreencastFrameOnTarget(targetId string, event ScreencastFrameEvent)
func (*PageAgent) FireScreencastVisibilityChanged ¶
func (agent *PageAgent) FireScreencastVisibilityChanged(event ScreencastVisibilityChangedEvent)
func (*PageAgent) FireScreencastVisibilityChangedOnTarget ¶
func (agent *PageAgent) FireScreencastVisibilityChangedOnTarget(targetId string, event ScreencastVisibilityChangedEvent)
func (*PageAgent) ProcessCommand ¶
func (*PageAgent) SetAddScriptToEvaluateOnLoadHandler ¶
func (agent *PageAgent) SetAddScriptToEvaluateOnLoadHandler(handler func(AddScriptToEvaluateOnLoadCommand))
func (*PageAgent) SetCaptureScreenshotHandler ¶
func (agent *PageAgent) SetCaptureScreenshotHandler(handler func(CaptureScreenshotCommand))
func (*PageAgent) SetClearDeviceMetricsOverrideHandler ¶
func (agent *PageAgent) SetClearDeviceMetricsOverrideHandler(handler func(ClearDeviceMetricsOverrideCommand))
func (*PageAgent) SetClearDeviceOrientationOverrideHandler ¶
func (agent *PageAgent) SetClearDeviceOrientationOverrideHandler(handler func(ClearDeviceOrientationOverrideCommand))
func (*PageAgent) SetClearGeolocationOverrideHandler ¶
func (agent *PageAgent) SetClearGeolocationOverrideHandler(handler func(ClearGeolocationOverrideCommand))
func (*PageAgent) SetConfigureOverlayHandler ¶
func (agent *PageAgent) SetConfigureOverlayHandler(handler func(ConfigureOverlayCommand))
func (*PageAgent) SetDeleteCookieHandler ¶
func (agent *PageAgent) SetDeleteCookieHandler(handler func(DeleteCookieCommand))
func (*PageAgent) SetDisableHandler ¶
func (agent *PageAgent) SetDisableHandler(handler func(DisableCommand))
func (*PageAgent) SetEnableHandler ¶
func (agent *PageAgent) SetEnableHandler(handler func(EnableCommand))
Commands Sent From Frontend
func (*PageAgent) SetGetAppManifestHandler ¶
func (agent *PageAgent) SetGetAppManifestHandler(handler func(GetAppManifestCommand))
func (*PageAgent) SetGetLayoutMetricsHandler ¶
func (agent *PageAgent) SetGetLayoutMetricsHandler(handler func(GetLayoutMetricsCommand))
func (*PageAgent) SetGetNavigationHistoryHandler ¶
func (agent *PageAgent) SetGetNavigationHistoryHandler(handler func(GetNavigationHistoryCommand))
func (*PageAgent) SetGetResourceContentHandler ¶
func (agent *PageAgent) SetGetResourceContentHandler(handler func(GetResourceContentCommand))
func (*PageAgent) SetGetResourceTreeHandler ¶
func (agent *PageAgent) SetGetResourceTreeHandler(handler func(GetResourceTreeCommand))
func (*PageAgent) SetHandleJavaScriptDialogHandler ¶
func (agent *PageAgent) SetHandleJavaScriptDialogHandler(handler func(HandleJavaScriptDialogCommand))
func (*PageAgent) SetNavigateHandler ¶
func (agent *PageAgent) SetNavigateHandler(handler func(NavigateCommand))
func (*PageAgent) SetNavigateToHistoryEntryHandler ¶
func (agent *PageAgent) SetNavigateToHistoryEntryHandler(handler func(NavigateToHistoryEntryCommand))
func (*PageAgent) SetPrintToPDFHandler ¶
func (agent *PageAgent) SetPrintToPDFHandler(handler func(PrintToPDFCommand))
func (*PageAgent) SetProcessNavigationHandler ¶
func (agent *PageAgent) SetProcessNavigationHandler(handler func(ProcessNavigationCommand))
func (*PageAgent) SetReloadHandler ¶
func (agent *PageAgent) SetReloadHandler(handler func(ReloadCommand))
func (*PageAgent) SetRemoveScriptToEvaluateOnLoadHandler ¶
func (agent *PageAgent) SetRemoveScriptToEvaluateOnLoadHandler(handler func(RemoveScriptToEvaluateOnLoadCommand))
func (*PageAgent) SetRequestAppBannerHandler ¶
func (agent *PageAgent) SetRequestAppBannerHandler(handler func(RequestAppBannerCommand))
func (*PageAgent) SetScreencastFrameAckHandler ¶
func (agent *PageAgent) SetScreencastFrameAckHandler(handler func(ScreencastFrameAckCommand))
func (*PageAgent) SetSearchInResourceHandler ¶
func (agent *PageAgent) SetSearchInResourceHandler(handler func(SearchInResourceCommand))
func (*PageAgent) SetSetAutoAttachToCreatedPagesHandler ¶
func (agent *PageAgent) SetSetAutoAttachToCreatedPagesHandler(handler func(SetAutoAttachToCreatedPagesCommand))
func (*PageAgent) SetSetColorPickerEnabledHandler ¶
func (agent *PageAgent) SetSetColorPickerEnabledHandler(handler func(SetColorPickerEnabledCommand))
func (*PageAgent) SetSetControlNavigationsHandler ¶
func (agent *PageAgent) SetSetControlNavigationsHandler(handler func(SetControlNavigationsCommand))
func (*PageAgent) SetSetDeviceMetricsOverrideHandler ¶
func (agent *PageAgent) SetSetDeviceMetricsOverrideHandler(handler func(SetDeviceMetricsOverrideCommand))
func (*PageAgent) SetSetDeviceOrientationOverrideHandler ¶
func (agent *PageAgent) SetSetDeviceOrientationOverrideHandler(handler func(SetDeviceOrientationOverrideCommand))
func (*PageAgent) SetSetDocumentContentHandler ¶
func (agent *PageAgent) SetSetDocumentContentHandler(handler func(SetDocumentContentCommand))
func (*PageAgent) SetSetGeolocationOverrideHandler ¶
func (agent *PageAgent) SetSetGeolocationOverrideHandler(handler func(SetGeolocationOverrideCommand))
func (*PageAgent) SetSetTouchEmulationEnabledHandler ¶
func (agent *PageAgent) SetSetTouchEmulationEnabledHandler(handler func(SetTouchEmulationEnabledCommand))
func (*PageAgent) SetStartScreencastHandler ¶
func (agent *PageAgent) SetStartScreencastHandler(handler func(StartScreencastCommand))
func (*PageAgent) SetStopLoadingHandler ¶
func (agent *PageAgent) SetStopLoadingHandler(handler func(StopLoadingCommand))
func (*PageAgent) SetStopScreencastHandler ¶
func (agent *PageAgent) SetStopScreencastHandler(handler func(StopScreencastCommand))
type PrintToPDFCommand ¶
type PrintToPDFCommand struct { DestinationTargetID string // contains filtered or unexported fields }
func (*PrintToPDFCommand) Initalize ¶
func (c *PrintToPDFCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*PrintToPDFCommand) Respond ¶
func (c *PrintToPDFCommand) Respond(r *PrintToPDFReturn)
func (*PrintToPDFCommand) RespondWithError ¶
func (c *PrintToPDFCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type PrintToPDFCommandFn ¶
type PrintToPDFCommandFn struct {
// contains filtered or unexported fields
}
func (*PrintToPDFCommandFn) Load ¶
func (a *PrintToPDFCommandFn) Load() func(PrintToPDFCommand)
func (*PrintToPDFCommandFn) Store ¶
func (a *PrintToPDFCommandFn) Store(fn func(PrintToPDFCommand))
type PrintToPDFReturn ¶
type PrintToPDFReturn struct {
Data string `json:"data"` // Base64-encoded pdf data.
}
type ProcessNavigationCommand ¶
type ProcessNavigationCommand struct { // contains filtered or unexported fields }
func (*ProcessNavigationCommand) Initalize ¶
func (c *ProcessNavigationCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*ProcessNavigationCommand) Respond ¶
func (c *ProcessNavigationCommand) Respond()
func (*ProcessNavigationCommand) RespondWithError ¶
func (c *ProcessNavigationCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type ProcessNavigationCommandFn ¶
type ProcessNavigationCommandFn struct {
// contains filtered or unexported fields
}
func (*ProcessNavigationCommandFn) Load ¶
func (a *ProcessNavigationCommandFn) Load() func(ProcessNavigationCommand)
func (*ProcessNavigationCommandFn) Store ¶
func (a *ProcessNavigationCommandFn) Store(fn func(ProcessNavigationCommand))
type ProcessNavigationReturn ¶
type ProcessNavigationReturn struct { }
type ReloadCommand ¶
type ReloadCommand struct { DestinationTargetID string IgnoreCache *bool `json:"ignoreCache,omitempty"` // If true, browser cache is ignored (as if the user pressed Shift+refresh). ScriptToEvaluateOnLoad *string `json:"scriptToEvaluateOnLoad,omitempty"` // If set, the script will be injected into all frames of the inspected page after reload. // contains filtered or unexported fields }
func (*ReloadCommand) Initalize ¶
func (c *ReloadCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*ReloadCommand) Respond ¶
func (c *ReloadCommand) Respond()
func (*ReloadCommand) RespondWithError ¶
func (c *ReloadCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type ReloadCommandFn ¶
type ReloadCommandFn struct {
// contains filtered or unexported fields
}
func (*ReloadCommandFn) Load ¶
func (a *ReloadCommandFn) Load() func(ReloadCommand)
func (*ReloadCommandFn) Store ¶
func (a *ReloadCommandFn) Store(fn func(ReloadCommand))
type ReloadReturn ¶
type ReloadReturn struct { }
type RemoveScriptToEvaluateOnLoadCommand ¶
type RemoveScriptToEvaluateOnLoadCommand struct { DestinationTargetID string Identifier ScriptIdentifier `json:"identifier"` // contains filtered or unexported fields }
func (*RemoveScriptToEvaluateOnLoadCommand) Initalize ¶
func (c *RemoveScriptToEvaluateOnLoadCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*RemoveScriptToEvaluateOnLoadCommand) Respond ¶
func (c *RemoveScriptToEvaluateOnLoadCommand) Respond()
func (*RemoveScriptToEvaluateOnLoadCommand) RespondWithError ¶
func (c *RemoveScriptToEvaluateOnLoadCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type RemoveScriptToEvaluateOnLoadCommandFn ¶
type RemoveScriptToEvaluateOnLoadCommandFn struct {
// contains filtered or unexported fields
}
func (*RemoveScriptToEvaluateOnLoadCommandFn) Load ¶
func (a *RemoveScriptToEvaluateOnLoadCommandFn) Load() func(RemoveScriptToEvaluateOnLoadCommand)
func (*RemoveScriptToEvaluateOnLoadCommandFn) Store ¶
func (a *RemoveScriptToEvaluateOnLoadCommandFn) Store(fn func(RemoveScriptToEvaluateOnLoadCommand))
type RemoveScriptToEvaluateOnLoadReturn ¶
type RemoveScriptToEvaluateOnLoadReturn struct { }
type RequestAppBannerCommand ¶
type RequestAppBannerCommand struct { DestinationTargetID string // contains filtered or unexported fields }
func (*RequestAppBannerCommand) Initalize ¶
func (c *RequestAppBannerCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*RequestAppBannerCommand) Respond ¶
func (c *RequestAppBannerCommand) Respond()
func (*RequestAppBannerCommand) RespondWithError ¶
func (c *RequestAppBannerCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type RequestAppBannerCommandFn ¶
type RequestAppBannerCommandFn struct {
// contains filtered or unexported fields
}
func (*RequestAppBannerCommandFn) Load ¶
func (a *RequestAppBannerCommandFn) Load() func(RequestAppBannerCommand)
func (*RequestAppBannerCommandFn) Store ¶
func (a *RequestAppBannerCommandFn) Store(fn func(RequestAppBannerCommand))
type RequestAppBannerReturn ¶
type RequestAppBannerReturn struct { }
type ScreencastFrameAckCommand ¶
type ScreencastFrameAckCommand struct { DestinationTargetID string SessionId int64 `json:"sessionId"` // Frame number. // contains filtered or unexported fields }
func (*ScreencastFrameAckCommand) Initalize ¶
func (c *ScreencastFrameAckCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*ScreencastFrameAckCommand) Respond ¶
func (c *ScreencastFrameAckCommand) Respond()
func (*ScreencastFrameAckCommand) RespondWithError ¶
func (c *ScreencastFrameAckCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type ScreencastFrameAckCommandFn ¶
type ScreencastFrameAckCommandFn struct {
// contains filtered or unexported fields
}
func (*ScreencastFrameAckCommandFn) Load ¶
func (a *ScreencastFrameAckCommandFn) Load() func(ScreencastFrameAckCommand)
func (*ScreencastFrameAckCommandFn) Store ¶
func (a *ScreencastFrameAckCommandFn) Store(fn func(ScreencastFrameAckCommand))
type ScreencastFrameAckReturn ¶
type ScreencastFrameAckReturn struct { }
type ScreencastFrameEvent ¶
type ScreencastFrameEvent struct { Data string `json:"data"` // Base64-encoded compressed image. Metadata ScreencastFrameMetadata `json:"metadata"` // Screencast frame metadata. SessionId int64 `json:"sessionId"` // Frame number. }
type ScreencastFrameMetadata ¶
type ScreencastFrameMetadata struct { OffsetTop float64 `json:"offsetTop"` // [Experimental] Top offset in DIP. PageScaleFactor float64 `json:"pageScaleFactor"` // [Experimental] Page scale factor. DeviceWidth float64 `json:"deviceWidth"` // [Experimental] Device screen width in DIP. DeviceHeight float64 `json:"deviceHeight"` // [Experimental] Device screen height in DIP. ScrollOffsetX float64 `json:"scrollOffsetX"` // [Experimental] Position of horizontal scroll in CSS pixels. ScrollOffsetY float64 `json:"scrollOffsetY"` // [Experimental] Position of vertical scroll in CSS pixels. Timestamp *float64 `json:"timestamp,omitempty"` // [Experimental] Frame swap timestamp. }
type ScreencastVisibilityChangedEvent ¶
type ScreencastVisibilityChangedEvent struct {
Visible bool `json:"visible"` // True if the page is visible.
}
type ScriptIdentifier ¶
type ScriptIdentifier string
type SearchInResourceCommand ¶
type SearchInResourceCommand struct { DestinationTargetID string FrameId FrameId `json:"frameId"` // Frame id for resource to search in. Url string `json:"url"` // URL of the resource to search in. Query string `json:"query"` // String to search for. CaseSensitive *bool `json:"caseSensitive,omitempty"` // If true, search is case sensitive. IsRegex *bool `json:"isRegex,omitempty"` // If true, treats string parameter as regex. // contains filtered or unexported fields }
func (*SearchInResourceCommand) Initalize ¶
func (c *SearchInResourceCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*SearchInResourceCommand) Respond ¶
func (c *SearchInResourceCommand) Respond(r *SearchInResourceReturn)
func (*SearchInResourceCommand) RespondWithError ¶
func (c *SearchInResourceCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type SearchInResourceCommandFn ¶
type SearchInResourceCommandFn struct {
// contains filtered or unexported fields
}
func (*SearchInResourceCommandFn) Load ¶
func (a *SearchInResourceCommandFn) Load() func(SearchInResourceCommand)
func (*SearchInResourceCommandFn) Store ¶
func (a *SearchInResourceCommandFn) Store(fn func(SearchInResourceCommand))
type SearchInResourceReturn ¶
type SearchInResourceReturn struct {
Result []debugger.SearchMatch `json:"result"` // List of search matches.
}
type SetAutoAttachToCreatedPagesCommand ¶
type SetAutoAttachToCreatedPagesCommand struct { DestinationTargetID string AutoAttach bool `json:"autoAttach"` // If true, browser will open a new inspector window for every page created from this one. // contains filtered or unexported fields }
func (*SetAutoAttachToCreatedPagesCommand) Initalize ¶
func (c *SetAutoAttachToCreatedPagesCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*SetAutoAttachToCreatedPagesCommand) Respond ¶
func (c *SetAutoAttachToCreatedPagesCommand) Respond()
func (*SetAutoAttachToCreatedPagesCommand) RespondWithError ¶
func (c *SetAutoAttachToCreatedPagesCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type SetAutoAttachToCreatedPagesCommandFn ¶
type SetAutoAttachToCreatedPagesCommandFn struct {
// contains filtered or unexported fields
}
func (*SetAutoAttachToCreatedPagesCommandFn) Load ¶
func (a *SetAutoAttachToCreatedPagesCommandFn) Load() func(SetAutoAttachToCreatedPagesCommand)
func (*SetAutoAttachToCreatedPagesCommandFn) Store ¶
func (a *SetAutoAttachToCreatedPagesCommandFn) Store(fn func(SetAutoAttachToCreatedPagesCommand))
type SetAutoAttachToCreatedPagesReturn ¶
type SetAutoAttachToCreatedPagesReturn struct { }
type SetColorPickerEnabledCommand ¶
type SetColorPickerEnabledCommand struct { DestinationTargetID string Enabled bool `json:"enabled"` // Shows / hides color picker // contains filtered or unexported fields }
func (*SetColorPickerEnabledCommand) Initalize ¶
func (c *SetColorPickerEnabledCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*SetColorPickerEnabledCommand) Respond ¶
func (c *SetColorPickerEnabledCommand) Respond()
func (*SetColorPickerEnabledCommand) RespondWithError ¶
func (c *SetColorPickerEnabledCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type SetColorPickerEnabledCommandFn ¶
type SetColorPickerEnabledCommandFn struct {
// contains filtered or unexported fields
}
func (*SetColorPickerEnabledCommandFn) Load ¶
func (a *SetColorPickerEnabledCommandFn) Load() func(SetColorPickerEnabledCommand)
func (*SetColorPickerEnabledCommandFn) Store ¶
func (a *SetColorPickerEnabledCommandFn) Store(fn func(SetColorPickerEnabledCommand))
type SetColorPickerEnabledReturn ¶
type SetColorPickerEnabledReturn struct { }
type SetControlNavigationsCommand ¶
type SetControlNavigationsCommand struct { // contains filtered or unexported fields }
func (*SetControlNavigationsCommand) Initalize ¶
func (c *SetControlNavigationsCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*SetControlNavigationsCommand) Respond ¶
func (c *SetControlNavigationsCommand) Respond()
func (*SetControlNavigationsCommand) RespondWithError ¶
func (c *SetControlNavigationsCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type SetControlNavigationsCommandFn ¶
type SetControlNavigationsCommandFn struct {
// contains filtered or unexported fields
}
func (*SetControlNavigationsCommandFn) Load ¶
func (a *SetControlNavigationsCommandFn) Load() func(SetControlNavigationsCommand)
func (*SetControlNavigationsCommandFn) Store ¶
func (a *SetControlNavigationsCommandFn) Store(fn func(SetControlNavigationsCommand))
type SetControlNavigationsReturn ¶
type SetControlNavigationsReturn struct { }
type SetDeviceMetricsOverrideCommand ¶
type SetDeviceMetricsOverrideCommand struct { DestinationTargetID string Width int64 `json:"width"` // Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override. Height int64 `json:"height"` // Overriding height value in pixels (minimum 0, maximum 10000000). 0 disables the override. DeviceScaleFactor float64 `json:"deviceScaleFactor"` // Overriding device scale factor value. 0 disables the override. Mobile bool `json:"mobile"` // Whether to emulate mobile device. This includes viewport meta tag, overlay scrollbars, text autosizing and more. FitWindow bool `json:"fitWindow"` // Whether a view that exceeds the available browser window area should be scaled down to fit. Scale *float64 `json:"scale,omitempty"` // Scale to apply to resulting view image. Ignored in |fitWindow| mode. OffsetX *float64 `json:"offsetX,omitempty"` // X offset to shift resulting view image by. Ignored in |fitWindow| mode. OffsetY *float64 `json:"offsetY,omitempty"` // Y offset to shift resulting view image by. Ignored in |fitWindow| mode. ScreenWidth *int64 `json:"screenWidth,omitempty"` // Overriding screen width value in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|. ScreenHeight *int64 `json:"screenHeight,omitempty"` // Overriding screen height value in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|. PositionX *int64 `json:"positionX,omitempty"` // Overriding view X position on screen in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|. PositionY *int64 `json:"positionY,omitempty"` // Overriding view Y position on screen in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|. ScreenOrientation *emulation.ScreenOrientation `json:"screenOrientation,omitempty"` // Screen orientation override. // contains filtered or unexported fields }
func (*SetDeviceMetricsOverrideCommand) Initalize ¶
func (c *SetDeviceMetricsOverrideCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*SetDeviceMetricsOverrideCommand) Respond ¶
func (c *SetDeviceMetricsOverrideCommand) Respond()
func (*SetDeviceMetricsOverrideCommand) RespondWithError ¶
func (c *SetDeviceMetricsOverrideCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type SetDeviceMetricsOverrideCommandFn ¶
type SetDeviceMetricsOverrideCommandFn struct {
// contains filtered or unexported fields
}
func (*SetDeviceMetricsOverrideCommandFn) Load ¶
func (a *SetDeviceMetricsOverrideCommandFn) Load() func(SetDeviceMetricsOverrideCommand)
func (*SetDeviceMetricsOverrideCommandFn) Store ¶
func (a *SetDeviceMetricsOverrideCommandFn) Store(fn func(SetDeviceMetricsOverrideCommand))
type SetDeviceMetricsOverrideReturn ¶
type SetDeviceMetricsOverrideReturn struct { }
type SetDeviceOrientationOverrideCommand ¶
type SetDeviceOrientationOverrideCommand struct { DestinationTargetID string Alpha float64 `json:"alpha"` // Mock alpha Beta float64 `json:"beta"` // Mock beta Gamma float64 `json:"gamma"` // Mock gamma // contains filtered or unexported fields }
func (*SetDeviceOrientationOverrideCommand) Initalize ¶
func (c *SetDeviceOrientationOverrideCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*SetDeviceOrientationOverrideCommand) Respond ¶
func (c *SetDeviceOrientationOverrideCommand) Respond()
func (*SetDeviceOrientationOverrideCommand) RespondWithError ¶
func (c *SetDeviceOrientationOverrideCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type SetDeviceOrientationOverrideCommandFn ¶
type SetDeviceOrientationOverrideCommandFn struct {
// contains filtered or unexported fields
}
func (*SetDeviceOrientationOverrideCommandFn) Load ¶
func (a *SetDeviceOrientationOverrideCommandFn) Load() func(SetDeviceOrientationOverrideCommand)
func (*SetDeviceOrientationOverrideCommandFn) Store ¶
func (a *SetDeviceOrientationOverrideCommandFn) Store(fn func(SetDeviceOrientationOverrideCommand))
type SetDeviceOrientationOverrideReturn ¶
type SetDeviceOrientationOverrideReturn struct { }
type SetDocumentContentCommand ¶
type SetDocumentContentCommand struct { DestinationTargetID string FrameId FrameId `json:"frameId"` // Frame id to set HTML for. Html string `json:"html"` // HTML content to set. // contains filtered or unexported fields }
func (*SetDocumentContentCommand) Initalize ¶
func (c *SetDocumentContentCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*SetDocumentContentCommand) Respond ¶
func (c *SetDocumentContentCommand) Respond()
func (*SetDocumentContentCommand) RespondWithError ¶
func (c *SetDocumentContentCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type SetDocumentContentCommandFn ¶
type SetDocumentContentCommandFn struct {
// contains filtered or unexported fields
}
func (*SetDocumentContentCommandFn) Load ¶
func (a *SetDocumentContentCommandFn) Load() func(SetDocumentContentCommand)
func (*SetDocumentContentCommandFn) Store ¶
func (a *SetDocumentContentCommandFn) Store(fn func(SetDocumentContentCommand))
type SetDocumentContentReturn ¶
type SetDocumentContentReturn struct { }
type SetGeolocationOverrideCommand ¶
type SetGeolocationOverrideCommand struct { DestinationTargetID string Latitude *float64 `json:"latitude,omitempty"` // Mock latitude Longitude *float64 `json:"longitude,omitempty"` // Mock longitude Accuracy *float64 `json:"accuracy,omitempty"` // Mock accuracy // contains filtered or unexported fields }
func (*SetGeolocationOverrideCommand) Initalize ¶
func (c *SetGeolocationOverrideCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*SetGeolocationOverrideCommand) Respond ¶
func (c *SetGeolocationOverrideCommand) Respond()
func (*SetGeolocationOverrideCommand) RespondWithError ¶
func (c *SetGeolocationOverrideCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type SetGeolocationOverrideCommandFn ¶
type SetGeolocationOverrideCommandFn struct {
// contains filtered or unexported fields
}
func (*SetGeolocationOverrideCommandFn) Load ¶
func (a *SetGeolocationOverrideCommandFn) Load() func(SetGeolocationOverrideCommand)
func (*SetGeolocationOverrideCommandFn) Store ¶
func (a *SetGeolocationOverrideCommandFn) Store(fn func(SetGeolocationOverrideCommand))
type SetGeolocationOverrideReturn ¶
type SetGeolocationOverrideReturn struct { }
type SetTouchEmulationEnabledCommand ¶
type SetTouchEmulationEnabledCommand struct { DestinationTargetID string Enabled bool `json:"enabled"` // Whether the touch event emulation should be enabled. Configuration *SetTouchEmulationEnabledConfigurationEnum `json:"configuration,omitempty"` // Touch/gesture events configuration. Default: current platform. // contains filtered or unexported fields }
func (*SetTouchEmulationEnabledCommand) Initalize ¶
func (c *SetTouchEmulationEnabledCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*SetTouchEmulationEnabledCommand) Respond ¶
func (c *SetTouchEmulationEnabledCommand) Respond()
func (*SetTouchEmulationEnabledCommand) RespondWithError ¶
func (c *SetTouchEmulationEnabledCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type SetTouchEmulationEnabledCommandFn ¶
type SetTouchEmulationEnabledCommandFn struct {
// contains filtered or unexported fields
}
func (*SetTouchEmulationEnabledCommandFn) Load ¶
func (a *SetTouchEmulationEnabledCommandFn) Load() func(SetTouchEmulationEnabledCommand)
func (*SetTouchEmulationEnabledCommandFn) Store ¶
func (a *SetTouchEmulationEnabledCommandFn) Store(fn func(SetTouchEmulationEnabledCommand))
type SetTouchEmulationEnabledConfigurationEnum ¶
type SetTouchEmulationEnabledConfigurationEnum string
const ( SetTouchEmulationEnabledConfigurationMobile SetTouchEmulationEnabledConfigurationEnum = "mobile" SetTouchEmulationEnabledConfigurationDesktop SetTouchEmulationEnabledConfigurationEnum = "desktop" )
type SetTouchEmulationEnabledReturn ¶
type SetTouchEmulationEnabledReturn struct { }
type StartScreencastCommand ¶
type StartScreencastCommand struct { DestinationTargetID string Format *StartScreencastFormatEnum `json:"format,omitempty"` // Image compression format. Quality *int64 `json:"quality,omitempty"` // Compression quality from range [0..100]. MaxWidth *int64 `json:"maxWidth,omitempty"` // Maximum screenshot width. MaxHeight *int64 `json:"maxHeight,omitempty"` // Maximum screenshot height. EveryNthFrame *int64 `json:"everyNthFrame,omitempty"` // Send every n-th frame. // contains filtered or unexported fields }
func (*StartScreencastCommand) Initalize ¶
func (c *StartScreencastCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*StartScreencastCommand) Respond ¶
func (c *StartScreencastCommand) Respond()
func (*StartScreencastCommand) RespondWithError ¶
func (c *StartScreencastCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type StartScreencastCommandFn ¶
type StartScreencastCommandFn struct {
// contains filtered or unexported fields
}
func (*StartScreencastCommandFn) Load ¶
func (a *StartScreencastCommandFn) Load() func(StartScreencastCommand)
func (*StartScreencastCommandFn) Store ¶
func (a *StartScreencastCommandFn) Store(fn func(StartScreencastCommand))
type StartScreencastFormatEnum ¶
type StartScreencastFormatEnum string
const ( StartScreencastFormatJpeg StartScreencastFormatEnum = "jpeg" StartScreencastFormatPng StartScreencastFormatEnum = "png" )
type StartScreencastReturn ¶
type StartScreencastReturn struct { }
type StopLoadingCommand ¶
type StopLoadingCommand struct { DestinationTargetID string // contains filtered or unexported fields }
func (*StopLoadingCommand) Initalize ¶
func (c *StopLoadingCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*StopLoadingCommand) Respond ¶
func (c *StopLoadingCommand) Respond()
func (*StopLoadingCommand) RespondWithError ¶
func (c *StopLoadingCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type StopLoadingCommandFn ¶
type StopLoadingCommandFn struct {
// contains filtered or unexported fields
}
func (*StopLoadingCommandFn) Load ¶
func (a *StopLoadingCommandFn) Load() func(StopLoadingCommand)
func (*StopLoadingCommandFn) Store ¶
func (a *StopLoadingCommandFn) Store(fn func(StopLoadingCommand))
type StopLoadingReturn ¶
type StopLoadingReturn struct { }
type StopScreencastCommand ¶
type StopScreencastCommand struct { DestinationTargetID string // contains filtered or unexported fields }
func (*StopScreencastCommand) Initalize ¶
func (c *StopScreencastCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*StopScreencastCommand) Respond ¶
func (c *StopScreencastCommand) Respond()
func (*StopScreencastCommand) RespondWithError ¶
func (c *StopScreencastCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type StopScreencastCommandFn ¶
type StopScreencastCommandFn struct {
// contains filtered or unexported fields
}
func (*StopScreencastCommandFn) Load ¶
func (a *StopScreencastCommandFn) Load() func(StopScreencastCommand)
func (*StopScreencastCommandFn) Store ¶
func (a *StopScreencastCommandFn) Store(fn func(StopScreencastCommand))
type StopScreencastReturn ¶
type StopScreencastReturn struct { }
type VisualViewport ¶
type VisualViewport struct { OffsetX float64 `json:"offsetX"` // Horizontal offset relative to the layout viewport (CSS pixels). OffsetY float64 `json:"offsetY"` // Vertical offset relative to the layout viewport (CSS pixels). PageX float64 `json:"pageX"` // Horizontal offset relative to the document (CSS pixels). PageY float64 `json:"pageY"` // Vertical offset relative to the document (CSS pixels). ClientWidth float64 `json:"clientWidth"` // Width (CSS pixels), excludes scrollbar if present. ClientHeight float64 `json:"clientHeight"` // Height (CSS pixels), excludes scrollbar if present. Scale float64 `json:"scale"` // Scale relative to the ideal viewport (size at width=device-width). }
Click to show internal directories.
Click to hide internal directories.