aboutsummaryrefslogtreecommitdiff
path: root/src/content/controllers/ConsoleFrameController.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/controllers/ConsoleFrameController.ts')
-rw-r--r--src/content/controllers/ConsoleFrameController.ts16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/content/controllers/ConsoleFrameController.ts b/src/content/controllers/ConsoleFrameController.ts
new file mode 100644
index 0000000..fafadf4
--- /dev/null
+++ b/src/content/controllers/ConsoleFrameController.ts
@@ -0,0 +1,16 @@
+import ConsoleFrameUseCase from '../usecases/ConsoleFrameUseCase';
+import * as messages from '../../shared/messages';
+
+export default class ConsoleFrameController {
+ private consoleFrameUseCase: ConsoleFrameUseCase;
+
+ constructor({
+ consoleFrameUseCase = new ConsoleFrameUseCase(),
+ } = {}) {
+ this.consoleFrameUseCase = consoleFrameUseCase;
+ }
+
+ unfocus(_message: messages.Message) {
+ this.consoleFrameUseCase.unfocus();
+ }
+}