mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 12:52:44 +00:00 
			
		
		
		
	Ladybird: Move Qt-specific classes and functions to a Qt subdirectory
This will help a lot with developing chromes for different UI frameworks where we can see which helper classes and processes are really using Qt vs just using it to get at helper data. As a bonus, remove Qt dependency from WebDriver.
This commit is contained in:
		
							parent
							
								
									ccaa423372
								
							
						
					
					
						commit
						391beef707
					
				
					 53 changed files with 160 additions and 157 deletions
				
			
		
							
								
								
									
										34
									
								
								Ladybird/Qt/WebSocketClientManagerQt.cpp
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								Ladybird/Qt/WebSocketClientManagerQt.cpp
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,34 @@ | |||
| /*
 | ||||
|  * Copyright (c) 2022, Dex♪ <dexes.ttp@gmail.com> | ||||
|  * Copyright (c) 2022, Andreas Kling <kling@serenityos.org> | ||||
|  * | ||||
|  * SPDX-License-Identifier: BSD-2-Clause | ||||
|  */ | ||||
| 
 | ||||
| #include "WebSocketClientManagerQt.h" | ||||
| #include "WebSocketImplQt.h" | ||||
| #include "WebSocketQt.h" | ||||
| 
 | ||||
| namespace Ladybird { | ||||
| 
 | ||||
| NonnullRefPtr<WebSocketClientManagerQt> WebSocketClientManagerQt::create() | ||||
| { | ||||
|     return adopt_ref(*new WebSocketClientManagerQt()); | ||||
| } | ||||
| 
 | ||||
| WebSocketClientManagerQt::WebSocketClientManagerQt() = default; | ||||
| WebSocketClientManagerQt::~WebSocketClientManagerQt() = default; | ||||
| 
 | ||||
| RefPtr<Web::WebSockets::WebSocketClientSocket> WebSocketClientManagerQt::connect(AK::URL const& url, DeprecatedString const& origin, Vector<DeprecatedString> const& protocols) | ||||
| { | ||||
|     WebSocket::ConnectionInfo connection_info(url); | ||||
|     connection_info.set_origin(origin); | ||||
|     connection_info.set_protocols(protocols); | ||||
| 
 | ||||
|     auto impl = adopt_ref(*new WebSocketImplQt); | ||||
|     auto web_socket = WebSocket::WebSocket::create(move(connection_info), move(impl)); | ||||
|     web_socket->start(); | ||||
|     return WebSocketQt::create(web_socket); | ||||
| } | ||||
| 
 | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andrew Kaster
						Andrew Kaster