1
0
mirror of synced 2026-05-22 18:53:15 +00:00

chore: remove special case for WebSocketFrame (#272)

This commit is contained in:
Yury Semikhatsky
2021-02-09 16:50:01 -08:00
committed by GitHub
parent bd14c560d2
commit 7642097291
3 changed files with 1 additions and 7 deletions
+1 -1
View File
@@ -1 +1 @@
1.9.0-next-1612836447000
1.9.0-next-1612915344000
@@ -454,10 +454,6 @@ class Event extends Element {
void writeListenerMethods(List<String> output, String offset) {
String name = toTitle(jsonName);
String paramType = type.toJava();
// TODO: fix upstream
if ("FrameData".equals(paramType)) {
paramType = "WebSocketFrame";
}
String listenerType = "Consumer<" + paramType + ">";
output.add(offset + "void on" + name + "(" + listenerType + " handler);");
output.add(offset + "void off" + name + "(" + listenerType + " handler);");
@@ -74,8 +74,6 @@ class Types {
// Return structures
add("ConsoleMessage.location", "Object", "Location");
add("ElementHandle.boundingBox", "Object|null", "BoundingBox", new Empty());
add("WebSocket.frameReceived", "Object", "FrameData", new Empty());
add("WebSocket.frameSent", "Object", "FrameData", new Empty());
// Custom options
add("Page.click.options.position", "Object", "Position", new Empty());