Ariver
2026-06-11 72219babd9bf0a4ce6fc26af91ee969a8705f053
C1.source/Sources/AlignerCore/Protocols/ServiceProtocols.swift
@@ -70,6 +70,19 @@
    func activate(window: AlignerWindow) throws -> WindowActivationResult
}
public enum WindowCloseResult: Equatable, Sendable {
    case requested
    case windowNotFound
    case appNotFound
    case unsupported
    case failed(String)
}
public protocol WindowCloseServiceProtocol: AnyObject {
    func close(window: AlignerWindow) throws -> WindowCloseResult
    func close(app: AlignerApp) throws -> WindowCloseResult
}
@MainActor
public protocol ScreenshotProviderProtocol {
    func screenshot(for window: AlignerWindow) async throws -> NSImage