mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 18:18:12 +00:00
LibWeb: Implement navigator.{plugins,mimeTypes}
This commit is contained in:
parent
5e422bdae0
commit
4d0277cd9a
20 changed files with 767 additions and 4 deletions
|
@ -20,6 +20,8 @@
|
|||
#include <LibWeb/HTML/AnimationFrameCallbackDriver.h>
|
||||
#include <LibWeb/HTML/CrossOrigin/CrossOriginPropertyDescriptorMap.h>
|
||||
#include <LibWeb/HTML/GlobalEventHandlers.h>
|
||||
#include <LibWeb/HTML/MimeType.h>
|
||||
#include <LibWeb/HTML/Plugin.h>
|
||||
#include <LibWeb/HTML/Scripting/ImportMap.h>
|
||||
#include <LibWeb/HTML/WindowEventHandlers.h>
|
||||
|
||||
|
@ -137,6 +139,9 @@ public:
|
|||
|
||||
void initialize_web_interfaces(Badge<WindowEnvironmentSettingsObject>);
|
||||
|
||||
Vector<JS::NonnullGCPtr<Plugin>> pdf_viewer_plugin_objects();
|
||||
Vector<JS::NonnullGCPtr<MimeType>> pdf_viewer_mime_type_objects();
|
||||
|
||||
private:
|
||||
explicit Window(JS::Realm&);
|
||||
|
||||
|
@ -184,6 +189,12 @@ private:
|
|||
// https://w3c.github.io/requestidlecallback/#dfn-idle-callback-identifier
|
||||
u32 m_idle_callback_identifier = 0;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/system-state.html#pdf-viewer-plugin-objects
|
||||
Vector<JS::NonnullGCPtr<Plugin>> m_pdf_viewer_plugin_objects;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/system-state.html#pdf-viewer-mime-type-objects
|
||||
Vector<JS::NonnullGCPtr<MimeType>> m_pdf_viewer_mime_type_objects;
|
||||
|
||||
public:
|
||||
HTML::Origin origin() const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue