comparison Platforms/Wasm/Defaults.h @ 307:be2660b6e40a am-callable-and-promise

wip: commands + status update
author am@osimis.io
date Tue, 25 Sep 2018 15:14:53 +0200
parents 8c8da145fefa
children 6cc3ce74dc05
comparison
equal deleted inserted replaced
304:6c22e0506587 307:be2660b6e40a
5 #include <Framework/dev.h> 5 #include <Framework/dev.h>
6 #include <Framework/Viewport/WidgetViewport.h> 6 #include <Framework/Viewport/WidgetViewport.h>
7 #include <Framework/Widgets/LayerWidget.h> 7 #include <Framework/Widgets/LayerWidget.h>
8 #include <Framework/Widgets/LayoutWidget.h> 8 #include <Framework/Widgets/LayoutWidget.h>
9 #include <Applications/IStoneApplication.h> 9 #include <Applications/IStoneApplication.h>
10 #include <Platforms/Wasm/WasmPlatformApplicationAdapter.h>
10 11
11 typedef OrthancStone::WidgetViewport* ViewportHandle; // the objects exchanged between JS and C++ 12 typedef OrthancStone::WidgetViewport* ViewportHandle; // the objects exchanged between JS and C++
12 13
13 #ifdef __cplusplus 14 #ifdef __cplusplus
14 extern "C" { 15 extern "C" {
25 26
26 #ifdef __cplusplus 27 #ifdef __cplusplus
27 } 28 }
28 #endif 29 #endif
29 30
31 // these methods must be implemented in the custom app "mainWasm.cpp"
30 extern OrthancStone::IStoneApplication* CreateUserApplication(OrthancStone::MessageBroker& broker); 32 extern OrthancStone::IStoneApplication* CreateUserApplication(OrthancStone::MessageBroker& broker);
33 extern OrthancStone::WasmPlatformApplicationAdapter* CreateWasmApplicationAdapter(OrthancStone::MessageBroker& broker, OrthancStone::IStoneApplication* application);
31 34
32 namespace OrthancStone { 35 namespace OrthancStone {
33 36
34 // default Observer to trigger Viewport redraw when something changes in the Viewport 37 // default Observer to trigger Viewport redraw when something changes in the Viewport
35 class ViewportContentChangedObserver : 38 class ViewportContentChangedObserver :