]> git.saurik.com Git - apple/javascriptcore.git/blobdiff - replay/scripts/tests/generate-enum-encoding-helpers.json
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / replay / scripts / tests / generate-enum-encoding-helpers.json
index 65d71a317f8fd3d4115fa46df2236bed8616efc8..ef2e1634654a51012c781f37740cd4f2904db4bf 100644 (file)
@@ -1,31 +1,38 @@
 {
     "types": {
-        "JavaScriptCore": [
+        "Test": [
             {
                 "name": "InputQueue", "mode": "SCALAR",
                 "flags": ["ENUM_CLASS"],
                 "values": ["EventLoopInput", "LoaderMemoizedData", "ScriptMemoizedData"],
                 "header": "replay/NondeterministicInput.h"
-            }
-        ],
-        "WebCore": [
+            },
             {
                 "name": "MouseButton", "mode": "SCALAR", "storage": "unsigned",
                 "flags": ["ENUM"],
                 "values": ["NoButton", "LeftButton", "MiddleButton", "RightButton"],
                 "header": "platform/PlatformMouseEvent.h"
+            },
+            {
+                "name": "Type", "mode": "SCALAR",
+                "flags": ["ENUM"],
+                "enclosing_class": "PlatformEvent",
+                "values": ["Mouse", "Key", "Touch", "Wheel"],
+                "header": "platform/PlatformEvent.h"
             }
         ]
     },
 
-    "inputs": [
-        {
-            "name": "SavedMouseButton",
-            "description": "Supplies a mouse button enum value.",
-            "queue": "SCRIPT_MEMOIZED",
-            "members": [
-                { "name": "button", "type": "MouseButton" }
-            ]
-        }
-    ]
+    "inputs": {
+        "Test": [
+            {
+                "name": "SavedMouseButton",
+                "description": "Supplies a mouse button enum value.",
+                "queue": "SCRIPT_MEMOIZED",
+                "members": [
+                    { "name": "button", "type": "MouseButton" }
+                ]
+            }
+        ]
+    }
 }