diff options
Diffstat (limited to 'src/background/usecases')
-rw-r--r-- | src/background/usecases/ConsoleUseCase.ts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/background/usecases/ConsoleUseCase.ts b/src/background/usecases/ConsoleUseCase.ts new file mode 100644 index 0000000..7b461e5 --- /dev/null +++ b/src/background/usecases/ConsoleUseCase.ts @@ -0,0 +1,14 @@ +import { inject, injectable } from "tsyringe"; +import ConsoleFrameClient from "../clients/ConsoleFrameClient"; + +@injectable() +export default class ConsoleUseCase { + constructor( + @inject("ConsoleFrameClient") + private readonly consoleFrameClient: ConsoleFrameClient + ) {} + + async resize(tabId: number, width: number, height: number): Promise<void> { + return this.consoleFrameClient.resize(tabId, width, height); + } +} |