LibWeb: Add the Web::Crypto namespace, built-in, and getRandomValues

Since we don't support IDL typedefs or unions yet, the responsibility
of verifying the type of the argument is temporarily moved from the
generated Wrapper to the implementation.
This commit is contained in:
Idan Horowitz 2021-09-30 20:02:55 +03:00 committed by Andreas Kling
commit 2c6c9b73c8
Notes: sideshowbarker 2024-07-18 03:16:47 +09:00
12 changed files with 129 additions and 10 deletions

View file

@ -7,6 +7,7 @@
#include <LibGUI/DisplayLink.h>
#include <LibJS/Runtime/FunctionObject.h>
#include <LibWeb/CSS/ResolvedCSSStyleDeclaration.h>
#include <LibWeb/Crypto/Crypto.h>
#include <LibWeb/DOM/Document.h>
#include <LibWeb/DOM/Event.h>
#include <LibWeb/DOM/EventDispatcher.h>
@ -94,6 +95,7 @@ Window::Window(Document& document)
: EventTarget(static_cast<Bindings::ScriptExecutionContext&>(document))
, m_associated_document(document)
, m_performance(make<HighResolutionTime::Performance>(*this))
, m_crypto(Crypto::Crypto::create())
, m_screen(CSS::Screen::create(*this))
{
}