mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 14:58:46 +00:00
Core::deferred_invoke is a way of executing an action after previously queued events have been processed. It removes the requirement of having/being a Core::Object subclass in order to defer invocation through Core::Object::deferred_invoke. Core::Object::deferred_invoke now delegates to Core::deferred_invoke. The version with the Object& argument is still present but will be removed in the following commits. This commit additionally fixes a new places where the DeferredInvocationEvent was dispatched to the event loop directly, and replaces them with the Core::deferred_invoke equivalent.
44 lines
758 B
C++
44 lines
758 B
C++
/*
|
|
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
namespace Core {
|
|
|
|
class AnonymousBuffer;
|
|
class ArgsParser;
|
|
class ChildEvent;
|
|
class ConfigFile;
|
|
class CustomEvent;
|
|
class DateTime;
|
|
class DirIterator;
|
|
class DeferredInvocationContext;
|
|
class ElapsedTimer;
|
|
class Event;
|
|
class EventLoop;
|
|
class File;
|
|
class IODevice;
|
|
class LocalServer;
|
|
class LocalSocket;
|
|
class MimeData;
|
|
class NetworkJob;
|
|
class NetworkResponse;
|
|
class Notifier;
|
|
class Object;
|
|
class ObjectClassRegistration;
|
|
class ProcessStatisticsReader;
|
|
class Socket;
|
|
class SocketAddress;
|
|
class TCPServer;
|
|
class TCPSocket;
|
|
class Timer;
|
|
class TimerEvent;
|
|
class UDPServer;
|
|
class UDPSocket;
|
|
|
|
enum class TimerShouldFireWhenNotVisible;
|
|
|
|
}
|