Ariver
2026-06-12 9c898b0ca61c090e5e327f750f6c73e28475e10b
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