/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/'use strict';import{ContextMenuHandler}from'./contextMenuHandler';import{IContextViewService,IContextMenuService,IContextViewDelegate,IContextMenuDelegate}from'./contextView';import{ContextView}from'vs/base/browser/ui/contextview/contextview';import{ITelemetryService}from'vs/platform/telemetry/common/telemetry';import{IMessageService}from'vs/platform/message/common/message';exportclassContextMenuServiceimplementsIContextMenuService{publicserviceId=IContextMenuService;privatecontextMenuHandler:ContextMenuHandler;constructor(container:HTMLElement,telemetryService:ITelemetryService,messageService:IMessageService,contextViewService:IContextViewService){this.contextMenuHandler=newContextMenuHandler(container,contextViewService,telemetryService,messageService);}publicdispose():void{this.contextMenuHandler.dispose();}publicsetContainer(container:HTMLElement):void{this.contextMenuHandler.setContainer(container);}// ContextMenupublicshowContextMenu(delegate:IContextMenuDelegate):void{this.contextMenuHandler.showContextMenu(delegate);}}