Upgrade wrt for electron v1.6.7 96/147496/7
authorYoungsoo Choi <kenshin.choi@samsung.com>
Mon, 4 Sep 2017 13:06:49 +0000 (22:06 +0900)
committerSungsik Han <ss440.han@samsung.com>
Tue, 12 Sep 2017 04:48:53 +0000 (04:48 +0000)
commit8d609641cbdf7fdf5782a8591feb464e191b4f3f
treef5d6c612a1a7aee91a33ca6c9ea9ed0c37a9ce2a
parentbd9342189dd01512b8cfe0cd2f3c32f57df84e6e
Upgrade wrt for electron v1.6.7

The wrt was built on electron v0.35.4 and
the electron has been upgraded to v1.6.7.

There are following differences between them.
This upgrades the changed APIs for electron v1.6.7.

1) requiring electron module

The usage of electron module has been changed.
For instance, |const app = require('app')| is changed to
|const {app} = require('electron')|.

2) ipc usage

The ipc has been separated to ipcMain and ipcRenderer.
The related changes are applied by this.

Also, this revises the message types as ipc_message or was_event.
The ipc_message communicates between different processes
but was_event communicates in same process.

Change-Id: I8e6467a7721d9b715c918ccb179a3fe461ddbea4
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
20 files changed:
wrt/build/test/runtime/js/renderer-process/unittest.runtime.web_application.js
wrt/src/chromium/app.js
wrt/src/chromium/browserwindow.js
wrt/src/chromium/events.js [new file with mode: 0644]
wrt/src/chromium/ipc.js [deleted file]
wrt/src/common/events.js [new file with mode: 0644]
wrt/src/default_value.js
wrt/src/event_define.js [deleted file]
wrt/src/extension_manager.js
wrt/src/ipc_message.js
wrt/src/main.js
wrt/src/manager.js
wrt/src/runtime.js
wrt/src/was_event.js [new file with mode: 0644]
wrt/src/web_application.js
wrt/src/web_window.js
wrt/src/web_window_tag.js
wrt/static/web_window.html
wrt/static/web_window.js
wrt/static_hosted/web_window.js