LibWeb: Stub out Navigator.maxTouchPoints

This commit is contained in:
Shannon Booth 2024-04-11 21:28:30 +02:00 committed by Andreas Kling
commit 144e53a209
Notes: sideshowbarker 2024-07-17 03:45:48 +09:00
3 changed files with 12 additions and 0 deletions

View file

@ -84,4 +84,11 @@ JS::NonnullGCPtr<Clipboard::Clipboard> Navigator::clipboard()
return *m_clipboard;
}
// https://w3c.github.io/pointerevents/#dom-navigator-maxtouchpoints
WebIDL::Long Navigator::max_touch_points()
{
dbgln("FIXME: Unimplemented Navigator.maxTouchPoints");
return 0;
}
}

View file

@ -48,6 +48,8 @@ public:
[[nodiscard]] JS::NonnullGCPtr<PluginArray> plugins();
[[nodiscard]] JS::NonnullGCPtr<Clipboard::Clipboard> clipboard();
static WebIDL::Long max_touch_points();
virtual ~Navigator() override;
protected:

View file

@ -14,6 +14,9 @@ interface Navigator {
// https://w3c.github.io/clipboard-apis/#navigator-interface
[SecureContext, SameObject] readonly attribute Clipboard clipboard;
// https://w3c.github.io/pointerevents/#extensions-to-the-navigator-interface
readonly attribute long maxTouchPoints;
};
// NOTE: As NavigatorContentUtils, NavigatorCookies, NavigatorPlugins, and NavigatorAutomationInformation