mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 18:19:03 +00:00
LibWeb: Extract some Internals functionality to a base class
This will just allow re-using these definitions on other internal pages.
This commit is contained in:
parent
2d220a8bbc
commit
9dcbf5562a
Notes:
github-actions[bot]
2025-03-19 14:04:52 +00:00
Author: https://github.com/trflynn89
Commit: 9dcbf5562a
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3967
Reviewed-by: https://github.com/shannonbooth
5 changed files with 87 additions and 37 deletions
|
@ -6,15 +6,15 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <LibWeb/Bindings/PlatformObject.h>
|
||||
#include <LibWeb/Internals/InternalAnimationTimeline.h>
|
||||
#include <LibWeb/Internals/InternalsBase.h>
|
||||
#include <LibWeb/UIEvents/MouseButton.h>
|
||||
#include <LibWeb/WebIDL/Types.h>
|
||||
|
||||
namespace Web::Internals {
|
||||
|
||||
class Internals final : public Bindings::PlatformObject {
|
||||
WEB_PLATFORM_OBJECT(Internals, Bindings::PlatformObject);
|
||||
class Internals final : public InternalsBase {
|
||||
WEB_PLATFORM_OBJECT(Internals, InternalsBase);
|
||||
GC_DECLARE_ALLOCATOR(Internals);
|
||||
|
||||
public:
|
||||
|
@ -62,13 +62,11 @@ public:
|
|||
|
||||
private:
|
||||
explicit Internals(JS::Realm&);
|
||||
|
||||
virtual void initialize(JS::Realm&) override;
|
||||
|
||||
void click(double x, double y, UIEvents::MouseButton);
|
||||
void mouse_down(double x, double y, UIEvents::MouseButton);
|
||||
|
||||
HTML::Window& internals_window() const;
|
||||
Page& internals_page() const;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue