mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:07:46 +00:00
LibWeb: Move WebSocket into the Web::WebSockets namespace
WebSockets got moved from the HTML standard to their own, the new WebSockets Standard (https://websockets.spec.whatwg.org). Move the IDL file and implementation into a new WebSockets directory and C++ namespace accordingly.
This commit is contained in:
parent
c001e3f2fd
commit
fb1dca2c4b
7 changed files with 34 additions and 28 deletions
|
@ -2370,6 +2370,8 @@ void generate_constructor_implementation(IDL::Interface const& interface)
|
|||
# include <LibWeb/SVG/@name@.h>
|
||||
#elif __has_include(<LibWeb/Selection/@name@.h>)
|
||||
# include <LibWeb/Selection/@name@.h>
|
||||
#elif __has_include(<LibWeb/WebSockets/@name@.h>)
|
||||
# include <LibWeb/WebSockets/@name@.h>
|
||||
#elif __has_include(<LibWeb/XHR/@name@.h>)
|
||||
# include <LibWeb/XHR/@name@.h>
|
||||
#elif __has_include(<LibWeb/URL/@name@.h>)
|
||||
|
@ -2648,8 +2650,9 @@ using namespace Web::NavigationTiming;
|
|||
using namespace Web::RequestIdleCallback;
|
||||
using namespace Web::ResizeObserver;
|
||||
using namespace Web::Selection;
|
||||
using namespace Web::XHR;
|
||||
using namespace Web::URL;
|
||||
using namespace Web::WebSockets;
|
||||
using namespace Web::XHR;
|
||||
|
||||
namespace Web::Bindings {
|
||||
|
||||
|
|
|
@ -85,7 +85,7 @@ int main(int argc, char** argv)
|
|||
|
||||
auto interface = IDL::Parser(path, data, import_base_path).parse();
|
||||
|
||||
if (namespace_.is_one_of("Crypto", "CSS", "DOM", "Encoding", "HTML", "UIEvents", "Geometry", "HighResolutionTime", "IntersectionObserver", "NavigationTiming", "RequestIdleCallback", "ResizeObserver", "SVG", "Selection", "XHR", "URL")) {
|
||||
if (namespace_.is_one_of("Crypto", "CSS", "DOM", "Encoding", "HTML", "UIEvents", "Geometry", "HighResolutionTime", "IntersectionObserver", "NavigationTiming", "RequestIdleCallback", "ResizeObserver", "SVG", "Selection", "URL", "WebSockets", "XHR")) {
|
||||
StringBuilder builder;
|
||||
builder.append(namespace_);
|
||||
builder.append("::");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue