mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-26 04:22:07 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
	
		
			612 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
	
		
			612 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2022, Andreas Kling <kling@serenityos.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <LibWeb/Platform/EventLoopPlugin.h>
 | |
| 
 | |
| namespace Web::Platform {
 | |
| 
 | |
| class EventLoopPluginSerenity final : public Web::Platform::EventLoopPlugin {
 | |
| public:
 | |
|     EventLoopPluginSerenity();
 | |
|     virtual ~EventLoopPluginSerenity() override;
 | |
| 
 | |
|     virtual void spin_until(JS::SafeFunction<bool()> goal_condition) override;
 | |
|     virtual void deferred_invoke(JS::SafeFunction<void()>) override;
 | |
|     virtual NonnullRefPtr<Timer> create_timer() override;
 | |
|     virtual void quit() override;
 | |
| };
 | |
| 
 | |
| }
 | 
