aboutsummaryrefslogtreecommitdiff
path: root/src/content/usecases
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/usecases')
-rw-r--r--src/content/usecases/ConsoleFrameUseCase.ts17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/content/usecases/ConsoleFrameUseCase.ts b/src/content/usecases/ConsoleFrameUseCase.ts
new file mode 100644
index 0000000..b4c756c
--- /dev/null
+++ b/src/content/usecases/ConsoleFrameUseCase.ts
@@ -0,0 +1,17 @@
+import ConsoleFramePresenter, { ConsoleFramePresenterImpl }
+ from '../presenters/ConsoleFramePresenter';
+
+export default class ConsoleFrameUseCase {
+ private consoleFramePresenter: ConsoleFramePresenter;
+
+ constructor({
+ consoleFramePresenter = new ConsoleFramePresenterImpl(),
+ } = {}) {
+ this.consoleFramePresenter = consoleFramePresenter;
+ }
+
+ unfocus() {
+ window.focus();
+ this.consoleFramePresenter.blur();
+ }
+}