changeset 510:97a16b694321 bgo-commands-codegen

Fixes for API changes related to message passing
author Benjamin Golinvaux <bgo@osimis.io>
date Wed, 06 Mar 2019 18:26:35 +0100
parents 1b9973905e15
children 72faa732532b dea3787a8f4b
files Applications/Samples/SimpleViewer/Wasm/simple-viewer.ts Applications/Samples/Web/simple-viewer-single-file.ts Platforms/Wasm/Defaults.cpp
diffstat 3 files changed, 4 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/Applications/Samples/SimpleViewer/Wasm/simple-viewer.ts	Wed Mar 06 10:57:02 2019 +0100
+++ b/Applications/Samples/SimpleViewer/Wasm/simple-viewer.ts	Wed Mar 06 18:26:35 2019 +0100
@@ -9,7 +9,7 @@
     args: {
     }                                                                                                                       
   };
-  wasmApplicationRunner.SendMessageToStoneApplication(JSON.stringify(command));
+  wasmApplicationRunner.SendCommandToStoneApplication(JSON.stringify(command));
 }
 
 function PerformAction(actionName: string) {
@@ -19,7 +19,7 @@
     args: {
     }
   };
-  wasmApplicationRunner.SendMessageToStoneApplication(JSON.stringify(command));
+  wasmApplicationRunner.SendCommandToStoneApplication(JSON.stringify(command));
 }
 
 class SimpleViewerUI {
--- a/Applications/Samples/Web/simple-viewer-single-file.ts	Wed Mar 06 10:57:02 2019 +0100
+++ b/Applications/Samples/Web/simple-viewer-single-file.ts	Wed Mar 06 18:26:35 2019 +0100
@@ -9,7 +9,7 @@
             toolName: toolName
         }
     };
-    wasmApplicationRunner.SendMessageToStoneApplication(JSON.stringify(command));
+    wasmApplicationRunner.SendCommandToStoneApplication(JSON.stringify(command));
 
 }
 
@@ -19,7 +19,7 @@
         commandType: "simple",
         args: {}
     };
-    wasmApplicationRunner.SendMessageToStoneApplication(JSON.stringify(command));
+    wasmApplicationRunner.SendCommandToStoneApplication(JSON.stringify(command));
 }
 
 //initializes the buttons
--- a/Platforms/Wasm/Defaults.cpp	Wed Mar 06 10:57:02 2019 +0100
+++ b/Platforms/Wasm/Defaults.cpp	Wed Mar 06 18:26:35 2019 +0100
@@ -350,7 +350,6 @@
     printf("%s", message);
 
     if (applicationWasmAdapter.get() != NULL) {
-      printf("sending serialized message to C++\n");
       applicationWasmAdapter->HandleSerializedMessageFromWeb(output, std::string(message));
       return output.c_str();
     }
@@ -366,7 +365,6 @@
     printf("%s", message);
 
     if (applicationWasmAdapter.get() != NULL) {
-      printf("sending command to C++\n");
       applicationWasmAdapter->HandleCommandFromWeb(output, std::string(message));
       return output.c_str();
     }