Add remote.getCurrentWindow() API in renderer.

This commit is contained in:
Cheng Zhao 2013-04-27 19:06:41 +08:00
parent 51db9494bd
commit 99f6a5678a
3 changed files with 24 additions and 0 deletions

View file

@ -62,3 +62,8 @@ exports.require = (module) ->
exports.getObject = (id) ->
meta = ipc.sendChannelSync 'ATOM_INTERNAL_REFERENCE', id
metaToValue meta
# Get current window object.
exports.getCurrentWindow = ->
meta = ipc.sendChannelSync 'ATOM_INTERNAL_CURRENT_WINDOW'
metaToValue meta