1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:38:12 +00:00

LibWeb: Use WebIDL types where possible instead of C types

This commit is contained in:
Bastiaan van der Plaat 2024-02-26 18:54:36 +01:00 committed by Sam Atkins
parent f1d6693990
commit c41b359ca5
13 changed files with 32 additions and 24 deletions

View file

@ -6,12 +6,14 @@
#pragma once
#include <LibWeb/WebIDL/Types.h>
namespace Web::HTML {
class NavigatorConcurrentHardwareMixin {
public:
// https://html.spec.whatwg.org/multipage/workers.html#dom-navigator-hardwareconcurrency
unsigned long long hardware_concurrency() { return 1; }
WebIDL::UnsignedLongLong hardware_concurrency() { return 1; }
};
}