(id: string)
| 733 | } |
| 734 | |
| 735 | activateView(id: string) { |
| 736 | log.log('[main] webcontentsview-activate: activating view with id', id) |
| 737 | |
| 738 | const view = this.views.get(id) |
| 739 | if (!view) { |
| 740 | log.warn('[main] webcontentsview-activate: no view found with id', id) |
| 741 | return false |
| 742 | } |
| 743 | |
| 744 | const success = this.bringViewToFront(view.id) |
| 745 | |
| 746 | this.positionOverlays() |
| 747 | |
| 748 | view.focus() |
| 749 | return success |
| 750 | } |
| 751 | |
| 752 | showActiveView(id?: string) { |
| 753 | const activeViewId = id || this.activeViewId |
no test coverage detected