MCPcopy Create free account
hub / github.com/deta/surf / activateView

Method activateView

app/src/main/viewManager.ts:735–750  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

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

Callers 2

showActiveViewMethod · 0.95
attachIPCEventsMethod · 0.95

Calls 6

bringViewToFrontMethod · 0.95
positionOverlaysMethod · 0.95
logMethod · 0.80
warnMethod · 0.80
getMethod · 0.65
focusMethod · 0.45

Tested by

no test coverage detected