Versions in this module Expand all Collapse all v0 v0.9.0 Jul 18, 2017 Changes in this version + func NewClient(conn *rpcc.Conn) *domainClient + type AddScriptToEvaluateOnLoadArgs struct + ScriptSource string + func NewAddScriptToEvaluateOnLoadArgs(scriptSource string) *AddScriptToEvaluateOnLoadArgs + type AddScriptToEvaluateOnLoadReply struct + Identifier ScriptIdentifier + type AddScriptToEvaluateOnNewDocumentArgs struct + Source string + func NewAddScriptToEvaluateOnNewDocumentArgs(source string) *AddScriptToEvaluateOnNewDocumentArgs + type AddScriptToEvaluateOnNewDocumentReply struct + Identifier ScriptIdentifier + type AppManifestError struct + Column int + Critical int + Line int + Message string + type CaptureScreenshotArgs struct + Format *string + FromSurface *bool + Quality *int + func NewCaptureScreenshotArgs() *CaptureScreenshotArgs + func (a *CaptureScreenshotArgs) SetFormat(format string) *CaptureScreenshotArgs + func (a *CaptureScreenshotArgs) SetFromSurface(fromSurface bool) *CaptureScreenshotArgs + func (a *CaptureScreenshotArgs) SetQuality(quality int) *CaptureScreenshotArgs + type CaptureScreenshotReply struct + Data []byte + type CreateIsolatedWorldArgs struct + FrameID FrameID + GrantUniveralAccess *bool + WorldName *string + func NewCreateIsolatedWorldArgs(frameID FrameID) *CreateIsolatedWorldArgs + func (a *CreateIsolatedWorldArgs) SetGrantUniveralAccess(grantUniveralAccess bool) *CreateIsolatedWorldArgs + func (a *CreateIsolatedWorldArgs) SetWorldName(worldName string) *CreateIsolatedWorldArgs + type CreateIsolatedWorldReply struct + ExecutionContextID runtime.ExecutionContextID + type DOMContentEventFiredClient interface + Recv func() (*DOMContentEventFiredReply, error) + type DOMContentEventFiredReply struct + Timestamp network.MonotonicTime + type DeleteCookieArgs struct + CookieName string + URL string + func NewDeleteCookieArgs(cookieName string, url string) *DeleteCookieArgs + type DialogType int + const DialogTypeAlert + const DialogTypeBeforeunload + const DialogTypeConfirm + const DialogTypeNotSet + const DialogTypePrompt + func (e *DialogType) UnmarshalJSON(data []byte) error + func (e DialogType) MarshalJSON() ([]byte, error) + func (e DialogType) String() string + func (e DialogType) Valid() bool + type Frame struct + ID FrameID + LoaderID network.LoaderID + MimeType string + Name *string + ParentID *FrameID + SecurityOrigin string + URL string + type FrameAttachedClient interface + Recv func() (*FrameAttachedReply, error) + type FrameAttachedReply struct + FrameID FrameID + ParentFrameID FrameID + Stack *runtime.StackTrace + type FrameClearedScheduledNavigationClient interface + Recv func() (*FrameClearedScheduledNavigationReply, error) + type FrameClearedScheduledNavigationReply struct + FrameID FrameID + type FrameDetachedClient interface + Recv func() (*FrameDetachedReply, error) + type FrameDetachedReply struct + FrameID FrameID + type FrameID = internal.PageFrameID + type FrameNavigatedClient interface + Recv func() (*FrameNavigatedReply, error) + type FrameNavigatedReply struct + Frame Frame + type FrameResizedClient interface + Recv func() (*FrameResizedReply, error) + type FrameResizedReply struct + type FrameResource struct + Canceled *bool + ContentSize *float64 + Failed *bool + LastModified network.TimeSinceEpoch + MimeType string + Type ResourceType + URL string + type FrameResourceTree struct + ChildFrames []FrameResourceTree + Frame Frame + Resources []FrameResource + type FrameScheduledNavigationClient interface + Recv func() (*FrameScheduledNavigationReply, error) + type FrameScheduledNavigationReply struct + Delay float64 + FrameID FrameID + type FrameStartedLoadingClient interface + Recv func() (*FrameStartedLoadingReply, error) + type FrameStartedLoadingReply struct + FrameID FrameID + type FrameStoppedLoadingClient interface + Recv func() (*FrameStoppedLoadingReply, error) + type FrameStoppedLoadingReply struct + FrameID FrameID + type GetAppManifestReply struct + Data *string + Errors []AppManifestError + URL string + type GetCookiesReply struct + Cookies []network.Cookie + type GetLayoutMetricsReply struct + ContentSize dom.Rect + LayoutViewport LayoutViewport + VisualViewport VisualViewport + type GetNavigationHistoryReply struct + CurrentIndex int + Entries []NavigationEntry + type GetResourceContentArgs struct + FrameID FrameID + URL string + func NewGetResourceContentArgs(frameID FrameID, url string) *GetResourceContentArgs + type GetResourceContentReply struct + Base64Encoded bool + Content string + type GetResourceTreeReply struct + FrameTree FrameResourceTree + type HandleJavaScriptDialogArgs struct + Accept bool + PromptText *string + func NewHandleJavaScriptDialogArgs(accept bool) *HandleJavaScriptDialogArgs + func (a *HandleJavaScriptDialogArgs) SetPromptText(promptText string) *HandleJavaScriptDialogArgs + type InterstitialHiddenClient interface + Recv func() (*InterstitialHiddenReply, error) + type InterstitialHiddenReply struct + type InterstitialShownClient interface + Recv func() (*InterstitialShownReply, error) + type InterstitialShownReply struct + type JavascriptDialogClosedClient interface + Recv func() (*JavascriptDialogClosedReply, error) + type JavascriptDialogClosedReply struct + Result bool + type JavascriptDialogOpeningClient interface + Recv func() (*JavascriptDialogOpeningReply, error) + type JavascriptDialogOpeningReply struct + Message string + Type DialogType + type LayoutViewport struct + ClientHeight int + ClientWidth int + PageX int + PageY int + type LoadEventFiredClient interface + Recv func() (*LoadEventFiredReply, error) + type LoadEventFiredReply struct + Timestamp network.MonotonicTime + type NavigateArgs struct + Referrer *string + TransitionType TransitionType + URL string + func NewNavigateArgs(url string) *NavigateArgs + func (a *NavigateArgs) SetReferrer(referrer string) *NavigateArgs + func (a *NavigateArgs) SetTransitionType(transitionType TransitionType) *NavigateArgs + type NavigateReply struct + FrameID FrameID + type NavigateToHistoryEntryArgs struct + EntryID int + func NewNavigateToHistoryEntryArgs(entryID int) *NavigateToHistoryEntryArgs + type NavigationEntry struct + ID int + Title string + TransitionType TransitionType + URL string + UserTypedURL string + type NavigationRequestedClient interface + Recv func() (*NavigationRequestedReply, error) + type NavigationRequestedReply struct + IsInMainFrame bool + IsRedirect bool + NavigationID int + URL string + type NavigationResponse int + const NavigationResponseCancel + const NavigationResponseCancelAndIgnore + const NavigationResponseNotSet + const NavigationResponseProceed + func (e *NavigationResponse) UnmarshalJSON(data []byte) error + func (e NavigationResponse) MarshalJSON() ([]byte, error) + func (e NavigationResponse) String() string + func (e NavigationResponse) Valid() bool + type PrintToPDFArgs struct + DisplayHeaderFooter *bool + Landscape *bool + MarginBottom *float64 + MarginLeft *float64 + MarginRight *float64 + MarginTop *float64 + PageRanges *string + PaperHeight *float64 + PaperWidth *float64 + PrintBackground *bool + Scale *float64 + func NewPrintToPDFArgs() *PrintToPDFArgs + func (a *PrintToPDFArgs) SetDisplayHeaderFooter(displayHeaderFooter bool) *PrintToPDFArgs + func (a *PrintToPDFArgs) SetLandscape(landscape bool) *PrintToPDFArgs + func (a *PrintToPDFArgs) SetMarginBottom(marginBottom float64) *PrintToPDFArgs + func (a *PrintToPDFArgs) SetMarginLeft(marginLeft float64) *PrintToPDFArgs + func (a *PrintToPDFArgs) SetMarginRight(marginRight float64) *PrintToPDFArgs + func (a *PrintToPDFArgs) SetMarginTop(marginTop float64) *PrintToPDFArgs + func (a *PrintToPDFArgs) SetPageRanges(pageRanges string) *PrintToPDFArgs + func (a *PrintToPDFArgs) SetPaperHeight(paperHeight float64) *PrintToPDFArgs + func (a *PrintToPDFArgs) SetPaperWidth(paperWidth float64) *PrintToPDFArgs + func (a *PrintToPDFArgs) SetPrintBackground(printBackground bool) *PrintToPDFArgs + func (a *PrintToPDFArgs) SetScale(scale float64) *PrintToPDFArgs + type PrintToPDFReply struct + Data []byte + type ProcessNavigationArgs struct + NavigationID int + Response NavigationResponse + func NewProcessNavigationArgs(response NavigationResponse, navigationID int) *ProcessNavigationArgs + type ReloadArgs struct + IgnoreCache *bool + ScriptToEvaluateOnLoad *string + func NewReloadArgs() *ReloadArgs + func (a *ReloadArgs) SetIgnoreCache(ignoreCache bool) *ReloadArgs + func (a *ReloadArgs) SetScriptToEvaluateOnLoad(scriptToEvaluateOnLoad string) *ReloadArgs + type RemoveScriptToEvaluateOnLoadArgs struct + Identifier ScriptIdentifier + func NewRemoveScriptToEvaluateOnLoadArgs(identifier ScriptIdentifier) *RemoveScriptToEvaluateOnLoadArgs + type RemoveScriptToEvaluateOnNewDocumentArgs struct + Identifier ScriptIdentifier + func NewRemoveScriptToEvaluateOnNewDocumentArgs(identifier ScriptIdentifier) *RemoveScriptToEvaluateOnNewDocumentArgs + type ResourceType = internal.PageResourceType + const ResourceTypeDocument + const ResourceTypeEventSource + const ResourceTypeFetch + const ResourceTypeFont + const ResourceTypeImage + const ResourceTypeManifest + const ResourceTypeMedia + const ResourceTypeNotSet + const ResourceTypeOther + const ResourceTypeScript + const ResourceTypeStylesheet + const ResourceTypeTextTrack + const ResourceTypeWebSocket + const ResourceTypeXHR + type ScreencastFrameAckArgs struct + SessionID int + func NewScreencastFrameAckArgs(sessionID int) *ScreencastFrameAckArgs + type ScreencastFrameClient interface + Recv func() (*ScreencastFrameReply, error) + type ScreencastFrameMetadata struct + DeviceHeight float64 + DeviceWidth float64 + OffsetTop float64 + PageScaleFactor float64 + ScrollOffsetX float64 + ScrollOffsetY float64 + Timestamp network.TimeSinceEpoch + type ScreencastFrameReply struct + Data []byte + Metadata ScreencastFrameMetadata + SessionID int + type ScreencastVisibilityChangedClient interface + Recv func() (*ScreencastVisibilityChangedReply, error) + type ScreencastVisibilityChangedReply struct + Visible bool + type ScriptIdentifier string + type SearchInResourceArgs struct + CaseSensitive *bool + FrameID FrameID + IsRegex *bool + Query string + URL string + func NewSearchInResourceArgs(frameID FrameID, url string, query string) *SearchInResourceArgs + func (a *SearchInResourceArgs) SetCaseSensitive(caseSensitive bool) *SearchInResourceArgs + func (a *SearchInResourceArgs) SetIsRegex(isRegex bool) *SearchInResourceArgs + type SearchInResourceReply struct + Result []debugger.SearchMatch + type SetAutoAttachToCreatedPagesArgs struct + AutoAttach bool + func NewSetAutoAttachToCreatedPagesArgs(autoAttach bool) *SetAutoAttachToCreatedPagesArgs + type SetControlNavigationsArgs struct + Enabled bool + func NewSetControlNavigationsArgs(enabled bool) *SetControlNavigationsArgs + type SetDeviceMetricsOverrideArgs struct + DeviceScaleFactor float64 + FitWindow bool + Height int + Mobile bool + OffsetX *float64 + OffsetY *float64 + PositionX *int + PositionY *int + Scale *float64 + ScreenHeight *int + ScreenOrientation *emulation.ScreenOrientation + ScreenWidth *int + Width int + func NewSetDeviceMetricsOverrideArgs(width int, height int, deviceScaleFactor float64, mobile bool, fitWindow bool) *SetDeviceMetricsOverrideArgs + func (a *SetDeviceMetricsOverrideArgs) SetOffsetX(offsetX float64) *SetDeviceMetricsOverrideArgs + func (a *SetDeviceMetricsOverrideArgs) SetOffsetY(offsetY float64) *SetDeviceMetricsOverrideArgs + func (a *SetDeviceMetricsOverrideArgs) SetPositionX(positionX int) *SetDeviceMetricsOverrideArgs + func (a *SetDeviceMetricsOverrideArgs) SetPositionY(positionY int) *SetDeviceMetricsOverrideArgs + func (a *SetDeviceMetricsOverrideArgs) SetScale(scale float64) *SetDeviceMetricsOverrideArgs + func (a *SetDeviceMetricsOverrideArgs) SetScreenHeight(screenHeight int) *SetDeviceMetricsOverrideArgs + func (a *SetDeviceMetricsOverrideArgs) SetScreenOrientation(screenOrientation emulation.ScreenOrientation) *SetDeviceMetricsOverrideArgs + func (a *SetDeviceMetricsOverrideArgs) SetScreenWidth(screenWidth int) *SetDeviceMetricsOverrideArgs + type SetDeviceOrientationOverrideArgs struct + Alpha float64 + Beta float64 + Gamma float64 + func NewSetDeviceOrientationOverrideArgs(alpha float64, beta float64, gamma float64) *SetDeviceOrientationOverrideArgs + type SetDocumentContentArgs struct + FrameID FrameID + HTML string + func NewSetDocumentContentArgs(frameID FrameID, html string) *SetDocumentContentArgs + type SetGeolocationOverrideArgs struct + Accuracy *float64 + Latitude *float64 + Longitude *float64 + func NewSetGeolocationOverrideArgs() *SetGeolocationOverrideArgs + func (a *SetGeolocationOverrideArgs) SetAccuracy(accuracy float64) *SetGeolocationOverrideArgs + func (a *SetGeolocationOverrideArgs) SetLatitude(latitude float64) *SetGeolocationOverrideArgs + func (a *SetGeolocationOverrideArgs) SetLongitude(longitude float64) *SetGeolocationOverrideArgs + type SetTouchEmulationEnabledArgs struct + Configuration *string + Enabled bool + func NewSetTouchEmulationEnabledArgs(enabled bool) *SetTouchEmulationEnabledArgs + func (a *SetTouchEmulationEnabledArgs) SetConfiguration(configuration string) *SetTouchEmulationEnabledArgs + type StartScreencastArgs struct + EveryNthFrame *int + Format *string + MaxHeight *int + MaxWidth *int + Quality *int + func NewStartScreencastArgs() *StartScreencastArgs + func (a *StartScreencastArgs) SetEveryNthFrame(everyNthFrame int) *StartScreencastArgs + func (a *StartScreencastArgs) SetFormat(format string) *StartScreencastArgs + func (a *StartScreencastArgs) SetMaxHeight(maxHeight int) *StartScreencastArgs + func (a *StartScreencastArgs) SetMaxWidth(maxWidth int) *StartScreencastArgs + func (a *StartScreencastArgs) SetQuality(quality int) *StartScreencastArgs + type TransitionType int + const TransitionTypeAutoBookmark + const TransitionTypeAutoSubframe + const TransitionTypeAutoToplevel + const TransitionTypeFormSubmit + const TransitionTypeGenerated + const TransitionTypeKeyword + const TransitionTypeKeywordGenerated + const TransitionTypeLink + const TransitionTypeManualSubframe + const TransitionTypeNotSet + const TransitionTypeOther + const TransitionTypeReload + const TransitionTypeTyped + func (e *TransitionType) UnmarshalJSON(data []byte) error + func (e TransitionType) MarshalJSON() ([]byte, error) + func (e TransitionType) String() string + func (e TransitionType) Valid() bool + type VisualViewport struct + ClientHeight float64 + ClientWidth float64 + OffsetX float64 + OffsetY float64 + PageX float64 + PageY float64 + Scale float64