Add remote.getGuestWebContents

This commit is contained in:
Cheng Zhao 2014-10-24 19:57:29 +08:00
parent c0955eaa90
commit e95c1256a0
4 changed files with 18 additions and 2 deletions

View file

@ -54,3 +54,7 @@ ipc.on 'ATOM_SHELL_GUEST_VIEW_MANAGER_SET_AUTO_SIZE', (event, id, params) ->
ipc.on 'ATOM_SHELL_GUEST_VIEW_MANAGER_SET_ALLOW_TRANSPARENCY', (event, id, allowtransparency) ->
guestInstances[id]?.setAllowTransparency allowtransparency
# Returns WebContents from its guest id.
exports.getGuest = (id) ->
guestInstances[id]