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

@ -129,3 +129,8 @@ exports.createFunctionWithReturnValue = (returnValue) ->
func = -> returnValue
v8Util.setHiddenValue func, 'returnValue', true
func
# Get the guest WebContents from guestInstanceId.
exports.getGuestWebContents = (guestInstanceId) ->
meta = ipc.sendChannelSync 'ATOM_BROWSER_GUEST_WEB_CONTENTS', guestInstanceId
metaToValue meta