aboutsummaryrefslogtreecommitdiffstats
path: root/components/compositing/windowing.rs
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2025-04-16 18:58:52 +0200
committerGitHub <noreply@github.com>2025-04-16 16:58:52 +0000
commitd8a7abda69dc2e03a845cb053c28764babd5b9de (patch)
treebb15a30aa8729eda1feaeec4ea9a9d7294020be7 /components/compositing/windowing.rs
parent7a8e75266ff2c138f212a301de9774eafb2b3143 (diff)
downloadservo-d8a7abda69dc2e03a845cb053c28764babd5b9de.tar.gz
servo-d8a7abda69dc2e03a845cb053c28764babd5b9de.zip
libservo: Expose a `ServoBuilder` (#36549)
Expose a `ServoBuilder` for easily creating Servo instances using default values. This change enables removing `EmbedderTraits`. Testing: This is covered by `Servo` unit tests. Signed-off-by: Martin Robinson <mrobinson@igalia.com> Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Diffstat (limited to 'components/compositing/windowing.rs')
-rw-r--r--components/compositing/windowing.rs25
1 files changed, 0 insertions, 25 deletions
diff --git a/components/compositing/windowing.rs b/components/compositing/windowing.rs
index b35fed5288a..e047e54b276 100644
--- a/components/compositing/windowing.rs
+++ b/components/compositing/windowing.rs
@@ -2,11 +2,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
-//! Abstract windowing methods. The concrete implementations of these can be found in `platform/`.
-
-use embedder_traits::EventLoopWaker;
-use net::protocols::ProtocolRegistry;
-
/// Various debug and profiling flags that WebRender supports.
#[derive(Clone)]
pub enum WebRenderDebugOption {
@@ -14,23 +9,3 @@ pub enum WebRenderDebugOption {
TextureCacheDebug,
RenderTargetDebug,
}
-
-pub trait EmbedderMethods {
- /// Returns a thread-safe object to wake up the window's event loop.
- fn create_event_loop_waker(&mut self) -> Box<dyn EventLoopWaker>;
-
- #[cfg(feature = "webxr")]
- /// Register services with a WebXR Registry.
- fn register_webxr(
- &mut self,
- _: &mut webxr::MainThreadRegistry,
- _: embedder_traits::EmbedderProxy,
- ) {
- }
-
- /// Returns the protocol handlers implemented by that embedder.
- /// They will be merged with the default internal ones.
- fn get_protocol_handlers(&self) -> ProtocolRegistry {
- ProtocolRegistry::default()
- }
-}