diff --git a/Libraries/LibCore/Forward.h b/Libraries/LibCore/Forward.h index a639b18b4ff..b857acafa13 100644 --- a/Libraries/LibCore/Forward.h +++ b/Libraries/LibCore/Forward.h @@ -52,6 +52,7 @@ class Socket; class SocketAddress; class TCPServer; class TCPSocket; +class Timer; class TimerEvent; class UdpServer; class UdpSocket; diff --git a/Libraries/LibGUI/Application.h b/Libraries/LibGUI/Application.h index 973672a0da0..703d261424f 100644 --- a/Libraries/LibGUI/Application.h +++ b/Libraries/LibGUI/Application.h @@ -29,19 +29,10 @@ #include #include #include -#include +#include #include - -namespace AK { -class SharedBuffer; -} -namespace Core { -class EventLoop; -} -namespace Gfx { -class Palette; -class Point; -} +#include +#include namespace GUI { class Action; diff --git a/Libraries/LibGUI/DragOperation.h b/Libraries/LibGUI/DragOperation.h index 602d836bf53..ae39b9bd008 100644 --- a/Libraries/LibGUI/DragOperation.h +++ b/Libraries/LibGUI/DragOperation.h @@ -28,10 +28,7 @@ #include #include - -namespace Gfx { -class Bitmap; -} +#include namespace GUI { diff --git a/Libraries/LibGUI/FontDatabase.h b/Libraries/LibGUI/FontDatabase.h index 153cebff390..be1a95e950e 100644 --- a/Libraries/LibGUI/FontDatabase.h +++ b/Libraries/LibGUI/FontDatabase.h @@ -29,10 +29,7 @@ #include #include #include - -namespace Gfx { -class Font; -} +#include struct Metadata { String path; diff --git a/Libraries/LibGUI/Label.h b/Libraries/LibGUI/Label.h index 95378ed10e3..d686fad13c8 100644 --- a/Libraries/LibGUI/Label.h +++ b/Libraries/LibGUI/Label.h @@ -29,10 +29,6 @@ #include #include -namespace Gfx { -class Bitmap; -} - namespace GUI { class Label : public Frame { diff --git a/Libraries/LibGUI/Menu.h b/Libraries/LibGUI/Menu.h index 67bb97c7e6f..a1e8b094ce4 100644 --- a/Libraries/LibGUI/Menu.h +++ b/Libraries/LibGUI/Menu.h @@ -31,10 +31,7 @@ #include #include #include - -namespace Gfx { -class Point; -} +#include namespace GUI { diff --git a/Libraries/LibGUI/Model.h b/Libraries/LibGUI/Model.h index d70df1dd869..da09a1bac92 100644 --- a/Libraries/LibGUI/Model.h +++ b/Libraries/LibGUI/Model.h @@ -31,13 +31,10 @@ #include #include #include -#include #include #include - -namespace Gfx { -class Font; -} +#include +#include namespace GUI { diff --git a/Libraries/LibGUI/Widget.h b/Libraries/LibGUI/Widget.h index 35b2c1121f5..a0e3ed13b30 100644 --- a/Libraries/LibGUI/Widget.h +++ b/Libraries/LibGUI/Widget.h @@ -42,10 +42,6 @@ extern WidgetClassRegistration registration_##class_name; \ WidgetClassRegistration registration_##class_name(#class_name, [](Widget* parent) { return class_name::construct(parent); }); -namespace Gfx { -class Bitmap; -} - namespace GUI { class Widget; } diff --git a/Libraries/LibHTML/CSS/StyleProperties.h b/Libraries/LibHTML/CSS/StyleProperties.h index 07c997550db..0ab63fd2c52 100644 --- a/Libraries/LibHTML/CSS/StyleProperties.h +++ b/Libraries/LibHTML/CSS/StyleProperties.h @@ -29,12 +29,9 @@ #include #include #include +#include #include -namespace Gfx { -class Color; -} - class StyleProperties : public RefCounted { public: StyleProperties(); diff --git a/Libraries/LibHTML/DOM/Document.h b/Libraries/LibHTML/DOM/Document.h index ec8e6518b48..df43e48830e 100644 --- a/Libraries/LibHTML/DOM/Document.h +++ b/Libraries/LibHTML/DOM/Document.h @@ -32,18 +32,11 @@ #include #include #include +#include #include #include #include -namespace Core { -class Timer; -} - -namespace Gfx { -class Palette; -} - class Frame; class HTMLBodyElement; class HTMLHtmlElement; diff --git a/Libraries/LibHTML/FontCache.h b/Libraries/LibHTML/FontCache.h index f44afd4b932..159d7221e50 100644 --- a/Libraries/LibHTML/FontCache.h +++ b/Libraries/LibHTML/FontCache.h @@ -28,10 +28,7 @@ #include #include - -namespace Gfx { -class Font; -} +#include struct FontSelector { String family; diff --git a/Servers/WindowServer/Button.h b/Servers/WindowServer/Button.h index 8bb1ed5b9b1..555a5d6f9ea 100644 --- a/Servers/WindowServer/Button.h +++ b/Servers/WindowServer/Button.h @@ -30,11 +30,7 @@ #include #include #include - -namespace Gfx { -class CharacterBitmap; -class Painter; -} +#include namespace WindowServer { diff --git a/Servers/WindowServer/ClientConnection.cpp b/Servers/WindowServer/ClientConnection.cpp index db0db313baf..c201f56b1ec 100644 --- a/Servers/WindowServer/ClientConnection.cpp +++ b/Servers/WindowServer/ClientConnection.cpp @@ -24,6 +24,7 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include #include #include #include diff --git a/Servers/WindowServer/Compositor.cpp b/Servers/WindowServer/Compositor.cpp index 1ac6ae01e46..8af877ec4cf 100644 --- a/Servers/WindowServer/Compositor.cpp +++ b/Servers/WindowServer/Compositor.cpp @@ -30,6 +30,7 @@ #include "Screen.h" #include "Window.h" #include "WindowManager.h" +#include #include #include #include diff --git a/Servers/WindowServer/Compositor.h b/Servers/WindowServer/Compositor.h index 2ea441c4bf5..14d2423b4ac 100644 --- a/Servers/WindowServer/Compositor.h +++ b/Servers/WindowServer/Compositor.h @@ -29,13 +29,8 @@ #include #include #include -#include -#include #include - -namespace Gfx { -class Painter; -} +#include namespace WindowServer { diff --git a/Servers/WindowServer/Menu.h b/Servers/WindowServer/Menu.h index f4d9bc4ff5d..7cb3486d524 100644 --- a/Servers/WindowServer/Menu.h +++ b/Servers/WindowServer/Menu.h @@ -30,15 +30,12 @@ #include #include #include +#include #include #include #include #include -namespace Gfx { -class Font; -} - namespace WindowServer { class ClientConnection; diff --git a/Servers/WindowServer/MenuItem.h b/Servers/WindowServer/MenuItem.h index c85c6a53685..297c7518489 100644 --- a/Servers/WindowServer/MenuItem.h +++ b/Servers/WindowServer/MenuItem.h @@ -28,12 +28,9 @@ #include #include +#include #include -namespace Gfx { -class Bitmap; -} - namespace WindowServer { class Menu; diff --git a/Servers/WindowServer/MenuManager.cpp b/Servers/WindowServer/MenuManager.cpp index 922e74fc31b..abbfcd54430 100644 --- a/Servers/WindowServer/MenuManager.cpp +++ b/Servers/WindowServer/MenuManager.cpp @@ -25,6 +25,7 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include #include #include #include diff --git a/Servers/WindowServer/Window.cpp b/Servers/WindowServer/Window.cpp index 849773f7473..0ec89055a93 100644 --- a/Servers/WindowServer/Window.cpp +++ b/Servers/WindowServer/Window.cpp @@ -31,6 +31,7 @@ #include "Screen.h" #include "WindowClientEndpoint.h" #include "WindowManager.h" +#include namespace WindowServer { @@ -414,4 +415,9 @@ void Window::set_tiled(WindowTileType tiled) Core::EventLoop::current().post_event(*this, make(old_rect, m_rect)); } +void Window::detach_client(Badge) +{ + m_client = nullptr; +} + } diff --git a/Servers/WindowServer/Window.h b/Servers/WindowServer/Window.h index 394f85a781f..6e14e5ccbc7 100644 --- a/Servers/WindowServer/Window.h +++ b/Servers/WindowServer/Window.h @@ -223,7 +223,7 @@ public: Window* m_next { nullptr }; Window* m_prev { nullptr }; - void detach_client(Badge) { m_client = nullptr; } + void detach_client(Badge); private: void handle_mouse_event(const MouseEvent&); diff --git a/Servers/WindowServer/WindowFrame.cpp b/Servers/WindowServer/WindowFrame.cpp index a1b9f69ff43..fac04e93388 100644 --- a/Servers/WindowServer/WindowFrame.cpp +++ b/Servers/WindowServer/WindowFrame.cpp @@ -24,6 +24,7 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include #include #include #include diff --git a/Servers/WindowServer/WindowFrame.h b/Servers/WindowServer/WindowFrame.h index 4b123c7b76f..4b2670a7252 100644 --- a/Servers/WindowServer/WindowFrame.h +++ b/Servers/WindowServer/WindowFrame.h @@ -26,13 +26,9 @@ #pragma once -#include +#include #include - -namespace Gfx { -class Painter; -class Rect; -} +#include namespace WindowServer { diff --git a/Servers/WindowServer/WindowSwitcher.h b/Servers/WindowServer/WindowSwitcher.h index 2cf1cc5129d..79fb3336a5c 100644 --- a/Servers/WindowServer/WindowSwitcher.h +++ b/Servers/WindowServer/WindowSwitcher.h @@ -29,12 +29,9 @@ #include #include #include +#include #include -namespace Gfx { -class Painter; -} - namespace WindowServer { class KeyEvent;