aboutsummaryrefslogtreecommitdiff
path: root/src/content/usecases/ConsoleFrameUseCase.ts
blob: b4c756cdec807bf612479c58d330b424b58a4b81 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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();
  }
}