From 7305bc1c34ceced31db943c8f23ed826d3d522f0 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Thu, 3 Dec 2020 23:13:08 +0900 Subject: Make WindowPresenter interface --- src/background/usecases/CommandUseCase.ts | 3 ++- src/background/usecases/TabUseCase.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src/background/usecases') diff --git a/src/background/usecases/CommandUseCase.ts b/src/background/usecases/CommandUseCase.ts index 69ef3ea..cadcad1 100644 --- a/src/background/usecases/CommandUseCase.ts +++ b/src/background/usecases/CommandUseCase.ts @@ -16,6 +16,7 @@ export default class CommandIndicator { constructor( @inject("TabPresenter") private readonly tabPresenter: TabPresenter, + @inject("WindowPresenter") private readonly windowPresenter: WindowPresenter, private readonly helpPresenter: HelpPresenter, @inject("CachedSettingRepository") @@ -46,7 +47,7 @@ export default class CommandIndicator { return this.tabPresenter.create(url); } - async winopen(keywords: string): Promise { + async winopen(keywords: string): Promise { const url = await this.urlOrSearch(keywords); this.repeatUseCase.storeLastOperation({ type: operations.INTERNAL_OPEN_URL, diff --git a/src/background/usecases/TabUseCase.ts b/src/background/usecases/TabUseCase.ts index 900c305..be01032 100644 --- a/src/background/usecases/TabUseCase.ts +++ b/src/background/usecases/TabUseCase.ts @@ -8,6 +8,7 @@ export default class TabUseCase { constructor( @inject("TabPresenter") private readonly tabPresenter: TabPresenter, + @inject("WindowPresenter") private readonly windowPresenter: WindowPresenter, @inject("BrowserSettingRepository") private readonly browserSettingRepository: BrowserSettingRepository -- cgit v1.2.3