public interface Overlay
Modifier and Type | Method | Description |
---|---|---|
void |
disable() |
Disables domain notifications.
|
void |
enable() |
Enables domain notifications.
|
void |
hideHighlight() |
Hides any highlight.
|
void |
highlightFrame(String frameId) |
Highlights owner element of the frame with given id.
|
void |
highlightFrame(String frameId,
RGBA contentColor,
RGBA contentOutlineColor) |
Highlights owner element of the frame with given id.
|
void |
highlightNode(HighlightConfig highlightConfig) |
Highlights DOM node with given id or with the given JavaScript object wrapper.
|
void |
highlightNode(HighlightConfig highlightConfig,
Integer nodeId,
Integer backendNodeId,
String objectId) |
Highlights DOM node with given id or with the given JavaScript object wrapper.
|
void |
highlightQuad(List<Double> quad) |
Highlights given quad.
|
void |
highlightQuad(List<Double> quad,
RGBA color,
RGBA outlineColor) |
Highlights given quad.
|
void |
highlightRect(Integer x,
Integer y,
Integer width,
Integer height) |
Highlights given rectangle.
|
void |
highlightRect(Integer x,
Integer y,
Integer width,
Integer height,
RGBA color,
RGBA outlineColor) |
Highlights given rectangle.
|
void |
setInspectMode(InspectMode mode) |
Enters the 'inspect' mode.
|
void |
setInspectMode(InspectMode mode,
HighlightConfig highlightConfig) |
Enters the 'inspect' mode.
|
void |
setPausedInDebuggerMessage() |
|
void |
setPausedInDebuggerMessage(String message) |
|
void |
setShowDebugBorders(Boolean show) |
Requests that backend shows debug borders on layers
|
void |
setShowFPSCounter(Boolean show) |
Requests that backend shows the FPS counter
|
void |
setShowPaintRects(Boolean result) |
Requests that backend shows paint rectangles
|
void |
setShowScrollBottleneckRects(Boolean show) |
Requests that backend shows scroll bottleneck rects
|
void |
setShowViewportSizeOnResize(Boolean show) |
Paints viewport size upon main frame resize.
|
void |
setSuspended(Boolean suspended) |
void disable()
void enable()
void hideHighlight()
void highlightFrame(String frameId, RGBA contentColor, RGBA contentOutlineColor)
frameId
- Identifier of the frame to highlight.contentColor
- The content box highlight fill color (default: transparent).contentOutlineColor
- The content box highlight outline color (default: transparent).void highlightNode(HighlightConfig highlightConfig, Integer nodeId, Integer backendNodeId, String objectId)
highlightConfig
- A descriptor for the highlight appearance.nodeId
- Identifier of the node to highlight.backendNodeId
- Identifier of the backend node to highlight.objectId
- JavaScript object id of the node to be highlighted.void highlightQuad(List<Double> quad, RGBA color, RGBA outlineColor)
quad
- Quad to highlightcolor
- The highlight fill color (default: transparent).outlineColor
- The highlight outline color (default: transparent).void highlightRect(Integer x, Integer y, Integer width, Integer height, RGBA color, RGBA outlineColor)
x
- X coordinatey
- Y coordinatewidth
- Rectangle widthheight
- Rectangle heightcolor
- The highlight fill color (default: transparent).outlineColor
- The highlight outline color (default: transparent).void setInspectMode(InspectMode mode, HighlightConfig highlightConfig)
mode
- Set an inspection mode.highlightConfig
- A descriptor for the highlight appearance of hovered-over nodes. May be omitted ifenabled
== false.
void setPausedInDebuggerMessage(String message)
void setShowDebugBorders(Boolean show)
show
- True for showing debug bordersvoid setShowFPSCounter(Boolean show)
show
- True for showing the FPS countervoid setShowPaintRects(Boolean result)
result
- True for showing paint rectanglesvoid setShowScrollBottleneckRects(Boolean show)
show
- True for showing scroll bottleneck rectsvoid setShowViewportSizeOnResize(Boolean show)
show
- Whether to paint size or not.void setSuspended(Boolean suspended)
void highlightFrame(String frameId)
frameId
- Identifier of the frame to highlight.void highlightNode(HighlightConfig highlightConfig)
highlightConfig
- A descriptor for the highlight appearance.void highlightQuad(List<Double> quad)
quad
- Quad to highlightvoid highlightRect(Integer x, Integer y, Integer width, Integer height)
x
- X coordinatey
- Y coordinatewidth
- Rectangle widthheight
- Rectangle heightvoid setInspectMode(InspectMode mode)
mode
- Set an inspection mode.void setPausedInDebuggerMessage()
Copyright © 2017, 2018–2018 WebFolder OÜ. All rights reserved.