xref: /aosp_15_r20/external/skia/experimental/tskit/build/externs.js (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1*c8dee2aaSAndroid Build Coastguard Worker// This externs format needs to be a little different due to the fact we don't rename
2*c8dee2aaSAndroid Build Coastguard Worker// Module to CanvasKit in quite the same way.
3*c8dee2aaSAndroid Build Coastguard WorkerModule.sayHello = function() {};
4*c8dee2aaSAndroid Build Coastguard WorkerModule.publicFunction = function() {};
5*c8dee2aaSAndroid Build Coastguard WorkerModule.publicExtension = function() {};
6*c8dee2aaSAndroid Build Coastguard WorkerModule.withObject = function() {};
7*c8dee2aaSAndroid Build Coastguard WorkerModule._privateFunction = function() {};
8*c8dee2aaSAndroid Build Coastguard WorkerModule._privateExtension = function() {};
9*c8dee2aaSAndroid Build Coastguard WorkerModule._withObject = function() {};
10*c8dee2aaSAndroid Build Coastguard Worker
11*c8dee2aaSAndroid Build Coastguard WorkerModule.Something =  {
12*c8dee2aaSAndroid Build Coastguard Worker  getName: function() {},
13*c8dee2aaSAndroid Build Coastguard Worker  prototype: {
14*c8dee2aaSAndroid Build Coastguard Worker    setName: function() {},
15*c8dee2aaSAndroid Build Coastguard Worker  },
16*c8dee2aaSAndroid Build Coastguard Worker  _setName: function() {},
17*c8dee2aaSAndroid Build Coastguard Worker};
18*c8dee2aaSAndroid Build Coastguard Worker
19*c8dee2aaSAndroid Build Coastguard WorkerModule.CompoundObj = {
20*c8dee2aaSAndroid Build Coastguard Worker  alpha: 0,
21*c8dee2aaSAndroid Build Coastguard Worker  beta: "",
22*c8dee2aaSAndroid Build Coastguard Worker  gamma: 0,
23*c8dee2aaSAndroid Build Coastguard Worker};
24*c8dee2aaSAndroid Build Coastguard Worker
25*c8dee2aaSAndroid Build Coastguard Worker// Things provided by Emscripten that we don't want minified.
26*c8dee2aaSAndroid Build Coastguard WorkerModule.onRuntimeInitialized = function() {};
27*c8dee2aaSAndroid Build Coastguard WorkerModule._malloc = function() {};
28*c8dee2aaSAndroid Build Coastguard WorkerModule._free = function() {};