mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 04:52:06 +02:00
LibWeb: Rename HighResolutionTime/{CoarsenTime => TimeOrigin}.cpp/h
This is being used for more than just time coarsening now, so let's use the spec's section title for the name.
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 07:19:27 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/32ad939e44 Pull-request: https://github.com/SerenityOS/serenity/pull/15477
18
Userland/Libraries/LibWeb/HighResolutionTime/TimeOrigin.h
Normal file
18
Userland/Libraries/LibWeb/HighResolutionTime/TimeOrigin.h
Normal file
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
* Copyright (c) 2022, Andreas Kling <kling@serenityos.org>
|
||||
* Copyright (c) 2022, Linus Groh <linusg@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <LibWeb/HighResolutionTime/DOMHighResTimeStamp.h>
|
||||
|
||||
namespace Web::HighResolutionTime {
|
||||
|
||||
DOMHighResTimeStamp coarsen_time(DOMHighResTimeStamp timestamp, bool cross_origin_isolated_capability = false);
|
||||
DOMHighResTimeStamp coarsened_shared_current_time(bool cross_origin_isolated_capability = false);
|
||||
DOMHighResTimeStamp unsafe_shared_current_time();
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user