UNPKG

@sussudio/platform

Version:

Internal APIs for VS Code's service injection the base services.

39 lines (37 loc) 1.41 kB
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ import { Disposable } from '@sussudio/base/common/lifecycle.mjs'; import { FoundInFrameResult, IWebviewManagerService, WebviewWebContentsId, WebviewWindowId, } from '../common/webviewManagerService.mjs'; import { IWindowsMainService } from '../../windows/electron-main/windows.mjs'; export declare class WebviewMainService extends Disposable implements IWebviewManagerService { private readonly windowsMainService; readonly _serviceBrand: undefined; private readonly _onFoundInFrame; onFoundInFrame: import('@sussudio/base/common/event.mjs').Event<FoundInFrameResult>; constructor(windowsMainService: IWindowsMainService); setIgnoreMenuShortcuts(id: WebviewWebContentsId | WebviewWindowId, enabled: boolean): Promise<void>; findInFrame( windowId: WebviewWindowId, frameName: string, text: string, options: { findNext?: boolean; forward?: boolean; }, ): Promise<void>; stopFindInFrame( windowId: WebviewWindowId, frameName: string, options: { keepSelection?: boolean; }, ): Promise<void>; private getFrameByName; }