Initial code to handle lifecycles and events in addons 77/208877/3
authorhyunduk.kim <hyunduk.kim@samsung.com>
Mon, 1 Jul 2019 05:18:21 +0000 (22:18 -0700)
committerhyunduk.kim <hyunduk.kim@samsung.com>
Wed, 3 Jul 2019 01:25:41 +0000 (18:25 -0700)
commit60e67fd0666d6d539f49583545b5e6e943fab7bd
treee4a08b135913b2beefe340fbb64236123a17090a
parentfdcb396fe38bc64dcda7cf8700b4e4962c642017
Initial code to handle lifecycles and events in addons

This provides the invocation of predefined methods for lifecycles and events
 - prelanuch : invoking prelaunch() in an addon when app-control is emitted
 - suspend : invoking suspend() in an addon when suspend is emitted
 - resume : invoking resume() in an addon when resume is emitted
 - quit : invoking quit() in an addon when before-quit is emitted
 - arrowup : invoking arrowup() in an addon when arrowup is pressed
 - arrowdown : invoking arrowdown() in an addon when arrowdown is pressed

It's only an initial code and focused on the logic to call each method.

Change-Id: I04c5976dd88fabb2ccdfcf96e0d444ed296acbe4
Signed-off-by: hyunduk.kim <hyunduk.kim@samsung.com>
wrt_app/src/addon_manager.js
wrt_app/src/runtime.js
wrt_app/src/web_application.js