Path: blob/main/src/vs/platform/browserElements/common/nativeBrowserElementsService.ts
3296 views
/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/45import { ProxyChannel } from '../../../base/parts/ipc/common/ipc.js';6import { IMainProcessService } from '../../ipc/common/mainProcessService.js';7import { INativeBrowserElementsService } from './browserElements.js';89// @ts-ignore: interface is implemented via proxy10export class NativeBrowserElementsService implements INativeBrowserElementsService {1112declare readonly _serviceBrand: undefined;1314constructor(15readonly windowId: number,16@IMainProcessService mainProcessService: IMainProcessService17) {18return ProxyChannel.toService<INativeBrowserElementsService>(mainProcessService.getChannel('browserElements'), {19context: windowId,20properties: (() => {21const properties = new Map<string, unknown>();22properties.set('windowId', windowId);2324return properties;25})()26});27}28}29303132