mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 09:09:43 +00:00
LibWeb: Stub out Navigator.maxTouchPoints
This commit is contained in:
parent
3ab5ecb671
commit
144e53a209
Notes:
sideshowbarker
2024-07-17 03:45:48 +09:00
Author: https://github.com/shannonbooth
Commit: 144e53a209
Pull-request: https://github.com/SerenityOS/serenity/pull/23935
3 changed files with 12 additions and 0 deletions
|
@ -84,4 +84,11 @@ JS::NonnullGCPtr<Clipboard::Clipboard> Navigator::clipboard()
|
||||||
return *m_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;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,6 +48,8 @@ public:
|
||||||
[[nodiscard]] JS::NonnullGCPtr<PluginArray> plugins();
|
[[nodiscard]] JS::NonnullGCPtr<PluginArray> plugins();
|
||||||
[[nodiscard]] JS::NonnullGCPtr<Clipboard::Clipboard> clipboard();
|
[[nodiscard]] JS::NonnullGCPtr<Clipboard::Clipboard> clipboard();
|
||||||
|
|
||||||
|
static WebIDL::Long max_touch_points();
|
||||||
|
|
||||||
virtual ~Navigator() override;
|
virtual ~Navigator() override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
|
@ -14,6 +14,9 @@ interface Navigator {
|
||||||
|
|
||||||
// https://w3c.github.io/clipboard-apis/#navigator-interface
|
// https://w3c.github.io/clipboard-apis/#navigator-interface
|
||||||
[SecureContext, SameObject] readonly attribute Clipboard clipboard;
|
[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
|
// NOTE: As NavigatorContentUtils, NavigatorCookies, NavigatorPlugins, and NavigatorAutomationInformation
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue