page

package
v0.0.0-...-076f285 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 26, 2017 License: Apache-2.0 Imports: 8 Imported by: 4

Documentation

Index

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 (*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 (*AddScriptToEvaluateOnLoadCommandFn) Store

type AddScriptToEvaluateOnLoadReturn

type AddScriptToEvaluateOnLoadReturn struct {
	Identifier ScriptIdentifier `json:"identifier"` // Identifier of the added script.
}

type AppManifestError

type AppManifestError struct {
	Message  string `json:"message"`  // Error message.
	Critical int64  `json:"critical"` // If criticial, this is a non-recoverable parse error.
	Line     int64  `json:"line"`     // Error line.
	Column   int64  `json:"column"`   // Error column.
}

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 (*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 (*CaptureScreenshotCommandFn) Store

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 (*ClearDeviceMetricsOverrideCommandFn) Store

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 (*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 (*ClearDeviceOrientationOverrideCommandFn) Store

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 (*ClearGeolocationOverrideCommandFn) Store

type ClearGeolocationOverrideReturn

type ClearGeolocationOverrideReturn struct {
}

type ColorPickedEvent

type ColorPickedEvent struct {
	Color dom.RGBA `json:"color"` // RGBA of the picked color.
}

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 (*ConfigureOverlayCommandFn) Store

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 (*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 FrameAttachedEvent struct {
	FrameId       FrameId `json:"frameId"`       // Id of the frame that has been attached.
	ParentFrameId FrameId `json:"parentFrameId"` // Parent frame identifier.
}

type FrameClearedScheduledNavigationEvent

type FrameClearedScheduledNavigationEvent struct {
	FrameId FrameId `json:"frameId"` // Id of the frame that has cleared its scheduled navigation.
}

type FrameDetachedEvent

type FrameDetachedEvent struct {
	FrameId FrameId `json:"frameId"` // Id of the frame that has been detached.
}

type FrameId

type FrameId string

type FrameNavigatedEvent

type FrameNavigatedEvent struct {
	Frame Frame `json:"frame"` // Frame object.
}

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 {
	FrameId FrameId `json:"frameId"` // Id of the frame that has scheduled a navigation.
	Delay   float64 `json:"delay"`   // Delay (in seconds) until the navigation is scheduled to begin. The navigation is not guaranteed to start.
}

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 (*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 (*GetAppManifestCommandFn) Store

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 (*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 (*GetLayoutMetricsCommandFn) Store

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 {
	DestinationTargetID string
	// contains filtered or unexported fields
}

func (*GetNavigationHistoryCommand) Initalize

func (c *GetNavigationHistoryCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)

func (*GetNavigationHistoryCommand) Respond

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 (*GetNavigationHistoryCommandFn) Store

type GetNavigationHistoryReturn

type GetNavigationHistoryReturn struct {
	CurrentIndex int64             `json:"currentIndex"` // Index of the current navigation history entry.
	Entries      []NavigationEntry `json:"entries"`      // Array of navigation history entries.
}

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 (*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 (*GetResourceContentCommandFn) Store

type GetResourceContentReturn

type GetResourceContentReturn struct {
	Content       string `json:"content"`       // Resource content.
	Base64Encoded bool   `json:"base64Encoded"` // True, if content was served as base64.
}

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 (*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 (*GetResourceTreeCommandFn) Store

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 (*HandleJavaScriptDialogCommandFn) Store

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 struct {
	DestinationTargetID string

	Url      string  `json:"url"`                // URL to navigate the page to.
	Referrer *string `json:"referrer,omitempty"` // [Experimental] Referrer URL.
	// contains filtered or unexported fields
}
func (c *NavigateCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (c *NavigateCommand) Respond(r *NavigateReturn)
func (c *NavigateCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type NavigateCommandFn struct {
	// contains filtered or unexported fields
}
func (a *NavigateCommandFn) Load() func(NavigateCommand)
func (a *NavigateCommandFn) Store(fn func(NavigateCommand))
type NavigateReturn struct {
	FrameId FrameId `json:"frameId"` // [Experimental] Frame id that will be navigated.
}
type NavigateToHistoryEntryCommand struct {
	DestinationTargetID string

	EntryId int64 `json:"entryId"` // Unique id of the entry to navigate to.
	// contains filtered or unexported fields
}
func (c *NavigateToHistoryEntryCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (c *NavigateToHistoryEntryCommand) Respond()
func (c *NavigateToHistoryEntryCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type NavigateToHistoryEntryCommandFn struct {
	// contains filtered or unexported fields
}
type NavigateToHistoryEntryReturn struct {
}
type NavigationEntry struct {
	Id    int64  `json:"id"`    // Unique id of the navigation history entry.
	Url   string `json:"url"`   // URL of the navigation history entry.
	Title string `json:"title"` // Title of the navigation history entry.
}
type NavigationRequestedEvent struct {
	IsInMainFrame bool   `json:"isInMainFrame"` // Whether the navigation is taking place in the main frame or in a subframe.
	IsRedirect    bool   `json:"isRedirect"`    // Whether the navigation has encountered a server redirect or not.
	NavigationId  int64  `json:"navigationId"`
	Url           string `json:"url"` // URL of requested navigation.
}
type NavigationResponse string
const (
	NavigationResponseProceed         NavigationResponse = "Proceed"
	NavigationResponseCancel          NavigationResponse = "Cancel"
	NavigationResponseCancelAndIgnore NavigationResponse = "CancelAndIgnore"
)

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 (agent *PageAgent) FireFrameResizedOnTarget(targetId string)

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 (agent *PageAgent) FireInterstitialHiddenOnTarget(targetId string)

func (*PageAgent) FireInterstitialShown

func (agent *PageAgent) FireInterstitialShown()

func (*PageAgent) FireInterstitialShownOnTarget

func (agent *PageAgent) FireInterstitialShownOnTarget(targetId string)

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) Name

func (agent *PageAgent) Name() string

func (*PageAgent) ProcessCommand

func (agent *PageAgent) ProcessCommand(id int64, targetId string, funcName string, data *json.RawMessage)

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 {
	DestinationTargetID string

	Response     NavigationResponse `json:"response"`
	NavigationId int64              `json:"navigationId"`
	// 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 (*ProcessNavigationCommandFn) Store

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 (*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 (*RemoveScriptToEvaluateOnLoadCommandFn) Store

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 (*RequestAppBannerCommandFn) Store

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 (*ScreencastFrameAckCommandFn) Store

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 (*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 (*SearchInResourceCommandFn) Store

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 (*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 (*SetAutoAttachToCreatedPagesCommandFn) Store

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 (*SetColorPickerEnabledCommandFn) Store

type SetColorPickerEnabledReturn

type SetColorPickerEnabledReturn struct {
}

type SetControlNavigationsCommand

type SetControlNavigationsCommand struct {
	DestinationTargetID string

	Enabled bool `json:"enabled"`
	// 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 (*SetControlNavigationsCommandFn) Store

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 (*SetDeviceMetricsOverrideCommandFn) Store

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 (*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 (*SetDeviceOrientationOverrideCommandFn) Store

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 (*SetDocumentContentCommandFn) Store

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 (*SetGeolocationOverrideCommandFn) Store

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 (*SetTouchEmulationEnabledCommandFn) Store

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 (*StartScreencastCommandFn) Store

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 (*StopScreencastCommandFn) Store

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).
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL