From c3be3dde555d1f51f696f4bfbe181e7bad6d3563 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Sun, 29 Mar 2020 21:47:09 +0900 Subject: Complete properties on set command --- src/background/controllers/CompletionController.ts | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/background/controllers') diff --git a/src/background/controllers/CompletionController.ts b/src/background/controllers/CompletionController.ts index a268d15..fb6137c 100644 --- a/src/background/controllers/CompletionController.ts +++ b/src/background/controllers/CompletionController.ts @@ -1,5 +1,6 @@ import { ConsoleGetCompletionTypesResponse, + ConsoleGetPropertiesResponse, ConsoleRequestBookmarksResponse, ConsoleRequestHistoryResponse, ConsoleRequestSearchEnginesResponse, @@ -8,12 +9,14 @@ import { import { injectable } from "tsyringe"; import OpenCompletionUseCase from "../completion/OpenCompletionUseCase"; import TabCompletionUseCase from "../completion/TabCompletionUseCase"; +import PropertyCompletionUseCase from "../completion/PropertyCompletionUseCase"; @injectable() export default class CompletionController { constructor( private completionUseCase: OpenCompletionUseCase, private tabCompletionUseCase: TabCompletionUseCase, + private propertyCompletionUseCase: PropertyCompletionUseCase, ) { } @@ -37,4 +40,8 @@ export default class CompletionController { async queryTabs(query: string, excludePinned: boolean): Promise { return this.tabCompletionUseCase.queryTabs(query, excludePinned); } + + async getProperties(): Promise { + return this.propertyCompletionUseCase.getProperties(); + } } \ No newline at end of file -- cgit v1.2.3