2014-10-23 09:54:52 +00:00
|
|
|
ipc = require 'ipc'
|
|
|
|
|
|
|
|
requestId = 0
|
|
|
|
|
|
|
|
module.exports =
|
|
|
|
createGuest: (type, params, callback) ->
|
|
|
|
requestId++
|
|
|
|
ipc.send 'ATOM_SHELL_GUEST_VIEW_MANAGER_CREATE_GUEST', type, params, requestId
|
|
|
|
ipc.on "ATOM_SHELL_RESPONSE_#{requestId}", callback
|
|
|
|
|
|
|
|
destroyGuest: (guestInstanceId) ->
|
|
|
|
ipc.send 'ATOM_SHELL_GUEST_VIEW_MANAGER_DESTROY_GUEST', guestInstanceId
|
2014-10-24 06:37:14 +00:00
|
|
|
|
|
|
|
setAutoSize: (guestInstanceId, params) ->
|
|
|
|
ipc.send 'ATOM_SHELL_GUEST_VIEW_MANAGER_SET_AUTO_SIZE', guestInstanceId, params
|