comparison Platforms/Wasm/wasm-application-runner.ts @ 435:e641d3978856 am-vsol-upgrade

WasmWebService now using BaseWebService and supporting cache
author am@osimis.io
date Tue, 04 Dec 2018 11:52:43 +0100
parents 26b90b110719
children 5055031f4a06
comparison
equal deleted inserted replaced
434:3a8bcc45c221 435:e641d3978856
8 declare var StoneFrameworkModule : Stone.Framework; 8 declare var StoneFrameworkModule : Stone.Framework;
9 9
10 // global functions 10 // global functions
11 var WasmWebService_NotifyError: Function = null; 11 var WasmWebService_NotifyError: Function = null;
12 var WasmWebService_NotifySuccess: Function = null; 12 var WasmWebService_NotifySuccess: Function = null;
13 var WasmWebService_NotifyCachedSuccess: Function = null;
13 var WasmDelayedCallExecutor_ExecuteCallback: Function = null; 14 var WasmDelayedCallExecutor_ExecuteCallback: Function = null;
14 var WasmDoAnimation: Function = null; 15 var WasmDoAnimation: Function = null;
15 var SetStartupParameter: Function = null; 16 var SetStartupParameter: Function = null;
16 var CreateWasmApplication: Function = null; 17 var CreateWasmApplication: Function = null;
17 var CreateCppViewport: Function = null; 18 var CreateCppViewport: Function = null;
90 CreateWasmApplication = StoneFrameworkModule.cwrap('CreateWasmApplication', null, ['number']); 91 CreateWasmApplication = StoneFrameworkModule.cwrap('CreateWasmApplication', null, ['number']);
91 CreateCppViewport = StoneFrameworkModule.cwrap('CreateCppViewport', 'number', []); 92 CreateCppViewport = StoneFrameworkModule.cwrap('CreateCppViewport', 'number', []);
92 ReleaseCppViewport = StoneFrameworkModule.cwrap('ReleaseCppViewport', null, ['number']); 93 ReleaseCppViewport = StoneFrameworkModule.cwrap('ReleaseCppViewport', null, ['number']);
93 StartWasmApplication = StoneFrameworkModule.cwrap('StartWasmApplication', null, ['string']); 94 StartWasmApplication = StoneFrameworkModule.cwrap('StartWasmApplication', null, ['string']);
94 95
96 WasmWebService_NotifyCachedSuccess = StoneFrameworkModule.cwrap('WasmWebService_NotifyCachedSuccess', null, ['number']);
95 WasmWebService_NotifySuccess = StoneFrameworkModule.cwrap('WasmWebService_NotifySuccess', null, ['number', 'string', 'array', 'number', 'number']); 97 WasmWebService_NotifySuccess = StoneFrameworkModule.cwrap('WasmWebService_NotifySuccess', null, ['number', 'string', 'array', 'number', 'number']);
96 WasmWebService_NotifyError = StoneFrameworkModule.cwrap('WasmWebService_NotifyError', null, ['number', 'string', 'number']); 98 WasmWebService_NotifyError = StoneFrameworkModule.cwrap('WasmWebService_NotifyError', null, ['number', 'string', 'number']);
97 WasmDelayedCallExecutor_ExecuteCallback = StoneFrameworkModule.cwrap('WasmDelayedCallExecutor_ExecuteCallback', null, ['number']); 99 WasmDelayedCallExecutor_ExecuteCallback = StoneFrameworkModule.cwrap('WasmDelayedCallExecutor_ExecuteCallback', null, ['number']);
98 WasmDoAnimation = StoneFrameworkModule.cwrap('WasmDoAnimation', null, []); 100 WasmDoAnimation = StoneFrameworkModule.cwrap('WasmDoAnimation', null, []);
99 101