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