sussudio
Version:
An unofficial VS Code Internal API
24 lines (23 loc) • 1.43 kB
text/typescript
/*---------------------------------------------------------------------------------------------
* 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 "../../../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("../../../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;
}