diff options
Diffstat (limited to 'src/background/usecases/FindUseCase.js')
-rw-r--r-- | src/background/usecases/FindUseCase.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/background/usecases/FindUseCase.js b/src/background/usecases/FindUseCase.js index d6b0323..224e4a9 100644 --- a/src/background/usecases/FindUseCase.js +++ b/src/background/usecases/FindUseCase.js @@ -1,8 +1,12 @@ import FindRepository from '../repositories/FindRepository'; +import TabPresenter from '../presenters/TabPresenter'; +import ConsoleClient from '../infrastructures/ConsoleClient'; export default class FindUseCase { constructor() { + this.tabPresenter = new TabPresenter(); this.findRepository = new FindRepository(); + this.consoleClient = new ConsoleClient(); } getKeyword() { @@ -12,4 +16,9 @@ export default class FindUseCase { setKeyword(keyword) { return this.findRepository.setKeyword(keyword); } + + async findStart() { + let tab = await this.tabPresenter.getCurrent(); + return this.consoleClient.showFind(tab.id); + } } |