Open link as Clean Architecture

This commit is contained in:
Shin'ya Ueoka 2018-07-22 17:09:14 +09:00
parent 42d902982a
commit 0846587baf
5 changed files with 73 additions and 12 deletions

View file

@ -0,0 +1,15 @@
import LinkInteractor from '../usecases/link';
export default class LinkController {
constructor() {
this.linkInteractor = new LinkInteractor();
}
openToTab(url, tabId) {
this.linkInteractor.openToTab(url, tabId);
}
openNewTab(url, openerId, background) {
this.linkInteractor.openNewTab(url, openerId, background);
}
}