1 | import { IpcMainEvent, WebContents } from '@theia/electron/shared/electron';
|
2 | import { ContributionProvider } from '../../common/contribution-provider';
|
3 | import { MessagingContribution } from '../../node/messaging/messaging-contribution';
|
4 | import { ElectronConnectionHandler } from '../../electron-common/messaging/electron-connection-handler';
|
5 | import { ElectronMainApplicationContribution } from '../electron-main-application';
|
6 | import { ElectronMessagingService } from './electron-messaging-service';
|
7 | import { AbstractChannel, Channel, ChannelMultiplexer, MessageProvider } from '../../common/message-rpc/channel';
|
8 | import { Emitter, WriteBuffer } from '../../common';
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 | export declare class ElectronMessagingContribution implements ElectronMainApplicationContribution, ElectronMessagingService {
|
17 | protected readonly messagingContributions: ContributionProvider<ElectronMessagingService.Contribution>;
|
18 | protected readonly connectionHandlers: ContributionProvider<ElectronConnectionHandler>;
|
19 | protected readonly channelHandlers: MessagingContribution.ConnectionHandlers<Channel>;
|
20 | |
21 |
|
22 |
|
23 | protected readonly windowChannelMultiplexer: Map<number, {
|
24 | channel: ElectronWebContentChannel;
|
25 | multiplexer: ChannelMultiplexer;
|
26 | }>;
|
27 | protected init(): void;
|
28 | protected handleIpcEvent(event: IpcMainEvent, data: Uint8Array): void;
|
29 | protected createWindowChannelData(sender: Electron.WebContents): {
|
30 | channel: ElectronWebContentChannel;
|
31 | multiplexer: ChannelMultiplexer;
|
32 | };
|
33 | |
34 |
|
35 |
|
36 |
|
37 | protected createWindowMainChannel(sender: WebContents): ElectronWebContentChannel;
|
38 | protected disposeMultiplexer(windowId: number, multiplexer: ChannelMultiplexer, reason: string): void;
|
39 | onStart(): void;
|
40 | ipcChannel(spec: string, callback: (params: any, channel: Channel) => void): void;
|
41 | }
|
42 |
|
43 |
|
44 |
|
45 |
|
46 | export declare class ElectronWebContentChannel extends AbstractChannel {
|
47 | protected readonly sender: Electron.WebContents;
|
48 | readonly onMessageEmitter: Emitter<MessageProvider>;
|
49 | constructor(sender: Electron.WebContents);
|
50 | getWriteBuffer(): WriteBuffer;
|
51 | }
|
52 | //# sourceMappingURL=electron-messaging-contribution.d.ts.map |
\ | No newline at end of file |