A fork of https://github.com/ueokande/vim-vixen
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
484 B
20 lines
484 B
import { injectable } from 'tsyringe'; |
|
import LinkUseCase from '../usecases/LinkUseCase'; |
|
|
|
@injectable() |
|
export default class LinkController { |
|
constructor( |
|
private linkUseCase: LinkUseCase, |
|
) { |
|
} |
|
|
|
openToTab(url: string, tabId: number): Promise<void> { |
|
return this.linkUseCase.openToTab(url, tabId); |
|
} |
|
|
|
openNewTab( |
|
url: string, openerId: number, background: boolean, |
|
): Promise<void> { |
|
return this.linkUseCase.openNewTab(url, openerId, background); |
|
} |
|
}
|
|
|