(webContentsId: number)
| 657 | } |
| 658 | |
| 659 | export function getWaveWindowByWebContentsId(webContentsId: number): WaveBrowserWindow { |
| 660 | if (webContentsId == null) { |
| 661 | return null; |
| 662 | } |
| 663 | const tabView = getWaveTabViewByWebContentsId(webContentsId); |
| 664 | if (tabView == null) { |
| 665 | return null; |
| 666 | } |
| 667 | return getWaveWindowByTabId(tabView.waveTabId); |
| 668 | } |
| 669 | |
| 670 | export function getWaveWindowById(windowId: string): WaveBrowserWindow { |
| 671 | return waveWindowMap.get(windowId); |
no test coverage detected