aboutsummaryrefslogtreecommitdiff
path: root/src/background/usecases
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2020-12-03 23:13:08 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2020-12-09 23:09:34 +0900
commit7305bc1c34ceced31db943c8f23ed826d3d522f0 (patch)
tree2cbff97942a6a7e628fa377d6be13e1f90757bf3 /src/background/usecases
parent781b26a961603141af9365bb85d582569331d52f (diff)
Make WindowPresenter interface
Diffstat (limited to 'src/background/usecases')
-rw-r--r--src/background/usecases/CommandUseCase.ts3
-rw-r--r--src/background/usecases/TabUseCase.ts1
2 files changed, 3 insertions, 1 deletions
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<browser.windows.Window> {
+ async winopen(keywords: string): Promise<void> {
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