@nativescript/canvas 2.0.0-alpha.10 → 2.0.0-alpha.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (372) hide show
  1. package/Canvas/index.android.d.ts +4 -0
  2. package/Canvas/index.android.js +15 -1
  3. package/Canvas/index.android.js.map +1 -1
  4. package/Canvas/index.ios.js +0 -1
  5. package/Canvas/index.ios.js.map +1 -1
  6. package/WebGL/WebGLRenderingContext/index.js +9 -1
  7. package/WebGL/WebGLRenderingContext/index.js.map +1 -1
  8. package/package.json +1 -1
  9. package/platforms/android/canvas-release.aar +0 -0
  10. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/CanvasNative +0 -0
  11. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/CanvasNative-Swift.h +4 -0
  12. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_native.h +46 -0
  13. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
  14. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.abi.json +381 -16
  15. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.private.swiftinterface +3 -0
  16. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.swiftinterface +3 -0
  17. package/platforms/ios/CanvasNative.xcframework/ios-arm64/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative +0 -0
  18. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/CanvasNative +0 -0
  19. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/CanvasNative-Swift.h +8 -0
  20. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_native.h +46 -0
  21. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
  22. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
  23. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.abi.json +381 -16
  24. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +3 -0
  25. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftinterface +3 -0
  26. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.abi.json +381 -16
  27. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +3 -0
  28. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +3 -0
  29. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/_CodeSignature/CodeResources +24 -24
  30. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative +0 -0
  31. package/platforms/ios/Podfile +1 -1
  32. package/platforms/ios/build.xcconfig +1 -1
  33. package/platforms/ios/src/CanvasModule.h +1 -1
  34. package/platforms/ios/src/cpp/CanvasJSIModule.h +1 -1
  35. package/platforms/ios/src/cpp/CanvasJSIModule.mm +17 -17
  36. package/platforms/ios/src/cpp/Helpers.h +1 -1
  37. package/platforms/ios/src/cpp/ImageAssetImpl.h +1 -1
  38. package/platforms/ios/src/cpp/ImageBitmapImpl.h +1 -1
  39. package/platforms/ios/src/cpp/JSICallback.h +1 -1
  40. package/platforms/ios/src/cpp/JSIReadFileCallback.h +1 -1
  41. package/platforms/ios/src/cpp/TextDecoderImpl.h +1 -1
  42. package/platforms/ios/src/cpp/VecMutableBuffer.h +1 -1
  43. package/platforms/ios/src/cpp/canvas2d/CanvasGradient.h +1 -1
  44. package/platforms/ios/src/cpp/canvas2d/CanvasPattern.h +1 -1
  45. package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.h +1 -1
  46. package/platforms/ios/src/cpp/canvas2d/ImageDataImpl.h +1 -1
  47. package/platforms/ios/src/cpp/canvas2d/MatrixImpl.h +1 -1
  48. package/platforms/ios/src/cpp/canvas2d/Path2D.h +1 -1
  49. package/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.h +1 -1
  50. package/platforms/ios/src/cpp/webgl/WebGLActiveInfoImpl.h +1 -1
  51. package/platforms/ios/src/cpp/webgl/WebGLBuffer.h +1 -1
  52. package/platforms/ios/src/cpp/webgl/WebGLFramebuffer.h +1 -1
  53. package/platforms/ios/src/cpp/webgl/WebGLProgram.h +1 -1
  54. package/platforms/ios/src/cpp/webgl/WebGLRenderbuffer.h +1 -1
  55. package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.h +1 -1
  56. package/platforms/ios/src/cpp/webgl/WebGLRenderingContextBase.h +1 -1
  57. package/platforms/ios/src/cpp/webgl/WebGLRenderingContextBase.mm +1 -1
  58. package/platforms/ios/src/cpp/webgl/WebGLShader.h +1 -1
  59. package/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.h +1 -1
  60. package/platforms/ios/src/cpp/webgl/WebGLTexture.h +1 -1
  61. package/platforms/ios/src/cpp/webgl/WebGLUniformLocation.h +1 -1
  62. package/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.h +1 -1
  63. package/platforms/ios/src/cpp/webgl/extensions/EXT_blend_minmaxImpl.h +1 -1
  64. package/platforms/ios/src/cpp/webgl/extensions/EXT_color_buffer_half_floatImpl.h +1 -1
  65. package/platforms/ios/src/cpp/webgl/extensions/EXT_disjoint_timer_queryImpl.h +1 -1
  66. package/platforms/ios/src/cpp/webgl/extensions/EXT_sRGBImpl.h +1 -1
  67. package/platforms/ios/src/cpp/webgl/extensions/EXT_shader_texture_lodImpl.h +1 -1
  68. package/platforms/ios/src/cpp/webgl/extensions/EXT_texture_filter_anisotropicImpl.h +1 -1
  69. package/platforms/ios/src/cpp/webgl/extensions/OES_element_index_uintImpl.h +1 -1
  70. package/platforms/ios/src/cpp/webgl/extensions/OES_fbo_render_mipmap.h +1 -1
  71. package/platforms/ios/src/cpp/webgl/extensions/OES_standard_derivativesImpl.h +1 -1
  72. package/platforms/ios/src/cpp/webgl/extensions/OES_texture_floatImpl.h +1 -1
  73. package/platforms/ios/src/cpp/webgl/extensions/OES_texture_float_linearImpl.h +1 -1
  74. package/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_floatImpl.h +1 -1
  75. package/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_float_linearImpl.h +1 -1
  76. package/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.h +1 -1
  77. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_color_buffer_floatImpl.h +1 -1
  78. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_atcImpl.h +1 -1
  79. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etc1Impl.h +1 -1
  80. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etcImpl.h +1 -1
  81. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_pvrtcImpl.h +1 -1
  82. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tcImpl.h +1 -1
  83. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tc_srgbImpl.h +1 -1
  84. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_depth_textureImpl.h +1 -1
  85. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.h +1 -1
  86. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_lose_contextImpl.h +1 -1
  87. package/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.h +1 -1
  88. package/platforms/ios/src/cpp/webgl2/WebGLQuery.h +1 -1
  89. package/platforms/ios/src/cpp/webgl2/WebGLSampler.h +1 -1
  90. package/platforms/ios/src/cpp/webgl2/WebGLSyncImpl.h +1 -1
  91. package/platforms/ios/src/cpp/webgl2/WebGLTransformFeedback.h +1 -1
  92. package/platforms/ios/src/cpp/webgl2/WebGLVertexArrayObject.h +1 -1
  93. package/pods/Headers/include/APIDesign.md +0 -72
  94. package/pods/Headers/include/DEPS +0 -10
  95. package/pods/Headers/include/DIR_METADATA +0 -11
  96. package/pods/Headers/include/OWNERS +0 -23
  97. package/pods/Headers/include/cppgc/DEPS +0 -8
  98. package/pods/Headers/include/cppgc/OWNERS +0 -2
  99. package/pods/Headers/include/cppgc/README.md +0 -133
  100. package/pods/Headers/include/cppgc/allocation.h +0 -310
  101. package/pods/Headers/include/cppgc/common.h +0 -29
  102. package/pods/Headers/include/cppgc/cross-thread-persistent.h +0 -465
  103. package/pods/Headers/include/cppgc/custom-space.h +0 -97
  104. package/pods/Headers/include/cppgc/default-platform.h +0 -67
  105. package/pods/Headers/include/cppgc/ephemeron-pair.h +0 -30
  106. package/pods/Headers/include/cppgc/explicit-management.h +0 -100
  107. package/pods/Headers/include/cppgc/garbage-collected.h +0 -106
  108. package/pods/Headers/include/cppgc/heap-consistency.h +0 -266
  109. package/pods/Headers/include/cppgc/heap-state.h +0 -82
  110. package/pods/Headers/include/cppgc/heap-statistics.h +0 -120
  111. package/pods/Headers/include/cppgc/heap.h +0 -206
  112. package/pods/Headers/include/cppgc/internal/api-constants.h +0 -55
  113. package/pods/Headers/include/cppgc/internal/atomic-entry-flag.h +0 -48
  114. package/pods/Headers/include/cppgc/internal/caged-heap-local-data.h +0 -79
  115. package/pods/Headers/include/cppgc/internal/compiler-specific.h +0 -38
  116. package/pods/Headers/include/cppgc/internal/finalizer-trait.h +0 -93
  117. package/pods/Headers/include/cppgc/internal/gc-info.h +0 -156
  118. package/pods/Headers/include/cppgc/internal/logging.h +0 -50
  119. package/pods/Headers/include/cppgc/internal/name-trait.h +0 -122
  120. package/pods/Headers/include/cppgc/internal/persistent-node.h +0 -216
  121. package/pods/Headers/include/cppgc/internal/pointer-policies.h +0 -186
  122. package/pods/Headers/include/cppgc/internal/write-barrier.h +0 -435
  123. package/pods/Headers/include/cppgc/liveness-broker.h +0 -77
  124. package/pods/Headers/include/cppgc/macros.h +0 -26
  125. package/pods/Headers/include/cppgc/member.h +0 -291
  126. package/pods/Headers/include/cppgc/name-provider.h +0 -65
  127. package/pods/Headers/include/cppgc/object-size-trait.h +0 -58
  128. package/pods/Headers/include/cppgc/persistent.h +0 -370
  129. package/pods/Headers/include/cppgc/platform.h +0 -156
  130. package/pods/Headers/include/cppgc/prefinalizer.h +0 -75
  131. package/pods/Headers/include/cppgc/process-heap-statistics.h +0 -36
  132. package/pods/Headers/include/cppgc/sentinel-pointer.h +0 -32
  133. package/pods/Headers/include/cppgc/source-location.h +0 -92
  134. package/pods/Headers/include/cppgc/testing.h +0 -106
  135. package/pods/Headers/include/cppgc/trace-trait.h +0 -116
  136. package/pods/Headers/include/cppgc/type-traits.h +0 -240
  137. package/pods/Headers/include/cppgc/visitor.h +0 -379
  138. package/pods/Headers/include/js_protocol-1.2.json +0 -936
  139. package/pods/Headers/include/js_protocol-1.3.json +0 -1112
  140. package/pods/Headers/include/js_protocol.pdl +0 -1709
  141. package/pods/Headers/include/libffi/arm64/ffi.h +0 -524
  142. package/pods/Headers/include/libffi/arm64/ffitarget.h +0 -92
  143. package/pods/Headers/include/libffi/x86_64/ffi.h +0 -524
  144. package/pods/Headers/include/libffi/x86_64/ffitarget.h +0 -147
  145. package/pods/Headers/include/libffi.h +0 -12
  146. package/pods/Headers/include/libplatform/DEPS +0 -9
  147. package/pods/Headers/include/libplatform/libplatform-export.h +0 -29
  148. package/pods/Headers/include/libplatform/libplatform.h +0 -106
  149. package/pods/Headers/include/libplatform/v8-tracing.h +0 -333
  150. package/pods/Headers/include/v8-array-buffer.h +0 -433
  151. package/pods/Headers/include/v8-callbacks.h +0 -397
  152. package/pods/Headers/include/v8-container.h +0 -129
  153. package/pods/Headers/include/v8-context.h +0 -407
  154. package/pods/Headers/include/v8-cppgc.h +0 -215
  155. package/pods/Headers/include/v8-data.h +0 -80
  156. package/pods/Headers/include/v8-date.h +0 -43
  157. package/pods/Headers/include/v8-debug.h +0 -168
  158. package/pods/Headers/include/v8-embedder-heap.h +0 -218
  159. package/pods/Headers/include/v8-embedder-state-scope.h +0 -51
  160. package/pods/Headers/include/v8-exception.h +0 -217
  161. package/pods/Headers/include/v8-extension.h +0 -62
  162. package/pods/Headers/include/v8-external.h +0 -37
  163. package/pods/Headers/include/v8-fast-api-calls.h +0 -939
  164. package/pods/Headers/include/v8-forward.h +0 -81
  165. package/pods/Headers/include/v8-function-callback.h +0 -475
  166. package/pods/Headers/include/v8-function.h +0 -125
  167. package/pods/Headers/include/v8-initialization.h +0 -315
  168. package/pods/Headers/include/v8-inspector-protocol.h +0 -13
  169. package/pods/Headers/include/v8-inspector.h +0 -376
  170. package/pods/Headers/include/v8-internal.h +0 -661
  171. package/pods/Headers/include/v8-isolate.h +0 -1709
  172. package/pods/Headers/include/v8-json.h +0 -47
  173. package/pods/Headers/include/v8-local-handle.h +0 -455
  174. package/pods/Headers/include/v8-locker.h +0 -149
  175. package/pods/Headers/include/v8-maybe.h +0 -137
  176. package/pods/Headers/include/v8-memory-span.h +0 -43
  177. package/pods/Headers/include/v8-message.h +0 -216
  178. package/pods/Headers/include/v8-metrics.h +0 -255
  179. package/pods/Headers/include/v8-microtask-queue.h +0 -152
  180. package/pods/Headers/include/v8-microtask.h +0 -28
  181. package/pods/Headers/include/v8-object.h +0 -775
  182. package/pods/Headers/include/v8-persistent-handle.h +0 -590
  183. package/pods/Headers/include/v8-platform.h +0 -1092
  184. package/pods/Headers/include/v8-primitive-object.h +0 -118
  185. package/pods/Headers/include/v8-primitive.h +0 -866
  186. package/pods/Headers/include/v8-profiler.h +0 -1198
  187. package/pods/Headers/include/v8-promise.h +0 -174
  188. package/pods/Headers/include/v8-proxy.h +0 -50
  189. package/pods/Headers/include/v8-regexp.h +0 -105
  190. package/pods/Headers/include/v8-script.h +0 -748
  191. package/pods/Headers/include/v8-snapshot.h +0 -196
  192. package/pods/Headers/include/v8-statistics.h +0 -217
  193. package/pods/Headers/include/v8-template.h +0 -1079
  194. package/pods/Headers/include/v8-traced-handle.h +0 -420
  195. package/pods/Headers/include/v8-typed-array.h +0 -282
  196. package/pods/Headers/include/v8-unwinder-state.h +0 -31
  197. package/pods/Headers/include/v8-unwinder.h +0 -132
  198. package/pods/Headers/include/v8-util.h +0 -658
  199. package/pods/Headers/include/v8-value-serializer-version.h +0 -24
  200. package/pods/Headers/include/v8-value-serializer.h +0 -279
  201. package/pods/Headers/include/v8-value.h +0 -526
  202. package/pods/Headers/include/v8-version-string.h +0 -38
  203. package/pods/Headers/include/v8-version.h +0 -20
  204. package/pods/Headers/include/v8-wasm-trap-handler-posix.h +0 -31
  205. package/pods/Headers/include/v8-wasm-trap-handler-win.h +0 -28
  206. package/pods/Headers/include/v8-wasm.h +0 -257
  207. package/pods/Headers/include/v8-weak-callback-info.h +0 -86
  208. package/pods/Headers/include/v8.h +0 -88
  209. package/pods/Headers/include/v8config.h +0 -605
  210. package/pods/Headers/inspector/InspectorServer.h +0 -20
  211. package/pods/Headers/inspector/JsV8InspectorClient.h +0 -66
  212. package/pods/Headers/inspector/base/trace_event/common/trace_event_common.h +0 -1123
  213. package/pods/Headers/inspector/base64.h +0 -9
  214. package/pods/Headers/inspector/src/base/address-region.h +0 -95
  215. package/pods/Headers/inspector/src/base/atomic-utils.h +0 -219
  216. package/pods/Headers/inspector/src/base/atomicops.h +0 -332
  217. package/pods/Headers/inspector/src/base/atomicops_internals_atomicword_compat.h +0 -89
  218. package/pods/Headers/inspector/src/base/base-export.h +0 -31
  219. package/pods/Headers/inspector/src/base/bits.h +0 -343
  220. package/pods/Headers/inspector/src/base/build_config.h +0 -234
  221. package/pods/Headers/inspector/src/base/compiler-specific.h +0 -136
  222. package/pods/Headers/inspector/src/base/export-template.h +0 -163
  223. package/pods/Headers/inspector/src/base/flags.h +0 -130
  224. package/pods/Headers/inspector/src/base/immediate-crash.h +0 -162
  225. package/pods/Headers/inspector/src/base/lazy-instance.h +0 -258
  226. package/pods/Headers/inspector/src/base/logging.h +0 -417
  227. package/pods/Headers/inspector/src/base/macros.h +0 -423
  228. package/pods/Headers/inspector/src/base/memory.h +0 -89
  229. package/pods/Headers/inspector/src/base/once.h +0 -108
  230. package/pods/Headers/inspector/src/base/optional.h +0 -882
  231. package/pods/Headers/inspector/src/base/platform/mutex.h +0 -370
  232. package/pods/Headers/inspector/src/base/platform/platform.h +0 -476
  233. package/pods/Headers/inspector/src/base/platform/semaphore.h +0 -108
  234. package/pods/Headers/inspector/src/base/platform/v8-time.h +0 -513
  235. package/pods/Headers/inspector/src/base/platform/wrappers.h +0 -73
  236. package/pods/Headers/inspector/src/base/safe_conversions.h +0 -389
  237. package/pods/Headers/inspector/src/base/safe_conversions_impl.h +0 -822
  238. package/pods/Headers/inspector/src/base/template-utils.h +0 -113
  239. package/pods/Headers/inspector/src/base/v8-fallthrough.h +0 -21
  240. package/pods/Headers/inspector/src/common/checks.h +0 -38
  241. package/pods/Headers/inspector/src/common/globals.h +0 -1842
  242. package/pods/Headers/inspector/src/debug/debug-interface.h +0 -667
  243. package/pods/Headers/inspector/src/debug/interface-types.h +0 -175
  244. package/pods/Headers/inspector/src/init/v8.h +0 -52
  245. package/pods/Headers/inspector/src/inspector/custom-preview.h +0 -24
  246. package/pods/Headers/inspector/src/inspector/injected-script.h +0 -251
  247. package/pods/Headers/inspector/src/inspector/inspected-context.h +0 -79
  248. package/pods/Headers/inspector/src/inspector/protocol/CSS.h +0 -2148
  249. package/pods/Headers/inspector/src/inspector/protocol/Console.h +0 -211
  250. package/pods/Headers/inspector/src/inspector/protocol/DOM.h +0 -1008
  251. package/pods/Headers/inspector/src/inspector/protocol/Debugger.h +0 -892
  252. package/pods/Headers/inspector/src/inspector/protocol/Forward.h +0 -75
  253. package/pods/Headers/inspector/src/inspector/protocol/HeapProfiler.h +0 -346
  254. package/pods/Headers/inspector/src/inspector/protocol/Log.h +0 -342
  255. package/pods/Headers/inspector/src/inspector/protocol/Network.h +0 -2528
  256. package/pods/Headers/inspector/src/inspector/protocol/Overlay.h +0 -281
  257. package/pods/Headers/inspector/src/inspector/protocol/Page.h +0 -1189
  258. package/pods/Headers/inspector/src/inspector/protocol/Profiler.h +0 -1001
  259. package/pods/Headers/inspector/src/inspector/protocol/Protocol.h +0 -617
  260. package/pods/Headers/inspector/src/inspector/protocol/Runtime.h +0 -1696
  261. package/pods/Headers/inspector/src/inspector/protocol/Schema.h +0 -146
  262. package/pods/Headers/inspector/src/inspector/protocol/Security.h +0 -793
  263. package/pods/Headers/inspector/src/inspector/remote-object-id.h +0 -54
  264. package/pods/Headers/inspector/src/inspector/search-util.h +0 -26
  265. package/pods/Headers/inspector/src/inspector/string-16.h +0 -180
  266. package/pods/Headers/inspector/src/inspector/string-util.h +0 -128
  267. package/pods/Headers/inspector/src/inspector/v8-console-agent-impl.h +0 -48
  268. package/pods/Headers/inspector/src/inspector/v8-console-message.h +0 -147
  269. package/pods/Headers/inspector/src/inspector/v8-console.h +0 -173
  270. package/pods/Headers/inspector/src/inspector/v8-css-agent-impl.h +0 -62
  271. package/pods/Headers/inspector/src/inspector/v8-debugger-agent-impl.h +0 -248
  272. package/pods/Headers/inspector/src/inspector/v8-debugger-id.h +0 -44
  273. package/pods/Headers/inspector/src/inspector/v8-debugger-script.h +0 -123
  274. package/pods/Headers/inspector/src/inspector/v8-debugger.h +0 -257
  275. package/pods/Headers/inspector/src/inspector/v8-dom-agent-impl.h +0 -91
  276. package/pods/Headers/inspector/src/inspector/v8-heap-profiler-agent-impl.h +0 -80
  277. package/pods/Headers/inspector/src/inspector/v8-inspector-impl.h +0 -191
  278. package/pods/Headers/inspector/src/inspector/v8-inspector-session-impl.h +0 -156
  279. package/pods/Headers/inspector/src/inspector/v8-log-agent-impl.h +0 -34
  280. package/pods/Headers/inspector/src/inspector/v8-network-agent-impl.h +0 -71
  281. package/pods/Headers/inspector/src/inspector/v8-ns-debugger-agent-impl.h +0 -24
  282. package/pods/Headers/inspector/src/inspector/v8-overlay-agent-impl.h +0 -70
  283. package/pods/Headers/inspector/src/inspector/v8-page-agent-impl.h +0 -88
  284. package/pods/Headers/inspector/src/inspector/v8-profiler-agent-impl.h +0 -104
  285. package/pods/Headers/inspector/src/inspector/v8-regex.h +0 -38
  286. package/pods/Headers/inspector/src/inspector/v8-runtime-agent-impl.h +0 -157
  287. package/pods/Headers/inspector/src/inspector/v8-schema-agent-impl.h +0 -38
  288. package/pods/Headers/inspector/src/inspector/v8-stack-trace-impl.h +0 -164
  289. package/pods/Headers/inspector/src/inspector/v8-string-conversions.h +0 -17
  290. package/pods/Headers/inspector/src/inspector/v8-value-utils.h +0 -23
  291. package/pods/Headers/inspector/src/inspector/value-mirror.h +0 -87
  292. package/pods/Headers/inspector/src/libplatform/default-platform.h +0 -92
  293. package/pods/Headers/inspector/src/logging/tracing-flags.h +0 -50
  294. package/pods/Headers/inspector/src/numbers/conversions.h +0 -183
  295. package/pods/Headers/inspector/src/tracing/trace-event.h +0 -664
  296. package/pods/Headers/inspector/src/utils/allocation.h +0 -367
  297. package/pods/Headers/inspector/src/utils/vector.h +0 -324
  298. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/cbor.h +0 -305
  299. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/dispatch.h +0 -314
  300. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/error_support.h +0 -62
  301. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/export.h +0 -6
  302. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/find_by_first.h +0 -58
  303. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/frontend_channel.h +0 -47
  304. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/glue.h +0 -80
  305. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/json.h +0 -52
  306. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/json_platform.h +0 -26
  307. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/maybe.h +0 -104
  308. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/parser_handler.h +0 -39
  309. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/protocol_core.h +0 -406
  310. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/serializable.h +0 -32
  311. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/serializer_traits.h +0 -158
  312. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/span.h +0 -99
  313. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/status.h +0 -139
  314. package/pods/Headers/inspector/utils.h +0 -32
  315. package/pods/Headers/inspector/v8-inspector-platform.h +0 -44
  316. package/pods/Headers/jsi/decorator.h +0 -770
  317. package/pods/Headers/jsi/instrumentation.h +0 -117
  318. package/pods/Headers/jsi/jsi-inl.h +0 -338
  319. package/pods/Headers/jsi/jsi.h +0 -1571
  320. package/pods/Headers/jsi/jsilib.h +0 -59
  321. package/pods/Headers/jsi/threadsafe.h +0 -79
  322. package/pods/Headers/runtime/ArgConverter.h +0 -61
  323. package/pods/Headers/runtime/ArrayAdapter.h +0 -13
  324. package/pods/Headers/runtime/Caches.h +0 -98
  325. package/pods/Headers/runtime/ClassBuilder.h +0 -61
  326. package/pods/Headers/runtime/Common.h +0 -9
  327. package/pods/Headers/runtime/ConcurrentMap.h +0 -55
  328. package/pods/Headers/runtime/ConcurrentQueue.h +0 -28
  329. package/pods/Headers/runtime/Console.h +0 -27
  330. package/pods/Headers/runtime/Constants.h +0 -15
  331. package/pods/Headers/runtime/DataWrapper.h +0 -671
  332. package/pods/Headers/runtime/DictionaryAdapter.h +0 -13
  333. package/pods/Headers/runtime/ExtVector.h +0 -21
  334. package/pods/Headers/runtime/FFICall.h +0 -105
  335. package/pods/Headers/runtime/FastEnumerationAdapter.h +0 -13
  336. package/pods/Headers/runtime/FunctionReference.h +0 -18
  337. package/pods/Headers/runtime/Helpers.h +0 -84
  338. package/pods/Headers/runtime/InlineFunctions.h +0 -16
  339. package/pods/Headers/runtime/Interop.h +0 -202
  340. package/pods/Headers/runtime/KnownUnknownClassPair.h +0 -35
  341. package/pods/Headers/runtime/Metadata.h +0 -981
  342. package/pods/Headers/runtime/MetadataBuilder.h +0 -72
  343. package/pods/Headers/runtime/MetadataInlines.h +0 -157
  344. package/pods/Headers/runtime/ModuleInternal.h +0 -59
  345. package/pods/Headers/runtime/NSDataAdapter.h +0 -13
  346. package/pods/Headers/runtime/NativeScriptException.h +0 -27
  347. package/pods/Headers/runtime/ObjectManager.h +0 -31
  348. package/pods/Headers/runtime/OneByteStringResource.h +0 -21
  349. package/pods/Headers/runtime/Pointer.h +0 -26
  350. package/pods/Headers/runtime/PromiseProxy.h +0 -15
  351. package/pods/Headers/runtime/Reference.h +0 -38
  352. package/pods/Headers/runtime/Runtime.h +0 -67
  353. package/pods/Headers/runtime/RuntimeConfig.h +0 -17
  354. package/pods/Headers/runtime/SetTimeout.h +0 -34
  355. package/pods/Headers/runtime/SimpleAllocator.h +0 -23
  356. package/pods/Headers/runtime/StringHasher.h +0 -315
  357. package/pods/Headers/runtime/SymbolIterator.h +0 -18
  358. package/pods/Headers/runtime/SymbolLoader.h +0 -27
  359. package/pods/Headers/runtime/TNSDerivedClass.h +0 -8
  360. package/pods/Headers/runtime/TSHelpers.h +0 -15
  361. package/pods/Headers/runtime/Tasks.h +0 -19
  362. package/pods/Headers/runtime/UnmanagedType.h +0 -21
  363. package/pods/Headers/runtime/WeakRef.h +0 -15
  364. package/pods/Headers/runtime/Worker.h +0 -26
  365. package/pods/Headers/runtime/robin_hood.h +0 -2184
  366. package/pods/Headers/v8runtime/HostProxy.h +0 -71
  367. package/pods/Headers/v8runtime/JSIV8ValueConverter.h +0 -74
  368. package/pods/Headers/v8runtime/V8PointerValue.h +0 -44
  369. package/pods/Headers/v8runtime/V8Runtime.h +0 -240
  370. package/pods/Headers/v8runtime/V8RuntimeConfig.h +0 -26
  371. package/pods/Headers/v8runtime/V8RuntimeFactory.h +0 -21
  372. package/pods/NativeScript.podspec +0 -68
