com.hubspot.chrome.devtools.client.core.dom.ShadowRootPushedEvent Maven / Gradle / Ivy
package com.hubspot.chrome.devtools.client.core.dom;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.hubspot.chrome.devtools.client.core.Event;
/**
* Called when shadow root is pushed into the element.
*/
public final class ShadowRootPushedEvent extends Event {
private NodeId hostId;
private Node root;
@JsonCreator
public ShadowRootPushedEvent(@JsonProperty("hostId") NodeId hostId,
@JsonProperty("root") Node root) {
this.hostId = hostId;
this.root = root;
}
public NodeId getHostId() {
return hostId;
}
public Node getRoot() {
return root;
}
}