aboutsummaryrefslogtreecommitdiff
path: root/src/content/usecases/ConsoleFrameUseCase.ts
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2019-05-19 10:50:49 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2019-05-19 10:50:49 +0900
commitc81b82ee39cc05d06597e7cd024de448894efe43 (patch)
tree269611c57413e1795250bc743e4571e469682426 /src/content/usecases/ConsoleFrameUseCase.ts
parent4be04628e19392d8da9688d538cc3374e91005d8 (diff)
Make routes
Diffstat (limited to 'src/content/usecases/ConsoleFrameUseCase.ts')
-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();
+ }
+}