chore: remove special case for WebSocketFrame (#272)
This commit is contained in:
+1
-1
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user