Skip to content

Commit

Permalink
feat(webkit): roll to r2038 (#31441)
Browse files Browse the repository at this point in the history
  • Loading branch information
playwrightmachine authored Jun 26, 2024
1 parent 976373e commit 41b185d
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/playwright-core/browsers.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
},
{
"name": "webkit",
"revision": "2037",
"revision": "2038",
"installByDefault": true,
"revisionOverrides": {
"mac10.14": "1446",
Expand Down
39 changes: 39 additions & 0 deletions packages/playwright-core/src/server/webkit/protocol.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5013,6 +5013,23 @@ might return multiple quads for inline nodes.
* UTC time in seconds, counted from January 1, 1970.
*/
export type TimeSinceEpoch = number;
/**
* Touch point.
*/
export interface TouchPoint {
/**
* X coordinate of the event relative to the main frame's viewport in CSS pixels.
*/
x: number;
/**
* Y coordinate of the event relative to the main frame's viewport in CSS pixels.
*/
y: number;
/**
* Identifier used to track touch sources between events, must be unique within an event.
*/
id: number;
}


/**
Expand Down Expand Up @@ -5169,6 +5186,26 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the
}
export type dispatchTapEventReturnValue = {
}
/**
* Dispatches a touch event to the page.
*/
export type dispatchTouchEventParameters = {
/**
* Type of the touch event.
*/
type: "touchStart"|"touchMove"|"touchEnd"|"touchCancel";
/**
* Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8
(default: 0).
*/
modifiers?: number;
/**
* List of touch points
*/
touchPoints?: TouchPoint[];
}
export type dispatchTouchEventReturnValue = {
}
}

export module Inspector {
Expand Down Expand Up @@ -9532,6 +9569,7 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the
"Input.dispatchMouseEvent": Input.dispatchMouseEventParameters;
"Input.dispatchWheelEvent": Input.dispatchWheelEventParameters;
"Input.dispatchTapEvent": Input.dispatchTapEventParameters;
"Input.dispatchTouchEvent": Input.dispatchTouchEventParameters;
"Inspector.enable": Inspector.enableParameters;
"Inspector.disable": Inspector.disableParameters;
"Inspector.initialized": Inspector.initializedParameters;
Expand Down Expand Up @@ -9843,6 +9881,7 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the
"Input.dispatchMouseEvent": Input.dispatchMouseEventReturnValue;
"Input.dispatchWheelEvent": Input.dispatchWheelEventReturnValue;
"Input.dispatchTapEvent": Input.dispatchTapEventReturnValue;
"Input.dispatchTouchEvent": Input.dispatchTouchEventReturnValue;
"Inspector.enable": Inspector.enableReturnValue;
"Inspector.disable": Inspector.disableReturnValue;
"Inspector.initialized": Inspector.initializedReturnValue;
Expand Down

0 comments on commit 41b185d

Please sign in to comment.