mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 05:17:35 +00:00
LibWeb: Stub out a basic Selection interface
This patch establishes scaffolding for the Selection API.
This commit is contained in:
parent
6782cf5193
commit
5c9ca5c2dc
11 changed files with 269 additions and 1 deletions
|
@ -21,6 +21,7 @@
|
|||
#include <LibWeb/Layout/InitialContainingBlock.h>
|
||||
#include <LibWeb/Page/BrowsingContext.h>
|
||||
#include <LibWeb/Page/Page.h>
|
||||
#include <LibWeb/Selection/Selection.h>
|
||||
|
||||
namespace Web::DOM {
|
||||
|
||||
|
@ -404,4 +405,11 @@ int Window::screen_y() const
|
|||
return 0;
|
||||
}
|
||||
|
||||
// https://w3c.github.io/selection-api/#dom-window-getselection
|
||||
Selection::Selection* Window::get_selection()
|
||||
{
|
||||
// FIXME: Implement.
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue