let EventList = [
'newListener', // A listener is added via on() or addListener()
'removeListener', // A listener is removed via off() or removeListener()
- 'lcPrelaunch', // An app is at just before launching
- 'lcResume', // An app is resumed
- 'lcSuspend', // An app is suspended
- 'lcQuit', // An app is quitted
- 'hwDownkey', // Down key is pressed
- 'hwUpkey' // Up key is pressed
+ 'lcPrelaunch', // An app is at just before launching
+ 'lcResume', // An app is resumed
+ 'lcSuspend', // An app is suspended
+ 'lcQuit', // An app is quitted
+ 'hwDownkey', // Down key is pressed
+ 'hwUpkey', // Up key is pressed
+ 'contentDidFinishLoad' // The navigation is done and 'onload' was dispatched
];
Object.freeze(EventList);
_this.addonManager.isAddonAvailable();
options.launchMode = launchMode;
_this.webApplication = new WebApplication(options);
+ _this.webApplication.addonEmitter =
+ _this.addonManager.evt_emitter_;
_this.inspectorEnabledByVconf = wrt.needUseInspector();
if (_this.inspectorEnabledByVconf && launchMode != 'backgroundExecution') {
_this.webApplication.inspectorSrc = src;
this.defaultBackgroundColor = (this.isTVProfile
|| (wrt.getPlatformType() === "product_wearable") ? '#000' : '#FFF');
this.defaultTransparent = (this.isTVProfile ? true : false);
+ this.addonEmitter = null;
let self = this;
app.on('browser-window-created', function(event, window) {
self.suspendByStatus();
}
}
+ self.addonEmitter.emit('contentDidFinishLoad', self.mainWindow.id);
});
}
suspendByStatus() {