LibWeb: Enable EXPLICIT_SYMBOL_EXPORT

This commit is contained in:
ayeteadoe 2025-07-19 19:35:33 -07:00 committed by Andrew Kaster
parent 94a3a7d9a1
commit 3df8e00d91
Notes: github-actions[bot] 2025-08-23 22:05:58 +00:00
256 changed files with 728 additions and 512 deletions

View file

@ -13,6 +13,7 @@
#include <LibGfx/Forward.h>
#include <LibJS/Heap/Cell.h>
#include <LibUnicode/Forward.h>
#include <LibWeb/Export.h>
#include <LibWeb/Forward.h>
#include <LibWeb/Page/EventResult.h>
#include <LibWeb/Page/InputEvent.h>
@ -21,7 +22,7 @@
namespace Web {
class EventHandler {
class WEB_API EventHandler {
public:
explicit EventHandler(Badge<HTML::Navigable>, HTML::Navigable&);
~EventHandler();

View file

@ -11,6 +11,7 @@
#include <AK/Vector.h>
#include <LibGfx/Point.h>
#include <LibIPC/Forward.h>
#include <LibWeb/Export.h>
#include <LibWeb/HTML/SelectedFile.h>
#include <LibWeb/PixelUnits.h>
#include <LibWeb/UIEvents/KeyCode.h>
@ -22,7 +23,7 @@ struct BrowserInputData {
virtual ~BrowserInputData() = default;
};
struct KeyEvent {
struct WEB_API KeyEvent {
enum class Type {
KeyDown,
KeyUp,
@ -39,7 +40,7 @@ struct KeyEvent {
OwnPtr<BrowserInputData> browser_data;
};
struct MouseEvent {
struct WEB_API MouseEvent {
enum class Type {
MouseDown,
MouseUp,
@ -63,7 +64,7 @@ struct MouseEvent {
OwnPtr<BrowserInputData> browser_data;
};
struct DragEvent {
struct WEB_API DragEvent {
enum class Type {
DragStart,
DragMove,
@ -97,21 +98,21 @@ struct QueuedInputEvent {
namespace IPC {
template<>
ErrorOr<void> encode(Encoder&, Web::KeyEvent const&);
WEB_API ErrorOr<void> encode(Encoder&, Web::KeyEvent const&);
template<>
ErrorOr<Web::KeyEvent> decode(Decoder&);
WEB_API ErrorOr<Web::KeyEvent> decode(Decoder&);
template<>
ErrorOr<void> encode(Encoder&, Web::MouseEvent const&);
WEB_API ErrorOr<void> encode(Encoder&, Web::MouseEvent const&);
template<>
ErrorOr<Web::MouseEvent> decode(Decoder&);
WEB_API ErrorOr<Web::MouseEvent> decode(Decoder&);
template<>
ErrorOr<void> encode(Encoder&, Web::DragEvent const&);
WEB_API ErrorOr<void> encode(Encoder&, Web::DragEvent const&);
template<>
ErrorOr<Web::DragEvent> decode(Decoder&);
WEB_API ErrorOr<Web::DragEvent> decode(Decoder&);
}

View file

@ -25,6 +25,7 @@
#include <LibWeb/CSS/PreferredContrast.h>
#include <LibWeb/CSS/PreferredMotion.h>
#include <LibWeb/Cookie/Cookie.h>
#include <LibWeb/Export.h>
#include <LibWeb/Forward.h>
#include <LibWeb/HTML/ActivateTab.h>
#include <LibWeb/HTML/AudioPlayState.h>
@ -45,7 +46,7 @@ namespace Web {
class PageClient;
class Page final : public JS::Cell {
class WEB_API Page final : public JS::Cell {
GC_CELL(Page, JS::Cell);
GC_DECLARE_ALLOCATOR(Page);
@ -419,9 +420,9 @@ protected:
namespace IPC {
template<>
ErrorOr<void> encode(Encoder&, Web::Page::MediaContextMenu const&);
WEB_API ErrorOr<void> encode(Encoder&, Web::Page::MediaContextMenu const&);
template<>
ErrorOr<Web::Page::MediaContextMenu> decode(Decoder&);
WEB_API ErrorOr<Web::Page::MediaContextMenu> decode(Decoder&);
}