[v3] Add CallByID method to runtime.

This commit is contained in:
Lea Anthony
2023-08-27 16:59:18 +10:00
parent cdf48e0589
commit 21790dc3ee
20 changed files with 423 additions and 533 deletions
@@ -37,7 +37,7 @@ const (
WindowSetZoomLevel = 29
)
var windowMethods = map[int]string{
var windowMethodNames = map[int]string{
WindowCenter: "Center",
WindowSetTitle: "SetTitle",
WindowFullscreen: "Fullscreen",
@@ -255,10 +255,5 @@ func (m *MessageProcessor) processWindowMethod(method int, rw http.ResponseWrite
m.httpError(rw, "Unknown window method id: %s", method)
}
var logArgs = []any{"method", method}
for name, arg := range args.data {
logArgs = append(logArgs, name)
logArgs = append(logArgs, arg)
}
m.Info("Runtime:", logArgs...)
m.Info("Runtime:", "method", "Window."+windowMethodNames[method])
}