diff options
Diffstat (limited to 'src/content/controllers')
-rw-r--r-- | src/content/controllers/FindController.ts | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/content/controllers/FindController.ts b/src/content/controllers/FindController.ts new file mode 100644 index 0000000..adcdb0d --- /dev/null +++ b/src/content/controllers/FindController.ts @@ -0,0 +1,19 @@ +import { injectable } from "tsyringe"; +import FindUseCase from "../usecases/FindUseCase"; + +@injectable() +export default class FindController { + constructor(private findUseCase: FindUseCase) {} + + findNext(keyword: string): boolean { + return this.findUseCase.findNext(keyword); + } + + findPrev(keyword: string): boolean { + return this.findUseCase.findPrev(keyword); + } + + clearSelection() { + return this.findUseCase.clearSelection(); + } +} |