@@ -1,1696 +0,0 @@
1
- // This file is generated by TypeBuilder_h.template.
2
-
3
- // Copyright (c) 2016 The Chromium Authors. All rights reserved.
4
- // Use of this source code is governed by a BSD-style license that can be
5
- // found in the LICENSE file.
6
-
7
- #ifndef v8_inspector_protocol_Runtime_h
8
- #define v8_inspector_protocol_Runtime_h
9
-
10
- #include "src/inspector/protocol/Protocol.h"
11
- // For each imported domain we generate a ValueConversions struct instead of a full domain definition
12
- // and include Domain::API version from there.
13
- #include "include/inspector/Runtime.h"
14
-
15
- namespace v8_inspector {
16
- namespace protocol {
17
- namespace Runtime {
18
- using ScriptId = String;
19
- using RemoteObjectId = String;
20
- using UnserializableValue = String;
21
- class RemoteObject;
22
- class CustomPreview;
23
- class ObjectPreview;
24
- class PropertyPreview;
25
- class EntryPreview;
26
- class PropertyDescriptor;
27
- class InternalPropertyDescriptor;
28
- class PrivatePropertyDescriptor;
29
- class CallArgument;
30
- using ExecutionContextId = int;
31
- class ExecutionContextDescription;
32
- class ExceptionDetails;
33
- using Timestamp = double;
34
- using TimeDelta = double;
35
- class CallFrame;
36
- class StackTrace;
37
- using UniqueDebuggerId = String;
38
- class StackTraceId;
39
-
40
- // ------------- Forward and enum declarations.
41
-
42
- namespace ConsoleAPICalled {
43
- namespace TypeEnum {
44
- extern const char* Log;
45
- extern const char* Debug;
46
- extern const char* Info;
47
- extern const char* Error;
48
- extern const char* Warning;
49
- extern const char* Dir;
50
- extern const char* Dirxml;
51
- extern const char* Table;
52
- extern const char* Trace;
53
- extern const char* Clear;
54
- extern const char* StartGroup;
55
- extern const char* StartGroupCollapsed;
56
- extern const char* EndGroup;
57
- extern const char* Assert;
58
- extern const char* Profile;
59
- extern const char* ProfileEnd;
60
- extern const char* Count;
61
- extern const char* TimeEnd;
62
- } // TypeEnum
63
- } // ConsoleAPICalled
64
-
65
- // ------------- Type and builder declarations.
66
-
67
- class RemoteObject : public ::v8_crdtp::ProtocolObject<RemoteObject>,
68
- public API::RemoteObject {
69
- public:
70
- ~RemoteObject() override { }
71
-
72
- struct TypeEnum {
73
- static const char* Object;
74
- static const char* Function;
75
- static const char* Undefined;
76
- static const char* String;
77
- static const char* Number;
78
- static const char* Boolean;
79
- static const char* Symbol;
80
- static const char* Bigint;
81
- }; // TypeEnum
82
-
83
- String getType() { return m_type; }
84
- void setType(const String& value) { m_type = value; }
85
-
86
- struct SubtypeEnum {
87
- static const char* Array;
88
- static const char* Null;
89
- static const char* Node;
90
- static const char* Regexp;
91
- static const char* Date;
92
- static const char* Map;
93
- static const char* Set;
94
- static const char* Weakmap;
95
- static const char* Weakset;
96
- static const char* Iterator;
97
- static const char* Generator;
98
- static const char* Error;
99
- static const char* Proxy;
100
- static const char* Promise;
101
- static const char* Typedarray;
102
- static const char* Arraybuffer;
103
- static const char* Dataview;
104
- static const char* Webassemblymemory;
105
- static const char* Wasmvalue;
106
- }; // SubtypeEnum
107
-
108
- bool hasSubtype() { return m_subtype.isJust(); }
109
- String getSubtype(const String& defaultValue) { return m_subtype.isJust() ? m_subtype.fromJust() : defaultValue; }
110
- void setSubtype(const String& value) { m_subtype = value; }
111
-
112
- bool hasClassName() { return m_className.isJust(); }
113
- String getClassName(const String& defaultValue) { return m_className.isJust() ? m_className.fromJust() : defaultValue; }
114
- void setClassName(const String& value) { m_className = value; }
115
-
116
- bool hasValue() { return m_value.isJust(); }
117
- protocol::Value* getValue(protocol::Value* defaultValue) { return m_value.isJust() ? m_value.fromJust() : defaultValue; }
118
- void setValue(std::unique_ptr<protocol::Value> value) { m_value = std::move(value); }
119
-
120
- bool hasUnserializableValue() { return m_unserializableValue.isJust(); }
121
- String getUnserializableValue(const String& defaultValue) { return m_unserializableValue.isJust() ? m_unserializableValue.fromJust() : defaultValue; }
122
- void setUnserializableValue(const String& value) { m_unserializableValue = value; }
123
-
124
- bool hasDescription() { return m_description.isJust(); }
125
- String getDescription(const String& defaultValue) { return m_description.isJust() ? m_description.fromJust() : defaultValue; }
126
- void setDescription(const String& value) { m_description = value; }
127
-
128
- bool hasObjectId() { return m_objectId.isJust(); }
129
- String getObjectId(const String& defaultValue) { return m_objectId.isJust() ? m_objectId.fromJust() : defaultValue; }
130
- void setObjectId(const String& value) { m_objectId = value; }
131
-
132
- bool hasPreview() { return m_preview.isJust(); }
133
- protocol::Runtime::ObjectPreview* getPreview(protocol::Runtime::ObjectPreview* defaultValue) { return m_preview.isJust() ? m_preview.fromJust() : defaultValue; }
134
- void setPreview(std::unique_ptr<protocol::Runtime::ObjectPreview> value) { m_preview = std::move(value); }
135
-
136
- bool hasCustomPreview() { return m_customPreview.isJust(); }
137
- protocol::Runtime::CustomPreview* getCustomPreview(protocol::Runtime::CustomPreview* defaultValue) { return m_customPreview.isJust() ? m_customPreview.fromJust() : defaultValue; }
138
- void setCustomPreview(std::unique_ptr<protocol::Runtime::CustomPreview> value) { m_customPreview = std::move(value); }
139
-
140
- template<int STATE>
141
- class RemoteObjectBuilder {
142
- public:
143
- enum {
144
- NoFieldsSet = 0,
145
- TypeSet = 1 << 1,
146
- AllFieldsSet = (TypeSet | 0)};
147
-
148
-
149
- RemoteObjectBuilder<STATE | TypeSet>& setType(const String& value)
150
- {
151
- static_assert(!(STATE & TypeSet), "property type should not be set yet");
152
- m_result->setType(value);
153
- return castState<TypeSet>();
154
- }
155
-
156
- RemoteObjectBuilder<STATE>& setSubtype(const String& value)
157
- {
158
- m_result->setSubtype(value);
159
- return *this;
160
- }
161
-
162
- RemoteObjectBuilder<STATE>& setClassName(const String& value)
163
- {
164
- m_result->setClassName(value);
165
- return *this;
166
- }
167
-
168
- RemoteObjectBuilder<STATE>& setValue(std::unique_ptr<protocol::Value> value)
169
- {
170
- m_result->setValue(std::move(value));
171
- return *this;
172
- }
173
-
174
- RemoteObjectBuilder<STATE>& setUnserializableValue(const String& value)
175
- {
176
- m_result->setUnserializableValue(value);
177
- return *this;
178
- }
179
-
180
- RemoteObjectBuilder<STATE>& setDescription(const String& value)
181
- {
182
- m_result->setDescription(value);
183
- return *this;
184
- }
185
-
186
- RemoteObjectBuilder<STATE>& setObjectId(const String& value)
187
- {
188
- m_result->setObjectId(value);
189
- return *this;
190
- }
191
-
192
- RemoteObjectBuilder<STATE>& setPreview(std::unique_ptr<protocol::Runtime::ObjectPreview> value)
193
- {
194
- m_result->setPreview(std::move(value));
195
- return *this;
196
- }
197
-
198
- RemoteObjectBuilder<STATE>& setCustomPreview(std::unique_ptr<protocol::Runtime::CustomPreview> value)
199
- {
200
- m_result->setCustomPreview(std::move(value));
201
- return *this;
202
- }
203
-
204
- std::unique_ptr<RemoteObject> build()
205
- {
206
- static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
207
- return std::move(m_result);
208
- }
209
-
210
- private:
211
- friend class RemoteObject;
212
- RemoteObjectBuilder() : m_result(new RemoteObject()) { }
213
-
214
- template<int STEP> RemoteObjectBuilder<STATE | STEP>& castState()
215
- {
216
- return *reinterpret_cast<RemoteObjectBuilder<STATE | STEP>*>(this);
217
- }
218
-
219
- std::unique_ptr<protocol::Runtime::RemoteObject> m_result;
220
- };
221
-
222
- static RemoteObjectBuilder<0> create()
223
- {
224
- return RemoteObjectBuilder<0>();
225
- }
226
-
227
- private:
228
- DECLARE_SERIALIZATION_SUPPORT();
229
-
230
- RemoteObject()
231
- {
232
- }
233
-
234
- String m_type;
235
- Maybe<String> m_subtype;
236
- Maybe<String> m_className;
237
- Maybe<protocol::Value> m_value;
238
- Maybe<String> m_unserializableValue;
239
- Maybe<String> m_description;
240
- Maybe<String> m_objectId;
241
- Maybe<protocol::Runtime::ObjectPreview> m_preview;
242
- Maybe<protocol::Runtime::CustomPreview> m_customPreview;
243
- };
244
-
245
-
246
- class CustomPreview : public ::v8_crdtp::ProtocolObject<CustomPreview> {
247
- public:
248
- ~CustomPreview() override { }
249
-
250
- String getHeader() { return m_header; }
251
- void setHeader(const String& value) { m_header = value; }
252
-
253
- bool hasBodyGetterId() { return m_bodyGetterId.isJust(); }
254
- String getBodyGetterId(const String& defaultValue) { return m_bodyGetterId.isJust() ? m_bodyGetterId.fromJust() : defaultValue; }
255
- void setBodyGetterId(const String& value) { m_bodyGetterId = value; }
256
-
257
- template<int STATE>
258
- class CustomPreviewBuilder {
259
- public:
260
- enum {
261
- NoFieldsSet = 0,
262
- HeaderSet = 1 << 1,
263
- AllFieldsSet = (HeaderSet | 0)};
264
-
265
-
266
- CustomPreviewBuilder<STATE | HeaderSet>& setHeader(const String& value)
267
- {
268
- static_assert(!(STATE & HeaderSet), "property header should not be set yet");
269
- m_result->setHeader(value);
270
- return castState<HeaderSet>();
271
- }
272
-
273
- CustomPreviewBuilder<STATE>& setBodyGetterId(const String& value)
274
- {
275
- m_result->setBodyGetterId(value);
276
- return *this;
277
- }
278
-
279
- std::unique_ptr<CustomPreview> build()
280
- {
281
- static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
282
- return std::move(m_result);
283
- }
284
-
285
- private:
286
- friend class CustomPreview;
287
- CustomPreviewBuilder() : m_result(new CustomPreview()) { }
288
-
289
- template<int STEP> CustomPreviewBuilder<STATE | STEP>& castState()
290
- {
291
- return *reinterpret_cast<CustomPreviewBuilder<STATE | STEP>*>(this);
292
- }
293
-
294
- std::unique_ptr<protocol::Runtime::CustomPreview> m_result;
295
- };
296
-
297
- static CustomPreviewBuilder<0> create()
298
- {
299
- return CustomPreviewBuilder<0>();
300
- }
301
-
302
- private:
303
- DECLARE_SERIALIZATION_SUPPORT();
304
-
305
- CustomPreview()
306
- {
307
- }
308
-
309
- String m_header;
310
- Maybe<String> m_bodyGetterId;
311
- };
312
-
313
-
314
- class ObjectPreview : public ::v8_crdtp::ProtocolObject<ObjectPreview> {
315
- public:
316
- ~ObjectPreview() override { }
317
-
318
- struct TypeEnum {
319
- static const char* Object;
320
- static const char* Function;
321
- static const char* Undefined;
322
- static const char* String;
323
- static const char* Number;
324
- static const char* Boolean;
325
- static const char* Symbol;
326
- static const char* Bigint;
327
- }; // TypeEnum
328
-
329
- String getType() { return m_type; }
330
- void setType(const String& value) { m_type = value; }
331
-
332
- struct SubtypeEnum {
333
- static const char* Array;
334
- static const char* Null;
335
- static const char* Node;
336
- static const char* Regexp;
337
- static const char* Date;
338
- static const char* Map;
339
- static const char* Set;
340
- static const char* Weakmap;
341
- static const char* Weakset;
342
- static const char* Iterator;
343
- static const char* Generator;
344
- static const char* Error;
345
- static const char* Proxy;
346
- static const char* Promise;
347
- static const char* Typedarray;
348
- static const char* Arraybuffer;
349
- static const char* Dataview;
350
- static const char* Webassemblymemory;
351
- static const char* Wasmvalue;
352
- }; // SubtypeEnum
353
-
354
- bool hasSubtype() { return m_subtype.isJust(); }
355
- String getSubtype(const String& defaultValue) { return m_subtype.isJust() ? m_subtype.fromJust() : defaultValue; }
356
- void setSubtype(const String& value) { m_subtype = value; }
357
-
358
- bool hasDescription() { return m_description.isJust(); }
359
- String getDescription(const String& defaultValue) { return m_description.isJust() ? m_description.fromJust() : defaultValue; }
360
- void setDescription(const String& value) { m_description = value; }
361
-
362
- bool getOverflow() { return m_overflow; }
363
- void setOverflow(bool value) { m_overflow = value; }
364
-
365
- protocol::Array<protocol::Runtime::PropertyPreview>* getProperties() { return m_properties.get(); }
366
- void setProperties(std::unique_ptr<protocol::Array<protocol::Runtime::PropertyPreview>> value) { m_properties = std::move(value); }
367
-
368
- bool hasEntries() { return m_entries.isJust(); }
369
- protocol::Array<protocol::Runtime::EntryPreview>* getEntries(protocol::Array<protocol::Runtime::EntryPreview>* defaultValue) { return m_entries.isJust() ? m_entries.fromJust() : defaultValue; }
370
- void setEntries(std::unique_ptr<protocol::Array<protocol::Runtime::EntryPreview>> value) { m_entries = std::move(value); }
371
-
372
- template<int STATE>
373
- class ObjectPreviewBuilder {
374
- public:
375
- enum {
376
- NoFieldsSet = 0,
377
- TypeSet = 1 << 1,
378
- OverflowSet = 1 << 2,
379
- PropertiesSet = 1 << 3,
380
- AllFieldsSet = (TypeSet | OverflowSet | PropertiesSet | 0)};
381
-
382
-
383
- ObjectPreviewBuilder<STATE | TypeSet>& setType(const String& value)
384
- {
385
- static_assert(!(STATE & TypeSet), "property type should not be set yet");
386
- m_result->setType(value);
387
- return castState<TypeSet>();
388
- }
389
-
390
- ObjectPreviewBuilder<STATE>& setSubtype(const String& value)
391
- {
392
- m_result->setSubtype(value);
393
- return *this;
394
- }
395
-
396
- ObjectPreviewBuilder<STATE>& setDescription(const String& value)
397
- {
398
- m_result->setDescription(value);
399
- return *this;
400
- }
401
-
402
- ObjectPreviewBuilder<STATE | OverflowSet>& setOverflow(bool value)
403
- {
404
- static_assert(!(STATE & OverflowSet), "property overflow should not be set yet");
405
- m_result->setOverflow(value);
406
- return castState<OverflowSet>();
407
- }
408
-
409
- ObjectPreviewBuilder<STATE | PropertiesSet>& setProperties(std::unique_ptr<protocol::Array<protocol::Runtime::PropertyPreview>> value)
410
- {
411
- static_assert(!(STATE & PropertiesSet), "property properties should not be set yet");
412
- m_result->setProperties(std::move(value));
413
- return castState<PropertiesSet>();
414
- }
415
-
416
- ObjectPreviewBuilder<STATE>& setEntries(std::unique_ptr<protocol::Array<protocol::Runtime::EntryPreview>> value)
417
- {
418
- m_result->setEntries(std::move(value));
419
- return *this;
420
- }
421
-
422
- std::unique_ptr<ObjectPreview> build()
423
- {
424
- static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
425
- return std::move(m_result);
426
- }
427
-
428
- private:
429
- friend class ObjectPreview;
430
- ObjectPreviewBuilder() : m_result(new ObjectPreview()) { }
431
-
432
- template<int STEP> ObjectPreviewBuilder<STATE | STEP>& castState()
433
- {
434
- return *reinterpret_cast<ObjectPreviewBuilder<STATE | STEP>*>(this);
435
- }
436
-
437
- std::unique_ptr<protocol::Runtime::ObjectPreview> m_result;
438
- };
439
-
440
- static ObjectPreviewBuilder<0> create()
441
- {
442
- return ObjectPreviewBuilder<0>();
443
- }
444
-
445
- private:
446
- DECLARE_SERIALIZATION_SUPPORT();
447
-
448
- ObjectPreview()
449
- {
450
- m_overflow = false;
451
- }
452
-
453
- String m_type;
454
- Maybe<String> m_subtype;
455
- Maybe<String> m_description;
456
- bool m_overflow;
457
- std::unique_ptr<protocol::Array<protocol::Runtime::PropertyPreview>> m_properties;
458
- Maybe<protocol::Array<protocol::Runtime::EntryPreview>> m_entries;
459
- };
460
-
461
-
462
- class PropertyPreview : public ::v8_crdtp::ProtocolObject<PropertyPreview> {
463
- public:
464
- ~PropertyPreview() override { }
465
-
466
- String getName() { return m_name; }
467
- void setName(const String& value) { m_name = value; }
468
-
469
- struct TypeEnum {
470
- static const char* Object;
471
- static const char* Function;
472
- static const char* Undefined;
473
- static const char* String;
474
- static const char* Number;
475
- static const char* Boolean;
476
- static const char* Symbol;
477
- static const char* Accessor;
478
- static const char* Bigint;
479
- }; // TypeEnum
480
-
481
- String getType() { return m_type; }
482
- void setType(const String& value) { m_type = value; }
483
-
484
- bool hasValue() { return m_value.isJust(); }
485
- String getValue(const String& defaultValue) { return m_value.isJust() ? m_value.fromJust() : defaultValue; }
486
- void setValue(const String& value) { m_value = value; }
487
-
488
- bool hasValuePreview() { return m_valuePreview.isJust(); }
489
- protocol::Runtime::ObjectPreview* getValuePreview(protocol::Runtime::ObjectPreview* defaultValue) { return m_valuePreview.isJust() ? m_valuePreview.fromJust() : defaultValue; }
490
- void setValuePreview(std::unique_ptr<protocol::Runtime::ObjectPreview> value) { m_valuePreview = std::move(value); }
491
-
492
- struct SubtypeEnum {
493
- static const char* Array;
494
- static const char* Null;
495
- static const char* Node;
496
- static const char* Regexp;
497
- static const char* Date;
498
- static const char* Map;
499
- static const char* Set;
500
- static const char* Weakmap;
501
- static const char* Weakset;
502
- static const char* Iterator;
503
- static const char* Generator;
504
- static const char* Error;
505
- static const char* Proxy;
506
- static const char* Promise;
507
- static const char* Typedarray;
508
- static const char* Arraybuffer;
509
- static const char* Dataview;
510
- static const char* Webassemblymemory;
511
- static const char* Wasmvalue;
512
- }; // SubtypeEnum
513
-
514
- bool hasSubtype() { return m_subtype.isJust(); }
515
- String getSubtype(const String& defaultValue) { return m_subtype.isJust() ? m_subtype.fromJust() : defaultValue; }
516
- void setSubtype(const String& value) { m_subtype = value; }
517
-
518
- template<int STATE>
519
- class PropertyPreviewBuilder {
520
- public:
521
- enum {
522
- NoFieldsSet = 0,
523
- NameSet = 1 << 1,
524
- TypeSet = 1 << 2,
525
- AllFieldsSet = (NameSet | TypeSet | 0)};
526
-
527
-
528
- PropertyPreviewBuilder<STATE | NameSet>& setName(const String& value)
529
- {
530
- static_assert(!(STATE & NameSet), "property name should not be set yet");
531
- m_result->setName(value);
532
- return castState<NameSet>();
533
- }
534
-
535
- PropertyPreviewBuilder<STATE | TypeSet>& setType(const String& value)
536
- {
537
- static_assert(!(STATE & TypeSet), "property type should not be set yet");
538
- m_result->setType(value);
539
- return castState<TypeSet>();
540
- }
541
-
542
- PropertyPreviewBuilder<STATE>& setValue(const String& value)
543
- {
544
- m_result->setValue(value);
545
- return *this;
546
- }
547
-
548
- PropertyPreviewBuilder<STATE>& setValuePreview(std::unique_ptr<protocol::Runtime::ObjectPreview> value)
549
- {
550
- m_result->setValuePreview(std::move(value));
551
- return *this;
552
- }
553
-
554
- PropertyPreviewBuilder<STATE>& setSubtype(const String& value)
555
- {
556
- m_result->setSubtype(value);
557
- return *this;
558
- }
559
-
560
- std::unique_ptr<PropertyPreview> build()
561
- {
562
- static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
563
- return std::move(m_result);
564
- }
565
-
566
- private:
567
- friend class PropertyPreview;
568
- PropertyPreviewBuilder() : m_result(new PropertyPreview()) { }
569
-
570
- template<int STEP> PropertyPreviewBuilder<STATE | STEP>& castState()
571
- {
572
- return *reinterpret_cast<PropertyPreviewBuilder<STATE | STEP>*>(this);
573
- }
574
-
575
- std::unique_ptr<protocol::Runtime::PropertyPreview> m_result;
576
- };
577
-
578
- static PropertyPreviewBuilder<0> create()
579
- {
580
- return PropertyPreviewBuilder<0>();
581
- }
582
-
583
- private:
584
- DECLARE_SERIALIZATION_SUPPORT();
585
-
586
- PropertyPreview()
587
- {
588
- }
589
-
590
- String m_name;
591
- String m_type;
592
- Maybe<String> m_value;
593
- Maybe<protocol::Runtime::ObjectPreview> m_valuePreview;
594
- Maybe<String> m_subtype;
595
- };
596
-
597
-
598
- class EntryPreview : public ::v8_crdtp::ProtocolObject<EntryPreview> {
599
- public:
600
- ~EntryPreview() override { }
601
-
602
- bool hasKey() { return m_key.isJust(); }
603
- protocol::Runtime::ObjectPreview* getKey(protocol::Runtime::ObjectPreview* defaultValue) { return m_key.isJust() ? m_key.fromJust() : defaultValue; }
604
- void setKey(std::unique_ptr<protocol::Runtime::ObjectPreview> value) { m_key = std::move(value); }
605
-
606
- protocol::Runtime::ObjectPreview* getValue() { return m_value.get(); }
607
- void setValue(std::unique_ptr<protocol::Runtime::ObjectPreview> value) { m_value = std::move(value); }
608
-
609
- template<int STATE>
610
- class EntryPreviewBuilder {
611
- public:
612
- enum {
613
- NoFieldsSet = 0,
614
- ValueSet = 1 << 1,
615
- AllFieldsSet = (ValueSet | 0)};
616
-
617
-
618
- EntryPreviewBuilder<STATE>& setKey(std::unique_ptr<protocol::Runtime::ObjectPreview> value)
619
- {
620
- m_result->setKey(std::move(value));
621
- return *this;
622
- }
623
-
624
- EntryPreviewBuilder<STATE | ValueSet>& setValue(std::unique_ptr<protocol::Runtime::ObjectPreview> value)
625
- {
626
- static_assert(!(STATE & ValueSet), "property value should not be set yet");
627
- m_result->setValue(std::move(value));
628
- return castState<ValueSet>();
629
- }
630
-
631
- std::unique_ptr<EntryPreview> build()
632
- {
633
- static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
634
- return std::move(m_result);
635
- }
636
-
637
- private:
638
- friend class EntryPreview;
639
- EntryPreviewBuilder() : m_result(new EntryPreview()) { }
640
-
641
- template<int STEP> EntryPreviewBuilder<STATE | STEP>& castState()
642
- {
643
- return *reinterpret_cast<EntryPreviewBuilder<STATE | STEP>*>(this);
644
- }
645
-
646
- std::unique_ptr<protocol::Runtime::EntryPreview> m_result;
647
- };
648
-
649
- static EntryPreviewBuilder<0> create()
650
- {
651
- return EntryPreviewBuilder<0>();
652
- }
653
-
654
- private:
655
- DECLARE_SERIALIZATION_SUPPORT();
656
-
657
- EntryPreview()
658
- {
659
- }
660
-
661
- Maybe<protocol::Runtime::ObjectPreview> m_key;
662
- std::unique_ptr<protocol::Runtime::ObjectPreview> m_value;
663
- };
664
-
665
-
666
- class PropertyDescriptor : public ::v8_crdtp::ProtocolObject<PropertyDescriptor> {
667
- public:
668
- ~PropertyDescriptor() override { }
669
-
670
- String getName() { return m_name; }
671
- void setName(const String& value) { m_name = value; }
672
-
673
- bool hasValue() { return m_value.isJust(); }
674
- protocol::Runtime::RemoteObject* getValue(protocol::Runtime::RemoteObject* defaultValue) { return m_value.isJust() ? m_value.fromJust() : defaultValue; }
675
- void setValue(std::unique_ptr<protocol::Runtime::RemoteObject> value) { m_value = std::move(value); }
676
-
677
- bool hasWritable() { return m_writable.isJust(); }
678
- bool getWritable(bool defaultValue) { return m_writable.isJust() ? m_writable.fromJust() : defaultValue; }
679
- void setWritable(bool value) { m_writable = value; }
680
-
681
- bool hasGet() { return m_get.isJust(); }
682
- protocol::Runtime::RemoteObject* getGet(protocol::Runtime::RemoteObject* defaultValue) { return m_get.isJust() ? m_get.fromJust() : defaultValue; }
683
- void setGet(std::unique_ptr<protocol::Runtime::RemoteObject> value) { m_get = std::move(value); }
684
-
685
- bool hasSet() { return m_set.isJust(); }
686
- protocol::Runtime::RemoteObject* getSet(protocol::Runtime::RemoteObject* defaultValue) { return m_set.isJust() ? m_set.fromJust() : defaultValue; }
687
- void setSet(std::unique_ptr<protocol::Runtime::RemoteObject> value) { m_set = std::move(value); }
688
-
689
- bool getConfigurable() { return m_configurable; }
690
- void setConfigurable(bool value) { m_configurable = value; }
691
-
692
- bool getEnumerable() { return m_enumerable; }
693
- void setEnumerable(bool value) { m_enumerable = value; }
694
-
695
- bool hasWasThrown() { return m_wasThrown.isJust(); }
696
- bool getWasThrown(bool defaultValue) { return m_wasThrown.isJust() ? m_wasThrown.fromJust() : defaultValue; }
697
- void setWasThrown(bool value) { m_wasThrown = value; }
698
-
699
- bool hasIsOwn() { return m_isOwn.isJust(); }
700
- bool getIsOwn(bool defaultValue) { return m_isOwn.isJust() ? m_isOwn.fromJust() : defaultValue; }
701
- void setIsOwn(bool value) { m_isOwn = value; }
702
-
703
- bool hasSymbol() { return m_symbol.isJust(); }
704
- protocol::Runtime::RemoteObject* getSymbol(protocol::Runtime::RemoteObject* defaultValue) { return m_symbol.isJust() ? m_symbol.fromJust() : defaultValue; }
705
- void setSymbol(std::unique_ptr<protocol::Runtime::RemoteObject> value) { m_symbol = std::move(value); }
706
-
707
- template<int STATE>
708
- class PropertyDescriptorBuilder {
709
- public:
710
- enum {
711
- NoFieldsSet = 0,
712
- NameSet = 1 << 1,
713
- ConfigurableSet = 1 << 2,
714
- EnumerableSet = 1 << 3,
715
- AllFieldsSet = (NameSet | ConfigurableSet | EnumerableSet | 0)};
716
-
717
-
718
- PropertyDescriptorBuilder<STATE | NameSet>& setName(const String& value)
719
- {
720
- static_assert(!(STATE & NameSet), "property name should not be set yet");
721
- m_result->setName(value);
722
- return castState<NameSet>();
723
- }
724
-
725
- PropertyDescriptorBuilder<STATE>& setValue(std::unique_ptr<protocol::Runtime::RemoteObject> value)
726
- {
727
- m_result->setValue(std::move(value));
728
- return *this;
729
- }
730
-
731
- PropertyDescriptorBuilder<STATE>& setWritable(bool value)
732
- {
733
- m_result->setWritable(value);
734
- return *this;
735
- }
736
-
737
- PropertyDescriptorBuilder<STATE>& setGet(std::unique_ptr<protocol::Runtime::RemoteObject> value)
738
- {
739
- m_result->setGet(std::move(value));
740
- return *this;
741
- }
742
-
743
- PropertyDescriptorBuilder<STATE>& setSet(std::unique_ptr<protocol::Runtime::RemoteObject> value)
744
- {
745
- m_result->setSet(std::move(value));
746
- return *this;
747
- }
748
-
749
- PropertyDescriptorBuilder<STATE | ConfigurableSet>& setConfigurable(bool value)
750
- {
751
- static_assert(!(STATE & ConfigurableSet), "property configurable should not be set yet");
752
- m_result->setConfigurable(value);
753
- return castState<ConfigurableSet>();
754
- }
755
-
756
- PropertyDescriptorBuilder<STATE | EnumerableSet>& setEnumerable(bool value)
757
- {
758
- static_assert(!(STATE & EnumerableSet), "property enumerable should not be set yet");
759
- m_result->setEnumerable(value);
760
- return castState<EnumerableSet>();
761
- }
762
-
763
- PropertyDescriptorBuilder<STATE>& setWasThrown(bool value)
764
- {
765
- m_result->setWasThrown(value);
766
- return *this;
767
- }
768
-
769
- PropertyDescriptorBuilder<STATE>& setIsOwn(bool value)
770
- {
771
- m_result->setIsOwn(value);
772
- return *this;
773
- }
774
-
775
- PropertyDescriptorBuilder<STATE>& setSymbol(std::unique_ptr<protocol::Runtime::RemoteObject> value)
776
- {
777
- m_result->setSymbol(std::move(value));
778
- return *this;
779
- }
780
-
781
- std::unique_ptr<PropertyDescriptor> build()
782
- {
783
- static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
784
- return std::move(m_result);
785
- }
786
-
787
- private:
788
- friend class PropertyDescriptor;
789
- PropertyDescriptorBuilder() : m_result(new PropertyDescriptor()) { }
790
-
791
- template<int STEP> PropertyDescriptorBuilder<STATE | STEP>& castState()
792
- {
793
- return *reinterpret_cast<PropertyDescriptorBuilder<STATE | STEP>*>(this);
794
- }
795
-
796
- std::unique_ptr<protocol::Runtime::PropertyDescriptor> m_result;
797
- };
798
-
799
- static PropertyDescriptorBuilder<0> create()
800
- {
801
- return PropertyDescriptorBuilder<0>();
802
- }
803
-
804
- private:
805
- DECLARE_SERIALIZATION_SUPPORT();
806
-
807
- PropertyDescriptor()
808
- {
809
- m_configurable = false;
810
- m_enumerable = false;
811
- }
812
-
813
- String m_name;
814
- Maybe<protocol::Runtime::RemoteObject> m_value;
815
- Maybe<bool> m_writable;
816
- Maybe<protocol::Runtime::RemoteObject> m_get;
817
- Maybe<protocol::Runtime::RemoteObject> m_set;
818
- bool m_configurable;
819
- bool m_enumerable;
820
- Maybe<bool> m_wasThrown;
821
- Maybe<bool> m_isOwn;
822
- Maybe<protocol::Runtime::RemoteObject> m_symbol;
823
- };
824
-
825
-
826
- class InternalPropertyDescriptor : public ::v8_crdtp::ProtocolObject<InternalPropertyDescriptor> {
827
- public:
828
- ~InternalPropertyDescriptor() override { }
829
-
830
- String getName() { return m_name; }
831
- void setName(const String& value) { m_name = value; }
832
-
833
- bool hasValue() { return m_value.isJust(); }
834
- protocol::Runtime::RemoteObject* getValue(protocol::Runtime::RemoteObject* defaultValue) { return m_value.isJust() ? m_value.fromJust() : defaultValue; }
835
- void setValue(std::unique_ptr<protocol::Runtime::RemoteObject> value) { m_value = std::move(value); }
836
-
837
- template<int STATE>
838
- class InternalPropertyDescriptorBuilder {
839
- public:
840
- enum {
841
- NoFieldsSet = 0,
842
- NameSet = 1 << 1,
843
- AllFieldsSet = (NameSet | 0)};
844
-
845
-
846
- InternalPropertyDescriptorBuilder<STATE | NameSet>& setName(const String& value)
847
- {
848
- static_assert(!(STATE & NameSet), "property name should not be set yet");
849
- m_result->setName(value);
850
- return castState<NameSet>();
851
- }
852
-
853
- InternalPropertyDescriptorBuilder<STATE>& setValue(std::unique_ptr<protocol::Runtime::RemoteObject> value)
854
- {
855
- m_result->setValue(std::move(value));
856
- return *this;
857
- }
858
-
859
- std::unique_ptr<InternalPropertyDescriptor> build()
860
- {
861
- static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
862
- return std::move(m_result);
863
- }
864
-
865
- private:
866
- friend class InternalPropertyDescriptor;
867
- InternalPropertyDescriptorBuilder() : m_result(new InternalPropertyDescriptor()) { }
868
-
869
- template<int STEP> InternalPropertyDescriptorBuilder<STATE | STEP>& castState()
870
- {
871
- return *reinterpret_cast<InternalPropertyDescriptorBuilder<STATE | STEP>*>(this);
872
- }
873
-
874
- std::unique_ptr<protocol::Runtime::InternalPropertyDescriptor> m_result;
875
- };
876
-
877
- static InternalPropertyDescriptorBuilder<0> create()
878
- {
879
- return InternalPropertyDescriptorBuilder<0>();
880
- }
881
-
882
- private:
883
- DECLARE_SERIALIZATION_SUPPORT();
884
-
885
- InternalPropertyDescriptor()
886
- {
887
- }
888
-
889
- String m_name;
890
- Maybe<protocol::Runtime::RemoteObject> m_value;
891
- };
892
-
893
-
894
- class PrivatePropertyDescriptor : public ::v8_crdtp::ProtocolObject<PrivatePropertyDescriptor> {
895
- public:
896
- ~PrivatePropertyDescriptor() override { }
897
-
898
- String getName() { return m_name; }
899
- void setName(const String& value) { m_name = value; }
900
-
901
- bool hasValue() { return m_value.isJust(); }
902
- protocol::Runtime::RemoteObject* getValue(protocol::Runtime::RemoteObject* defaultValue) { return m_value.isJust() ? m_value.fromJust() : defaultValue; }
903
- void setValue(std::unique_ptr<protocol::Runtime::RemoteObject> value) { m_value = std::move(value); }
904
-
905
- bool hasGet() { return m_get.isJust(); }
906
- protocol::Runtime::RemoteObject* getGet(protocol::Runtime::RemoteObject* defaultValue) { return m_get.isJust() ? m_get.fromJust() : defaultValue; }
907
- void setGet(std::unique_ptr<protocol::Runtime::RemoteObject> value) { m_get = std::move(value); }
908
-
909
- bool hasSet() { return m_set.isJust(); }
910
- protocol::Runtime::RemoteObject* getSet(protocol::Runtime::RemoteObject* defaultValue) { return m_set.isJust() ? m_set.fromJust() : defaultValue; }
911
- void setSet(std::unique_ptr<protocol::Runtime::RemoteObject> value) { m_set = std::move(value); }
912
-
913
- template<int STATE>
914
- class PrivatePropertyDescriptorBuilder {
915
- public:
916
- enum {
917
- NoFieldsSet = 0,
918
- NameSet = 1 << 1,
919
- AllFieldsSet = (NameSet | 0)};
920
-
921
-
922
- PrivatePropertyDescriptorBuilder<STATE | NameSet>& setName(const String& value)
923
- {
924
- static_assert(!(STATE & NameSet), "property name should not be set yet");
925
- m_result->setName(value);
926
- return castState<NameSet>();
927
- }
928
-
929
- PrivatePropertyDescriptorBuilder<STATE>& setValue(std::unique_ptr<protocol::Runtime::RemoteObject> value)
930
- {
931
- m_result->setValue(std::move(value));
932
- return *this;
933
- }
934
-
935
- PrivatePropertyDescriptorBuilder<STATE>& setGet(std::unique_ptr<protocol::Runtime::RemoteObject> value)
936
- {
937
- m_result->setGet(std::move(value));
938
- return *this;
939
- }
940
-
941
- PrivatePropertyDescriptorBuilder<STATE>& setSet(std::unique_ptr<protocol::Runtime::RemoteObject> value)
942
- {
943
- m_result->setSet(std::move(value));
944
- return *this;
945
- }
946
-
947
- std::unique_ptr<PrivatePropertyDescriptor> build()
948
- {
949
- static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
950
- return std::move(m_result);
951
- }
952
-
953
- private:
954
- friend class PrivatePropertyDescriptor;
955
- PrivatePropertyDescriptorBuilder() : m_result(new PrivatePropertyDescriptor()) { }
956
-
957
- template<int STEP> PrivatePropertyDescriptorBuilder<STATE | STEP>& castState()
958
- {
959
- return *reinterpret_cast<PrivatePropertyDescriptorBuilder<STATE | STEP>*>(this);
960
- }
961
-
962
- std::unique_ptr<protocol::Runtime::PrivatePropertyDescriptor> m_result;
963
- };
964
-
965
- static PrivatePropertyDescriptorBuilder<0> create()
966
- {
967
- return PrivatePropertyDescriptorBuilder<0>();
968
- }
969
-
970
- private:
971
- DECLARE_SERIALIZATION_SUPPORT();
972
-
973
- PrivatePropertyDescriptor()
974
- {
975
- }
976
-
977
- String m_name;
978
- Maybe<protocol::Runtime::RemoteObject> m_value;
979
- Maybe<protocol::Runtime::RemoteObject> m_get;
980
- Maybe<protocol::Runtime::RemoteObject> m_set;
981
- };
982
-
983
-
984
- class CallArgument : public ::v8_crdtp::ProtocolObject<CallArgument> {
985
- public:
986
- ~CallArgument() override { }
987
-
988
- bool hasValue() { return m_value.isJust(); }
989
- protocol::Value* getValue(protocol::Value* defaultValue) { return m_value.isJust() ? m_value.fromJust() : defaultValue; }
990
- void setValue(std::unique_ptr<protocol::Value> value) { m_value = std::move(value); }
991
-
992
- bool hasUnserializableValue() { return m_unserializableValue.isJust(); }
993
- String getUnserializableValue(const String& defaultValue) { return m_unserializableValue.isJust() ? m_unserializableValue.fromJust() : defaultValue; }
994
- void setUnserializableValue(const String& value) { m_unserializableValue = value; }
995
-
996
- bool hasObjectId() { return m_objectId.isJust(); }
997
- String getObjectId(const String& defaultValue) { return m_objectId.isJust() ? m_objectId.fromJust() : defaultValue; }
998
- void setObjectId(const String& value) { m_objectId = value; }
999
-
1000
- template<int STATE>
1001
- class CallArgumentBuilder {
1002
- public:
1003
- enum {
1004
- NoFieldsSet = 0,
1005
- AllFieldsSet = (0)};
1006
-
1007
-
1008
- CallArgumentBuilder<STATE>& setValue(std::unique_ptr<protocol::Value> value)
1009
- {
1010
- m_result->setValue(std::move(value));
1011
- return *this;
1012
- }
1013
-
1014
- CallArgumentBuilder<STATE>& setUnserializableValue(const String& value)
1015
- {
1016
- m_result->setUnserializableValue(value);
1017
- return *this;
1018
- }
1019
-
1020
- CallArgumentBuilder<STATE>& setObjectId(const String& value)
1021
- {
1022
- m_result->setObjectId(value);
1023
- return *this;
1024
- }
1025
-
1026
- std::unique_ptr<CallArgument> build()
1027
- {
1028
- static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
1029
- return std::move(m_result);
1030
- }
1031
-
1032
- private:
1033
- friend class CallArgument;
1034
- CallArgumentBuilder() : m_result(new CallArgument()) { }
1035
-
1036
- template<int STEP> CallArgumentBuilder<STATE | STEP>& castState()
1037
- {
1038
- return *reinterpret_cast<CallArgumentBuilder<STATE | STEP>*>(this);
1039
- }
1040
-
1041
- std::unique_ptr<protocol::Runtime::CallArgument> m_result;
1042
- };
1043
-
1044
- static CallArgumentBuilder<0> create()
1045
- {
1046
- return CallArgumentBuilder<0>();
1047
- }
1048
-
1049
- private:
1050
- DECLARE_SERIALIZATION_SUPPORT();
1051
-
1052
- CallArgument()
1053
- {
1054
- }
1055
-
1056
- Maybe<protocol::Value> m_value;
1057
- Maybe<String> m_unserializableValue;
1058
- Maybe<String> m_objectId;
1059
- };
1060
-
1061
-
1062
- class ExecutionContextDescription : public ::v8_crdtp::ProtocolObject<ExecutionContextDescription> {
1063
- public:
1064
- ~ExecutionContextDescription() override { }
1065
-
1066
- int getId() { return m_id; }
1067
- void setId(int value) { m_id = value; }
1068
-
1069
- String getOrigin() { return m_origin; }
1070
- void setOrigin(const String& value) { m_origin = value; }
1071
-
1072
- String getName() { return m_name; }
1073
- void setName(const String& value) { m_name = value; }
1074
-
1075
- String getUniqueId() { return m_uniqueId; }
1076
- void setUniqueId(const String& value) { m_uniqueId = value; }
1077
-
1078
- bool hasAuxData() { return m_auxData.isJust(); }
1079
- protocol::DictionaryValue* getAuxData(protocol::DictionaryValue* defaultValue) { return m_auxData.isJust() ? m_auxData.fromJust() : defaultValue; }
1080
- void setAuxData(std::unique_ptr<protocol::DictionaryValue> value) { m_auxData = std::move(value); }
1081
-
1082
- template<int STATE>
1083
- class ExecutionContextDescriptionBuilder {
1084
- public:
1085
- enum {
1086
- NoFieldsSet = 0,
1087
- IdSet = 1 << 1,
1088
- OriginSet = 1 << 2,
1089
- NameSet = 1 << 3,
1090
- UniqueIdSet = 1 << 4,
1091
- AllFieldsSet = (IdSet | OriginSet | NameSet | UniqueIdSet | 0)};
1092
-
1093
-
1094
- ExecutionContextDescriptionBuilder<STATE | IdSet>& setId(int value)
1095
- {
1096
- static_assert(!(STATE & IdSet), "property id should not be set yet");
1097
- m_result->setId(value);
1098
- return castState<IdSet>();
1099
- }
1100
-
1101
- ExecutionContextDescriptionBuilder<STATE | OriginSet>& setOrigin(const String& value)
1102
- {
1103
- static_assert(!(STATE & OriginSet), "property origin should not be set yet");
1104
- m_result->setOrigin(value);
1105
- return castState<OriginSet>();
1106
- }
1107
-
1108
- ExecutionContextDescriptionBuilder<STATE | NameSet>& setName(const String& value)
1109
- {
1110
- static_assert(!(STATE & NameSet), "property name should not be set yet");
1111
- m_result->setName(value);
1112
- return castState<NameSet>();
1113
- }
1114
-
1115
- ExecutionContextDescriptionBuilder<STATE | UniqueIdSet>& setUniqueId(const String& value)
1116
- {
1117
- static_assert(!(STATE & UniqueIdSet), "property uniqueId should not be set yet");
1118
- m_result->setUniqueId(value);
1119
- return castState<UniqueIdSet>();
1120
- }
1121
-
1122
- ExecutionContextDescriptionBuilder<STATE>& setAuxData(std::unique_ptr<protocol::DictionaryValue> value)
1123
- {
1124
- m_result->setAuxData(std::move(value));
1125
- return *this;
1126
- }
1127
-
1128
- std::unique_ptr<ExecutionContextDescription> build()
1129
- {
1130
- static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
1131
- return std::move(m_result);
1132
- }
1133
-
1134
- private:
1135
- friend class ExecutionContextDescription;
1136
- ExecutionContextDescriptionBuilder() : m_result(new ExecutionContextDescription()) { }
1137
-
1138
- template<int STEP> ExecutionContextDescriptionBuilder<STATE | STEP>& castState()
1139
- {
1140
- return *reinterpret_cast<ExecutionContextDescriptionBuilder<STATE | STEP>*>(this);
1141
- }
1142
-
1143
- std::unique_ptr<protocol::Runtime::ExecutionContextDescription> m_result;
1144
- };
1145
-
1146
- static ExecutionContextDescriptionBuilder<0> create()
1147
- {
1148
- return ExecutionContextDescriptionBuilder<0>();
1149
- }
1150
-
1151
- private:
1152
- DECLARE_SERIALIZATION_SUPPORT();
1153
-
1154
- ExecutionContextDescription()
1155
- {
1156
- m_id = 0;
1157
- }
1158
-
1159
- int m_id;
1160
- String m_origin;
1161
- String m_name;
1162
- String m_uniqueId;
1163
- Maybe<protocol::DictionaryValue> m_auxData;
1164
- };
1165
-
1166
-
1167
- class ExceptionDetails : public ::v8_crdtp::ProtocolObject<ExceptionDetails> {
1168
- public:
1169
- ~ExceptionDetails() override { }
1170
-
1171
- int getExceptionId() { return m_exceptionId; }
1172
- void setExceptionId(int value) { m_exceptionId = value; }
1173
-
1174
- String getText() { return m_text; }
1175
- void setText(const String& value) { m_text = value; }
1176
-
1177
- int getLineNumber() { return m_lineNumber; }
1178
- void setLineNumber(int value) { m_lineNumber = value; }
1179
-
1180
- int getColumnNumber() { return m_columnNumber; }
1181
- void setColumnNumber(int value) { m_columnNumber = value; }
1182
-
1183
- bool hasScriptId() { return m_scriptId.isJust(); }
1184
- String getScriptId(const String& defaultValue) { return m_scriptId.isJust() ? m_scriptId.fromJust() : defaultValue; }
1185
- void setScriptId(const String& value) { m_scriptId = value; }
1186
-
1187
- bool hasUrl() { return m_url.isJust(); }
1188
- String getUrl(const String& defaultValue) { return m_url.isJust() ? m_url.fromJust() : defaultValue; }
1189
- void setUrl(const String& value) { m_url = value; }
1190
-
1191
- bool hasStackTrace() { return m_stackTrace.isJust(); }
1192
- protocol::Runtime::StackTrace* getStackTrace(protocol::Runtime::StackTrace* defaultValue) { return m_stackTrace.isJust() ? m_stackTrace.fromJust() : defaultValue; }
1193
- void setStackTrace(std::unique_ptr<protocol::Runtime::StackTrace> value) { m_stackTrace = std::move(value); }
1194
-
1195
- bool hasException() { return m_exception.isJust(); }
1196
- protocol::Runtime::RemoteObject* getException(protocol::Runtime::RemoteObject* defaultValue) { return m_exception.isJust() ? m_exception.fromJust() : defaultValue; }
1197
- void setException(std::unique_ptr<protocol::Runtime::RemoteObject> value) { m_exception = std::move(value); }
1198
-
1199
- bool hasExecutionContextId() { return m_executionContextId.isJust(); }
1200
- int getExecutionContextId(int defaultValue) { return m_executionContextId.isJust() ? m_executionContextId.fromJust() : defaultValue; }
1201
- void setExecutionContextId(int value) { m_executionContextId = value; }
1202
-
1203
- template<int STATE>
1204
- class ExceptionDetailsBuilder {
1205
- public:
1206
- enum {
1207
- NoFieldsSet = 0,
1208
- ExceptionIdSet = 1 << 1,
1209
- TextSet = 1 << 2,
1210
- LineNumberSet = 1 << 3,
1211
- ColumnNumberSet = 1 << 4,
1212
- AllFieldsSet = (ExceptionIdSet | TextSet | LineNumberSet | ColumnNumberSet | 0)};
1213
-
1214
-
1215
- ExceptionDetailsBuilder<STATE | ExceptionIdSet>& setExceptionId(int value)
1216
- {
1217
- static_assert(!(STATE & ExceptionIdSet), "property exceptionId should not be set yet");
1218
- m_result->setExceptionId(value);
1219
- return castState<ExceptionIdSet>();
1220
- }
1221
-
1222
- ExceptionDetailsBuilder<STATE | TextSet>& setText(const String& value)
1223
- {
1224
- static_assert(!(STATE & TextSet), "property text should not be set yet");
1225
- m_result->setText(value);
1226
- return castState<TextSet>();
1227
- }
1228
-
1229
- ExceptionDetailsBuilder<STATE | LineNumberSet>& setLineNumber(int value)
1230
- {
1231
- static_assert(!(STATE & LineNumberSet), "property lineNumber should not be set yet");
1232
- m_result->setLineNumber(value);
1233
- return castState<LineNumberSet>();
1234
- }
1235
-
1236
- ExceptionDetailsBuilder<STATE | ColumnNumberSet>& setColumnNumber(int value)
1237
- {
1238
- static_assert(!(STATE & ColumnNumberSet), "property columnNumber should not be set yet");
1239
- m_result->setColumnNumber(value);
1240
- return castState<ColumnNumberSet>();
1241
- }
1242
-
1243
- ExceptionDetailsBuilder<STATE>& setScriptId(const String& value)
1244
- {
1245
- m_result->setScriptId(value);
1246
- return *this;
1247
- }
1248
-
1249
- ExceptionDetailsBuilder<STATE>& setUrl(const String& value)
1250
- {
1251
- m_result->setUrl(value);
1252
- return *this;
1253
- }
1254
-
1255
- ExceptionDetailsBuilder<STATE>& setStackTrace(std::unique_ptr<protocol::Runtime::StackTrace> value)
1256
- {
1257
- m_result->setStackTrace(std::move(value));
1258
- return *this;
1259
- }
1260
-
1261
- ExceptionDetailsBuilder<STATE>& setException(std::unique_ptr<protocol::Runtime::RemoteObject> value)
1262
- {
1263
- m_result->setException(std::move(value));
1264
- return *this;
1265
- }
1266
-
1267
- ExceptionDetailsBuilder<STATE>& setExecutionContextId(int value)
1268
- {
1269
- m_result->setExecutionContextId(value);
1270
- return *this;
1271
- }
1272
-
1273
- std::unique_ptr<ExceptionDetails> build()
1274
- {
1275
- static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
1276
- return std::move(m_result);
1277
- }
1278
-
1279
- private:
1280
- friend class ExceptionDetails;
1281
- ExceptionDetailsBuilder() : m_result(new ExceptionDetails()) { }
1282
-
1283
- template<int STEP> ExceptionDetailsBuilder<STATE | STEP>& castState()
1284
- {
1285
- return *reinterpret_cast<ExceptionDetailsBuilder<STATE | STEP>*>(this);
1286
- }
1287
-
1288
- std::unique_ptr<protocol::Runtime::ExceptionDetails> m_result;
1289
- };
1290
-
1291
- static ExceptionDetailsBuilder<0> create()
1292
- {
1293
- return ExceptionDetailsBuilder<0>();
1294
- }
1295
-
1296
- private:
1297
- DECLARE_SERIALIZATION_SUPPORT();
1298
-
1299
- ExceptionDetails()
1300
- {
1301
- m_exceptionId = 0;
1302
- m_lineNumber = 0;
1303
- m_columnNumber = 0;
1304
- }
1305
-
1306
- int m_exceptionId;
1307
- String m_text;
1308
- int m_lineNumber;
1309
- int m_columnNumber;
1310
- Maybe<String> m_scriptId;
1311
- Maybe<String> m_url;
1312
- Maybe<protocol::Runtime::StackTrace> m_stackTrace;
1313
- Maybe<protocol::Runtime::RemoteObject> m_exception;
1314
- Maybe<int> m_executionContextId;
1315
- };
1316
-
1317
-
1318
- class CallFrame : public ::v8_crdtp::ProtocolObject<CallFrame> {
1319
- public:
1320
- ~CallFrame() override { }
1321
-
1322
- String getFunctionName() { return m_functionName; }
1323
- void setFunctionName(const String& value) { m_functionName = value; }
1324
-
1325
- String getScriptId() { return m_scriptId; }
1326
- void setScriptId(const String& value) { m_scriptId = value; }
1327
-
1328
- String getUrl() { return m_url; }
1329
- void setUrl(const String& value) { m_url = value; }
1330
-
1331
- int getLineNumber() { return m_lineNumber; }
1332
- void setLineNumber(int value) { m_lineNumber = value; }
1333
-
1334
- int getColumnNumber() { return m_columnNumber; }
1335
- void setColumnNumber(int value) { m_columnNumber = value; }
1336
-
1337
- template<int STATE>
1338
- class CallFrameBuilder {
1339
- public:
1340
- enum {
1341
- NoFieldsSet = 0,
1342
- FunctionNameSet = 1 << 1,
1343
- ScriptIdSet = 1 << 2,
1344
- UrlSet = 1 << 3,
1345
- LineNumberSet = 1 << 4,
1346
- ColumnNumberSet = 1 << 5,
1347
- AllFieldsSet = (FunctionNameSet | ScriptIdSet | UrlSet | LineNumberSet | ColumnNumberSet | 0)};
1348
-
1349
-
1350
- CallFrameBuilder<STATE | FunctionNameSet>& setFunctionName(const String& value)
1351
- {
1352
- static_assert(!(STATE & FunctionNameSet), "property functionName should not be set yet");
1353
- m_result->setFunctionName(value);
1354
- return castState<FunctionNameSet>();
1355
- }
1356
-
1357
- CallFrameBuilder<STATE | ScriptIdSet>& setScriptId(const String& value)
1358
- {
1359
- static_assert(!(STATE & ScriptIdSet), "property scriptId should not be set yet");
1360
- m_result->setScriptId(value);
1361
- return castState<ScriptIdSet>();
1362
- }
1363
-
1364
- CallFrameBuilder<STATE | UrlSet>& setUrl(const String& value)
1365
- {
1366
- static_assert(!(STATE & UrlSet), "property url should not be set yet");
1367
- m_result->setUrl(value);
1368
- return castState<UrlSet>();
1369
- }
1370
-
1371
- CallFrameBuilder<STATE | LineNumberSet>& setLineNumber(int value)
1372
- {
1373
- static_assert(!(STATE & LineNumberSet), "property lineNumber should not be set yet");
1374
- m_result->setLineNumber(value);
1375
- return castState<LineNumberSet>();
1376
- }
1377
-
1378
- CallFrameBuilder<STATE | ColumnNumberSet>& setColumnNumber(int value)
1379
- {
1380
- static_assert(!(STATE & ColumnNumberSet), "property columnNumber should not be set yet");
1381
- m_result->setColumnNumber(value);
1382
- return castState<ColumnNumberSet>();
1383
- }
1384
-
1385
- std::unique_ptr<CallFrame> build()
1386
- {
1387
- static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
1388
- return std::move(m_result);
1389
- }
1390
-
1391
- private:
1392
- friend class CallFrame;
1393
- CallFrameBuilder() : m_result(new CallFrame()) { }
1394
-
1395
- template<int STEP> CallFrameBuilder<STATE | STEP>& castState()
1396
- {
1397
- return *reinterpret_cast<CallFrameBuilder<STATE | STEP>*>(this);
1398
- }
1399
-
1400
- std::unique_ptr<protocol::Runtime::CallFrame> m_result;
1401
- };
1402
-
1403
- static CallFrameBuilder<0> create()
1404
- {
1405
- return CallFrameBuilder<0>();
1406
- }
1407
-
1408
- private:
1409
- DECLARE_SERIALIZATION_SUPPORT();
1410
-
1411
- CallFrame()
1412
- {
1413
- m_lineNumber = 0;
1414
- m_columnNumber = 0;
1415
- }
1416
-
1417
- String m_functionName;
1418
- String m_scriptId;
1419
- String m_url;
1420
- int m_lineNumber;
1421
- int m_columnNumber;
1422
- };
1423
-
1424
-
1425
- class StackTrace : public ::v8_crdtp::ProtocolObject<StackTrace>,
1426
- public API::StackTrace {
1427
- public:
1428
- ~StackTrace() override { }
1429
-
1430
- bool hasDescription() { return m_description.isJust(); }
1431
- String getDescription(const String& defaultValue) { return m_description.isJust() ? m_description.fromJust() : defaultValue; }
1432
- void setDescription(const String& value) { m_description = value; }
1433
-
1434
- protocol::Array<protocol::Runtime::CallFrame>* getCallFrames() { return m_callFrames.get(); }
1435
- void setCallFrames(std::unique_ptr<protocol::Array<protocol::Runtime::CallFrame>> value) { m_callFrames = std::move(value); }
1436
-
1437
- bool hasParent() { return m_parent.isJust(); }
1438
- protocol::Runtime::StackTrace* getParent(protocol::Runtime::StackTrace* defaultValue) { return m_parent.isJust() ? m_parent.fromJust() : defaultValue; }
1439
- void setParent(std::unique_ptr<protocol::Runtime::StackTrace> value) { m_parent = std::move(value); }
1440
-
1441
- bool hasParentId() { return m_parentId.isJust(); }
1442
- protocol::Runtime::StackTraceId* getParentId(protocol::Runtime::StackTraceId* defaultValue) { return m_parentId.isJust() ? m_parentId.fromJust() : defaultValue; }
1443
- void setParentId(std::unique_ptr<protocol::Runtime::StackTraceId> value) { m_parentId = std::move(value); }
1444
-
1445
- template<int STATE>
1446
- class StackTraceBuilder {
1447
- public:
1448
- enum {
1449
- NoFieldsSet = 0,
1450
- CallFramesSet = 1 << 1,
1451
- AllFieldsSet = (CallFramesSet | 0)};
1452
-
1453
-
1454
- StackTraceBuilder<STATE>& setDescription(const String& value)
1455
- {
1456
- m_result->setDescription(value);
1457
- return *this;
1458
- }
1459
-
1460
- StackTraceBuilder<STATE | CallFramesSet>& setCallFrames(std::unique_ptr<protocol::Array<protocol::Runtime::CallFrame>> value)
1461
- {
1462
- static_assert(!(STATE & CallFramesSet), "property callFrames should not be set yet");
1463
- m_result->setCallFrames(std::move(value));
1464
- return castState<CallFramesSet>();
1465
- }
1466
-
1467
- StackTraceBuilder<STATE>& setParent(std::unique_ptr<protocol::Runtime::StackTrace> value)
1468
- {
1469
- m_result->setParent(std::move(value));
1470
- return *this;
1471
- }
1472
-
1473
- StackTraceBuilder<STATE>& setParentId(std::unique_ptr<protocol::Runtime::StackTraceId> value)
1474
- {
1475
- m_result->setParentId(std::move(value));
1476
- return *this;
1477
- }
1478
-
1479
- std::unique_ptr<StackTrace> build()
1480
- {
1481
- static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
1482
- return std::move(m_result);
1483
- }
1484
-
1485
- private:
1486
- friend class StackTrace;
1487
- StackTraceBuilder() : m_result(new StackTrace()) { }
1488
-
1489
- template<int STEP> StackTraceBuilder<STATE | STEP>& castState()
1490
- {
1491
- return *reinterpret_cast<StackTraceBuilder<STATE | STEP>*>(this);
1492
- }
1493
-
1494
- std::unique_ptr<protocol::Runtime::StackTrace> m_result;
1495
- };
1496
-
1497
- static StackTraceBuilder<0> create()
1498
- {
1499
- return StackTraceBuilder<0>();
1500
- }
1501
-
1502
- private:
1503
- DECLARE_SERIALIZATION_SUPPORT();
1504
-
1505
- StackTrace()
1506
- {
1507
- }
1508
-
1509
- Maybe<String> m_description;
1510
- std::unique_ptr<protocol::Array<protocol::Runtime::CallFrame>> m_callFrames;
1511
- Maybe<protocol::Runtime::StackTrace> m_parent;
1512
- Maybe<protocol::Runtime::StackTraceId> m_parentId;
1513
- };
1514
-
1515
-
1516
- class StackTraceId : public ::v8_crdtp::ProtocolObject<StackTraceId>,
1517
- public API::StackTraceId {
1518
- public:
1519
- ~StackTraceId() override { }
1520
-
1521
- String getId() { return m_id; }
1522
- void setId(const String& value) { m_id = value; }
1523
-
1524
- bool hasDebuggerId() { return m_debuggerId.isJust(); }
1525
- String getDebuggerId(const String& defaultValue) { return m_debuggerId.isJust() ? m_debuggerId.fromJust() : defaultValue; }
1526
- void setDebuggerId(const String& value) { m_debuggerId = value; }
1527
-
1528
- template<int STATE>
1529
- class StackTraceIdBuilder {
1530
- public:
1531
- enum {
1532
- NoFieldsSet = 0,
1533
- IdSet = 1 << 1,
1534
- AllFieldsSet = (IdSet | 0)};
1535
-
1536
-
1537
- StackTraceIdBuilder<STATE | IdSet>& setId(const String& value)
1538
- {
1539
- static_assert(!(STATE & IdSet), "property id should not be set yet");
1540
- m_result->setId(value);
1541
- return castState<IdSet>();
1542
- }
1543
-
1544
- StackTraceIdBuilder<STATE>& setDebuggerId(const String& value)
1545
- {
1546
- m_result->setDebuggerId(value);
1547
- return *this;
1548
- }
1549
-
1550
- std::unique_ptr<StackTraceId> build()
1551
- {
1552
- static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
1553
- return std::move(m_result);
1554
- }
1555
-
1556
- private:
1557
- friend class StackTraceId;
1558
- StackTraceIdBuilder() : m_result(new StackTraceId()) { }
1559
-
1560
- template<int STEP> StackTraceIdBuilder<STATE | STEP>& castState()
1561
- {
1562
- return *reinterpret_cast<StackTraceIdBuilder<STATE | STEP>*>(this);
1563
- }
1564
-
1565
- std::unique_ptr<protocol::Runtime::StackTraceId> m_result;
1566
- };
1567
-
1568
- static StackTraceIdBuilder<0> create()
1569
- {
1570
- return StackTraceIdBuilder<0>();
1571
- }
1572
-
1573
- private:
1574
- DECLARE_SERIALIZATION_SUPPORT();
1575
-
1576
- StackTraceId()
1577
- {
1578
- }
1579
-
1580
- String m_id;
1581
- Maybe<String> m_debuggerId;
1582
- };
1583
-
1584
-
1585
- // ------------- Backend interface.
1586
-
1587
- class Backend {
1588
- public:
1589
- virtual ~Backend() { }
1590
-
1591
- class AwaitPromiseCallback {
1592
- public:
1593
- virtual void sendSuccess(std::unique_ptr<protocol::Runtime::RemoteObject> result, Maybe<protocol::Runtime::ExceptionDetails> exceptionDetails) = 0;
1594
- virtual void sendFailure(const DispatchResponse&) = 0;
1595
- virtual void fallThrough() = 0;
1596
- virtual ~AwaitPromiseCallback() { }
1597
- };
1598
- virtual void awaitPromise(const String& in_promiseObjectId, Maybe<bool> in_returnByValue, Maybe<bool> in_generatePreview, std::unique_ptr<AwaitPromiseCallback> callback) = 0;
1599
- class CallFunctionOnCallback {
1600
- public:
1601
- virtual void sendSuccess(std::unique_ptr<protocol::Runtime::RemoteObject> result, Maybe<protocol::Runtime::ExceptionDetails> exceptionDetails) = 0;
1602
- virtual void sendFailure(const DispatchResponse&) = 0;
1603
- virtual void fallThrough() = 0;
1604
- virtual ~CallFunctionOnCallback() { }
1605
- };
1606
- virtual void callFunctionOn(const String& in_functionDeclaration, Maybe<String> in_objectId, Maybe<protocol::Array<protocol::Runtime::CallArgument>> in_arguments, Maybe<bool> in_silent, Maybe<bool> in_returnByValue, Maybe<bool> in_generatePreview, Maybe<bool> in_userGesture, Maybe<bool> in_awaitPromise, Maybe<int> in_executionContextId, Maybe<String> in_objectGroup, std::unique_ptr<CallFunctionOnCallback> callback) = 0;
1607
- virtual DispatchResponse compileScript(const String& in_expression, const String& in_sourceURL, bool in_persistScript, Maybe<int> in_executionContextId, Maybe<String>* out_scriptId, Maybe<protocol::Runtime::ExceptionDetails>* out_exceptionDetails) = 0;
1608
- virtual DispatchResponse disable() = 0;
1609
- virtual DispatchResponse discardConsoleEntries() = 0;
1610
- virtual DispatchResponse enable() = 0;
1611
- class EvaluateCallback {
1612
- public:
1613
- virtual void sendSuccess(std::unique_ptr<protocol::Runtime::RemoteObject> result, Maybe<protocol::Runtime::ExceptionDetails> exceptionDetails) = 0;
1614
- virtual void sendFailure(const DispatchResponse&) = 0;
1615
- virtual void fallThrough() = 0;
1616
- virtual ~EvaluateCallback() { }
1617
- };
1618
- virtual void evaluate(const String& in_expression, Maybe<String> in_objectGroup, Maybe<bool> in_includeCommandLineAPI, Maybe<bool> in_silent, Maybe<int> in_contextId, Maybe<bool> in_returnByValue, Maybe<bool> in_generatePreview, Maybe<bool> in_userGesture, Maybe<bool> in_awaitPromise, Maybe<bool> in_throwOnSideEffect, Maybe<double> in_timeout, Maybe<bool> in_disableBreaks, Maybe<bool> in_replMode, Maybe<bool> in_allowUnsafeEvalBlockedByCSP, Maybe<String> in_uniqueContextId, std::unique_ptr<EvaluateCallback> callback) = 0;
1619
- virtual DispatchResponse getIsolateId(String* out_id) = 0;
1620
- virtual DispatchResponse getHeapUsage(double* out_usedSize, double* out_totalSize) = 0;
1621
- virtual DispatchResponse getProperties(const String& in_objectId, Maybe<bool> in_ownProperties, Maybe<bool> in_accessorPropertiesOnly, Maybe<bool> in_generatePreview, std::unique_ptr<protocol::Array<protocol::Runtime::PropertyDescriptor>>* out_result, Maybe<protocol::Array<protocol::Runtime::InternalPropertyDescriptor>>* out_internalProperties, Maybe<protocol::Array<protocol::Runtime::PrivatePropertyDescriptor>>* out_privateProperties, Maybe<protocol::Runtime::ExceptionDetails>* out_exceptionDetails) = 0;
1622
- virtual DispatchResponse globalLexicalScopeNames(Maybe<int> in_executionContextId, std::unique_ptr<protocol::Array<String>>* out_names) = 0;
1623
- virtual DispatchResponse queryObjects(const String& in_prototypeObjectId, Maybe<String> in_objectGroup, std::unique_ptr<protocol::Runtime::RemoteObject>* out_objects) = 0;
1624
- virtual DispatchResponse releaseObject(const String& in_objectId) = 0;
1625
- virtual DispatchResponse releaseObjectGroup(const String& in_objectGroup) = 0;
1626
- virtual DispatchResponse runIfWaitingForDebugger() = 0;
1627
- class RunScriptCallback {
1628
- public:
1629
- virtual void sendSuccess(std::unique_ptr<protocol::Runtime::RemoteObject> result, Maybe<protocol::Runtime::ExceptionDetails> exceptionDetails) = 0;
1630
- virtual void sendFailure(const DispatchResponse&) = 0;
1631
- virtual void fallThrough() = 0;
1632
- virtual ~RunScriptCallback() { }
1633
- };
1634
- virtual void runScript(const String& in_scriptId, Maybe<int> in_executionContextId, Maybe<String> in_objectGroup, Maybe<bool> in_silent, Maybe<bool> in_includeCommandLineAPI, Maybe<bool> in_returnByValue, Maybe<bool> in_generatePreview, Maybe<bool> in_awaitPromise, std::unique_ptr<RunScriptCallback> callback) = 0;
1635
- virtual DispatchResponse setCustomObjectFormatterEnabled(bool in_enabled) = 0;
1636
- virtual DispatchResponse setMaxCallStackSizeToCapture(int in_size) = 0;
1637
- class TerminateExecutionCallback {
1638
- public:
1639
- virtual void sendSuccess() = 0;
1640
- virtual void sendFailure(const DispatchResponse&) = 0;
1641
- virtual void fallThrough() = 0;
1642
- virtual ~TerminateExecutionCallback() { }
1643
- };
1644
- virtual void terminateExecution(std::unique_ptr<TerminateExecutionCallback> callback) = 0;
1645
- virtual DispatchResponse addBinding(const String& in_name, Maybe<int> in_executionContextId, Maybe<String> in_executionContextName) = 0;
1646
- virtual DispatchResponse removeBinding(const String& in_name) = 0;
1647
-
1648
- };
1649
-
1650
- // ------------- Frontend interface.
1651
-
1652
- class Frontend {
1653
- public:
1654
- explicit Frontend(FrontendChannel* frontend_channel) : frontend_channel_(frontend_channel) {}
1655
- void bindingCalled(const String& name, const String& payload, int executionContextId);
1656
- void consoleAPICalled(const String& type, std::unique_ptr<protocol::Array<protocol::Runtime::RemoteObject>> args, int executionContextId, double timestamp, Maybe<protocol::Runtime::StackTrace> stackTrace = Maybe<protocol::Runtime::StackTrace>(), Maybe<String> context = Maybe<String>());
1657
- void exceptionRevoked(const String& reason, int exceptionId);
1658
- void exceptionThrown(double timestamp, std::unique_ptr<protocol::Runtime::ExceptionDetails> exceptionDetails);
1659
- void executionContextCreated(std::unique_ptr<protocol::Runtime::ExecutionContextDescription> context);
1660
- void executionContextDestroyed(int executionContextId);
1661
- void executionContextsCleared();
1662
- void inspectRequested(std::unique_ptr<protocol::Runtime::RemoteObject> object, std::unique_ptr<protocol::DictionaryValue> hints);
1663
-
1664
- void flush();
1665
- void sendRawNotification(std::unique_ptr<Serializable>);
1666
- private:
1667
- FrontendChannel* frontend_channel_;
1668
- };
1669
-
1670
- // ------------- Dispatcher.
1671
-
1672
- class Dispatcher {
1673
- public:
1674
- static void wire(UberDispatcher*, Backend*);
1675
-
1676
- private:
1677
- Dispatcher() { }
1678
- };
1679
-
1680
- // ------------- Metainfo.
1681
-
1682
- class Metainfo {
1683
- public:
1684
- using BackendClass = Backend;
1685
- using FrontendClass = Frontend;
1686
- using DispatcherClass = Dispatcher;
1687
- static const char domainName[];
1688
- static const char commandPrefix[];
1689
- static const char version[];
1690
- };
1691
-
1692
- } // namespace Runtime
1693
- } // namespace v8_inspector
1694
- } // namespace protocol
1695
-
1696
- #endif // !defined(v8_inspector_protocol_Runtime_h)