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/background/usecases/LinkUseCase.js
2019-02-24 21:58:12 +09:00

19 lines
505 B
JavaScript

import SettingRepository from '../repositories/SettingRepository';
import TabPresenter from '../presenters/TabPresenter';
export default class LinkUseCase {
constructor() {
this.settingRepository = new SettingRepository();
this.tabPresenter = new TabPresenter();
}
openToTab(url, tabId) {
return this.tabPresenter.open(url, tabId);
}
openNewTab(url, openerId, background) {
return this.tabPresenter.create(url, {
openerTabId: openerId, active: !background
});
}
}