blob: 38d3409face828ca4fc321c976e5b5e06eeea5de (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import { injectable } from "tsyringe";
import ConsoleFrameUseCase from "../usecases/ConsoleFrameUseCase";
import * as messages from "../../shared/messages";
@injectable()
export default class ConsoleFrameController {
constructor(private consoleFrameUseCase: ConsoleFrameUseCase) {}
unfocus(_message: messages.Message) {
this.consoleFrameUseCase.unfocus();
}
resize(message: messages.ConsoleResizeMessage) {
this.consoleFrameUseCase.resize(message.width, message.height);
}
}
|