Notify messages to Addon from web engine
Change-Id: Ib4df2dec07faa3e2288734c0c64e1f638f99201a
Signed-off-by: Aron kim <aron.kim@samsung.com>
'lcQuit', // An app is quitted
'hwDownkey', // Down key is pressed
'hwUpkey', // Up key is pressed
- 'contentDidFinishLoad' // The navigation is done and 'onload' was dispatched
+ 'contentDidFinishLoad', // The navigation is done and 'onload' was dispatched
+ 'message'
];
Object.freeze(EventList);
event.preventDefault();
} else if (type === 'hideSplashScreen') {
this.webApplication?.hideSplashScreen(params[0]);
+ } else if (type === 'selectionText') {
+ addonManager.emit('message', type, params[0]);
}
});