Add sendToHost method
This commit is contained in:
parent
d46300587a
commit
a8f5a4e2d4
5 changed files with 17 additions and 7 deletions
|
@ -66,8 +66,8 @@ createGuest = (embedder, params) ->
|
|||
guest.on event, (_, args...) ->
|
||||
embedder.send "ATOM_SHELL_GUEST_VIEW_INTERNAL_DISPATCH_EVENT-#{guest.viewInstanceId}", event, args...
|
||||
|
||||
# Dispatch guest's asynchronous IPC messages to embedder.
|
||||
guest.on 'ipc-message', (_, channel, args...) ->
|
||||
# Dispatch guest's IPC messages to embedder.
|
||||
guest.on 'ipc-message-host', (_, channel, args...) ->
|
||||
embedder.send "ATOM_SHELL_GUEST_VIEW_INTERNAL_IPC_MESSAGE-#{guest.viewInstanceId}", channel, args...
|
||||
|
||||
# Autosize.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue