com.hubspot.chrome.devtools.client.core.page.WindowOpenEvent Maven / Gradle / Ivy
package com.hubspot.chrome.devtools.client.core.page;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.hubspot.chrome.devtools.client.core.Event;
import java.util.List;
/**
* Fired when a new window is going to be opened, via window.open(), link click, form submission,
* etc.
*/
public final class WindowOpenEvent extends Event {
private String url;
private String windowName;
private List windowFeatures;
private Boolean userGesture;
@JsonCreator
public WindowOpenEvent(@JsonProperty("url") String url,
@JsonProperty("windowName") String windowName,
@JsonProperty("windowFeatures") List windowFeatures,
@JsonProperty("userGesture") Boolean userGesture) {
this.url = url;
this.windowName = windowName;
this.windowFeatures = windowFeatures;
this.userGesture = userGesture;
}
public String getUrl() {
return url;
}
public String getWindowName() {
return windowName;
}
public List getWindowFeatures() {
return windowFeatures;
}
public Boolean getUserGesture() {
return userGesture;
}
}