This repository has been archived on 2020-04-04. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
Vim-Vixen/src/content/usecases/NavigateUseCase.ts
2019-05-24 21:51:18 +09:00

27 lines
598 B
TypeScript

import { injectable, inject } from 'tsyringe';
import NavigationPresenter from '../presenters/NavigationPresenter';
@injectable()
export default class NavigateUseCase {
constructor(
@inject('NavigationPresenter')
private navigationPresenter: NavigationPresenter,
) {
}
openHistoryPrev(): void {
this.navigationPresenter.openHistoryPrev();
}
openHistoryNext(): void {
this.navigationPresenter.openHistoryNext();
}
openLinkPrev(): void {
this.navigationPresenter.openLinkPrev();
}
openLinkNext(): void {
this.navigationPresenter.openLinkNext();
}
}