Keep the last in-template copy on main so history can restore it; product continues in jiangchang-ui-recorder. Co-authored-by: Cursor <cursoragent@cursor.com>
20 lines
433 B
Python
20 lines
433 B
Python
"""Surface contracts shared by browser, Windows, and future mobile drivers."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from typing import Any, Protocol
|
|
|
|
|
|
class SurfaceRecorder(Protocol):
|
|
status: str
|
|
def start(self) -> None: ...
|
|
def stop(self) -> None: ...
|
|
def pause(self) -> None: ...
|
|
def resume(self) -> None: ...
|
|
|
|
|
|
class SurfaceDumpDriver(Protocol):
|
|
surface: str
|
|
def dump(self, **kwargs: Any) -> Any: ...
|
|
|