@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,1008 +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_DOM_h
8
- #define v8_inspector_protocol_DOM_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 "src/inspector/protocol/Runtime.h"
14
-
15
- namespace v8_inspector {
16
- namespace protocol {
17
- namespace DOM {
18
- using NodeId = int;
19
- using BackendNodeId = int;
20
- class BackendNode;
21
- using PseudoType = String;
22
- using ShadowRootType = String;
23
- class Node;
24
- class RGBA;
25
- class BoxModel;
26
- class ShapeOutsideInfo;
27
- class Rect;
28
-
29
- // ------------- Forward and enum declarations.
30
-
31
- namespace PseudoTypeEnum {
32
- extern const char FirstLine[];
33
- extern const char FirstLetter[];
34
- extern const char Before[];
35
- extern const char After[];
36
- extern const char Marker[];
37
- extern const char Backdrop[];
38
- extern const char Selection[];
39
- extern const char FirstLineInherited[];
40
- extern const char Scrollbar[];
41
- extern const char ScrollbarThumb[];
42
- extern const char ScrollbarButton[];
43
- extern const char ScrollbarTrack[];
44
- extern const char ScrollbarTrackPiece[];
45
- extern const char ScrollbarCorner[];
46
- extern const char Resizer[];
47
- extern const char InputListButton[];
48
- } // namespace PseudoTypeEnum
49
-
50
- namespace ShadowRootTypeEnum {
51
- extern const char UserAgent[];
52
- extern const char Open[];
53
- extern const char Closed[];
54
- } // namespace ShadowRootTypeEnum
55
-
56
- // ------------- Type and builder declarations.
57
-
58
- class BackendNode : public ::v8_crdtp::ProtocolObject<BackendNode> {
59
- public:
60
- ~BackendNode() override { }
61
-
62
- int getNodeType() { return m_nodeType; }
63
- void setNodeType(int value) { m_nodeType = value; }
64
-
65
- String getNodeName() { return m_nodeName; }
66
- void setNodeName(const String& value) { m_nodeName = value; }
67
-
68
- int getBackendNodeId() { return m_backendNodeId; }
69
- void setBackendNodeId(int value) { m_backendNodeId = value; }
70
-
71
- template<int STATE>
72
- class BackendNodeBuilder {
73
- public:
74
- enum {
75
- NoFieldsSet = 0,
76
- NodeTypeSet = 1 << 1,
77
- NodeNameSet = 1 << 2,
78
- BackendNodeIdSet = 1 << 3,
79
- AllFieldsSet = (NodeTypeSet | NodeNameSet | BackendNodeIdSet | 0)};
80
-
81
-
82
- BackendNodeBuilder<STATE | NodeTypeSet>& setNodeType(int value)
83
- {
84
- static_assert(!(STATE & NodeTypeSet), "property nodeType should not be set yet");
85
- m_result->setNodeType(value);
86
- return castState<NodeTypeSet>();
87
- }
88
-
89
- BackendNodeBuilder<STATE | NodeNameSet>& setNodeName(const String& value)
90
- {
91
- static_assert(!(STATE & NodeNameSet), "property nodeName should not be set yet");
92
- m_result->setNodeName(value);
93
- return castState<NodeNameSet>();
94
- }
95
-
96
- BackendNodeBuilder<STATE | BackendNodeIdSet>& setBackendNodeId(int value)
97
- {
98
- static_assert(!(STATE & BackendNodeIdSet), "property backendNodeId should not be set yet");
99
- m_result->setBackendNodeId(value);
100
- return castState<BackendNodeIdSet>();
101
- }
102
-
103
- std::unique_ptr<BackendNode> build()
104
- {
105
- static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
106
- return std::move(m_result);
107
- }
108
-
109
- private:
110
- friend class BackendNode;
111
- BackendNodeBuilder() : m_result(new BackendNode()) { }
112
-
113
- template<int STEP> BackendNodeBuilder<STATE | STEP>& castState()
114
- {
115
- return *reinterpret_cast<BackendNodeBuilder<STATE | STEP>*>(this);
116
- }
117
-
118
- std::unique_ptr<protocol::DOM::BackendNode> m_result;
119
- };
120
-
121
- static BackendNodeBuilder<0> create()
122
- {
123
- return BackendNodeBuilder<0>();
124
- }
125
-
126
- private:
127
- DECLARE_SERIALIZATION_SUPPORT();
128
-
129
- BackendNode()
130
- {
131
- m_nodeType = 0;
132
- m_backendNodeId = 0;
133
- }
134
-
135
- int m_nodeType;
136
- String m_nodeName;
137
- int m_backendNodeId;
138
- };
139
-
140
-
141
- class Node : public ::v8_crdtp::ProtocolObject<Node> {
142
- public:
143
- ~Node() override { }
144
-
145
- int getNodeId() { return m_nodeId; }
146
- void setNodeId(int value) { m_nodeId = value; }
147
-
148
- bool hasParentId() { return m_parentId.isJust(); }
149
- int getParentId(int defaultValue) { return m_parentId.isJust() ? m_parentId.fromJust() : defaultValue; }
150
- void setParentId(int value) { m_parentId = value; }
151
-
152
- int getBackendNodeId() { return m_backendNodeId; }
153
- void setBackendNodeId(int value) { m_backendNodeId = value; }
154
-
155
- int getNodeType() { return m_nodeType; }
156
- void setNodeType(int value) { m_nodeType = value; }
157
-
158
- String getNodeName() { return m_nodeName; }
159
- void setNodeName(const String& value) { m_nodeName = value; }
160
-
161
- String getLocalName() { return m_localName; }
162
- void setLocalName(const String& value) { m_localName = value; }
163
-
164
- String getNodeValue() { return m_nodeValue; }
165
- void setNodeValue(const String& value) { m_nodeValue = value; }
166
-
167
- bool hasChildNodeCount() { return m_childNodeCount.isJust(); }
168
- int getChildNodeCount(int defaultValue) { return m_childNodeCount.isJust() ? m_childNodeCount.fromJust() : defaultValue; }
169
- void setChildNodeCount(int value) { m_childNodeCount = value; }
170
-
171
- bool hasChildren() { return m_children.isJust(); }
172
- protocol::Array<protocol::DOM::Node>* getChildren(protocol::Array<protocol::DOM::Node>* defaultValue) { return m_children.isJust() ? m_children.fromJust() : defaultValue; }
173
- void setChildren(std::unique_ptr<protocol::Array<protocol::DOM::Node>> value) { m_children = std::move(value); }
174
-
175
- bool hasAttributes() { return m_attributes.isJust(); }
176
- protocol::Array<String>* getAttributes(protocol::Array<String>* defaultValue) { return m_attributes.isJust() ? m_attributes.fromJust() : defaultValue; }
177
- void setAttributes(std::unique_ptr<protocol::Array<String>> value) { m_attributes = std::move(value); }
178
-
179
- bool hasDocumentURL() { return m_documentURL.isJust(); }
180
- String getDocumentURL(const String& defaultValue) { return m_documentURL.isJust() ? m_documentURL.fromJust() : defaultValue; }
181
- void setDocumentURL(const String& value) { m_documentURL = value; }
182
-
183
- bool hasBaseURL() { return m_baseURL.isJust(); }
184
- String getBaseURL(const String& defaultValue) { return m_baseURL.isJust() ? m_baseURL.fromJust() : defaultValue; }
185
- void setBaseURL(const String& value) { m_baseURL = value; }
186
-
187
- bool hasPublicId() { return m_publicId.isJust(); }
188
- String getPublicId(const String& defaultValue) { return m_publicId.isJust() ? m_publicId.fromJust() : defaultValue; }
189
- void setPublicId(const String& value) { m_publicId = value; }
190
-
191
- bool hasSystemId() { return m_systemId.isJust(); }
192
- String getSystemId(const String& defaultValue) { return m_systemId.isJust() ? m_systemId.fromJust() : defaultValue; }
193
- void setSystemId(const String& value) { m_systemId = value; }
194
-
195
- bool hasInternalSubset() { return m_internalSubset.isJust(); }
196
- String getInternalSubset(const String& defaultValue) { return m_internalSubset.isJust() ? m_internalSubset.fromJust() : defaultValue; }
197
- void setInternalSubset(const String& value) { m_internalSubset = value; }
198
-
199
- bool hasXmlVersion() { return m_xmlVersion.isJust(); }
200
- String getXmlVersion(const String& defaultValue) { return m_xmlVersion.isJust() ? m_xmlVersion.fromJust() : defaultValue; }
201
- void setXmlVersion(const String& value) { m_xmlVersion = value; }
202
-
203
- bool hasName() { return m_name.isJust(); }
204
- String getName(const String& defaultValue) { return m_name.isJust() ? m_name.fromJust() : defaultValue; }
205
- void setName(const String& value) { m_name = value; }
206
-
207
- bool hasValue() { return m_value.isJust(); }
208
- String getValue(const String& defaultValue) { return m_value.isJust() ? m_value.fromJust() : defaultValue; }
209
- void setValue(const String& value) { m_value = value; }
210
-
211
- bool hasPseudoType() { return m_pseudoType.isJust(); }
212
- String getPseudoType(const String& defaultValue) { return m_pseudoType.isJust() ? m_pseudoType.fromJust() : defaultValue; }
213
- void setPseudoType(const String& value) { m_pseudoType = value; }
214
-
215
- bool hasShadowRootType() { return m_shadowRootType.isJust(); }
216
- String getShadowRootType(const String& defaultValue) { return m_shadowRootType.isJust() ? m_shadowRootType.fromJust() : defaultValue; }
217
- void setShadowRootType(const String& value) { m_shadowRootType = value; }
218
-
219
- bool hasFrameId() { return m_frameId.isJust(); }
220
- String getFrameId(const String& defaultValue) { return m_frameId.isJust() ? m_frameId.fromJust() : defaultValue; }
221
- void setFrameId(const String& value) { m_frameId = value; }
222
-
223
- bool hasContentDocument() { return m_contentDocument.isJust(); }
224
- protocol::DOM::Node* getContentDocument(protocol::DOM::Node* defaultValue) { return m_contentDocument.isJust() ? m_contentDocument.fromJust() : defaultValue; }
225
- void setContentDocument(std::unique_ptr<protocol::DOM::Node> value) { m_contentDocument = std::move(value); }
226
-
227
- bool hasShadowRoots() { return m_shadowRoots.isJust(); }
228
- protocol::Array<protocol::DOM::Node>* getShadowRoots(protocol::Array<protocol::DOM::Node>* defaultValue) { return m_shadowRoots.isJust() ? m_shadowRoots.fromJust() : defaultValue; }
229
- void setShadowRoots(std::unique_ptr<protocol::Array<protocol::DOM::Node>> value) { m_shadowRoots = std::move(value); }
230
-
231
- bool hasTemplateContent() { return m_templateContent.isJust(); }
232
- protocol::DOM::Node* getTemplateContent(protocol::DOM::Node* defaultValue) { return m_templateContent.isJust() ? m_templateContent.fromJust() : defaultValue; }
233
- void setTemplateContent(std::unique_ptr<protocol::DOM::Node> value) { m_templateContent = std::move(value); }
234
-
235
- bool hasPseudoElements() { return m_pseudoElements.isJust(); }
236
- protocol::Array<protocol::DOM::Node>* getPseudoElements(protocol::Array<protocol::DOM::Node>* defaultValue) { return m_pseudoElements.isJust() ? m_pseudoElements.fromJust() : defaultValue; }
237
- void setPseudoElements(std::unique_ptr<protocol::Array<protocol::DOM::Node>> value) { m_pseudoElements = std::move(value); }
238
-
239
- bool hasImportedDocument() { return m_importedDocument.isJust(); }
240
- protocol::DOM::Node* getImportedDocument(protocol::DOM::Node* defaultValue) { return m_importedDocument.isJust() ? m_importedDocument.fromJust() : defaultValue; }
241
- void setImportedDocument(std::unique_ptr<protocol::DOM::Node> value) { m_importedDocument = std::move(value); }
242
-
243
- bool hasDistributedNodes() { return m_distributedNodes.isJust(); }
244
- protocol::Array<protocol::DOM::BackendNode>* getDistributedNodes(protocol::Array<protocol::DOM::BackendNode>* defaultValue) { return m_distributedNodes.isJust() ? m_distributedNodes.fromJust() : defaultValue; }
245
- void setDistributedNodes(std::unique_ptr<protocol::Array<protocol::DOM::BackendNode>> value) { m_distributedNodes = std::move(value); }
246
-
247
- bool hasIsSVG() { return m_isSVG.isJust(); }
248
- bool getIsSVG(bool defaultValue) { return m_isSVG.isJust() ? m_isSVG.fromJust() : defaultValue; }
249
- void setIsSVG(bool value) { m_isSVG = value; }
250
-
251
- template<int STATE>
252
- class NodeBuilder {
253
- public:
254
- enum {
255
- NoFieldsSet = 0,
256
- NodeIdSet = 1 << 1,
257
- BackendNodeIdSet = 1 << 2,
258
- NodeTypeSet = 1 << 3,
259
- NodeNameSet = 1 << 4,
260
- LocalNameSet = 1 << 5,
261
- NodeValueSet = 1 << 6,
262
- AllFieldsSet = (NodeIdSet | BackendNodeIdSet | NodeTypeSet | NodeNameSet | LocalNameSet | NodeValueSet | 0)};
263
-
264
-
265
- NodeBuilder<STATE | NodeIdSet>& setNodeId(int value)
266
- {
267
- static_assert(!(STATE & NodeIdSet), "property nodeId should not be set yet");
268
- m_result->setNodeId(value);
269
- return castState<NodeIdSet>();
270
- }
271
-
272
- NodeBuilder<STATE>& setParentId(int value)
273
- {
274
- m_result->setParentId(value);
275
- return *this;
276
- }
277
-
278
- NodeBuilder<STATE | BackendNodeIdSet>& setBackendNodeId(int value)
279
- {
280
- static_assert(!(STATE & BackendNodeIdSet), "property backendNodeId should not be set yet");
281
- m_result->setBackendNodeId(value);
282
- return castState<BackendNodeIdSet>();
283
- }
284
-
285
- NodeBuilder<STATE | NodeTypeSet>& setNodeType(int value)
286
- {
287
- static_assert(!(STATE & NodeTypeSet), "property nodeType should not be set yet");
288
- m_result->setNodeType(value);
289
- return castState<NodeTypeSet>();
290
- }
291
-
292
- NodeBuilder<STATE | NodeNameSet>& setNodeName(const String& value)
293
- {
294
- static_assert(!(STATE & NodeNameSet), "property nodeName should not be set yet");
295
- m_result->setNodeName(value);
296
- return castState<NodeNameSet>();
297
- }
298
-
299
- NodeBuilder<STATE | LocalNameSet>& setLocalName(const String& value)
300
- {
301
- static_assert(!(STATE & LocalNameSet), "property localName should not be set yet");
302
- m_result->setLocalName(value);
303
- return castState<LocalNameSet>();
304
- }
305
-
306
- NodeBuilder<STATE | NodeValueSet>& setNodeValue(const String& value)
307
- {
308
- static_assert(!(STATE & NodeValueSet), "property nodeValue should not be set yet");
309
- m_result->setNodeValue(value);
310
- return castState<NodeValueSet>();
311
- }
312
-
313
- NodeBuilder<STATE>& setChildNodeCount(int value)
314
- {
315
- m_result->setChildNodeCount(value);
316
- return *this;
317
- }
318
-
319
- NodeBuilder<STATE>& setChildren(std::unique_ptr<protocol::Array<protocol::DOM::Node>> value)
320
- {
321
- m_result->setChildren(std::move(value));
322
- return *this;
323
- }
324
-
325
- NodeBuilder<STATE>& setAttributes(std::unique_ptr<protocol::Array<String>> value)
326
- {
327
- m_result->setAttributes(std::move(value));
328
- return *this;
329
- }
330
-
331
- NodeBuilder<STATE>& setDocumentURL(const String& value)
332
- {
333
- m_result->setDocumentURL(value);
334
- return *this;
335
- }
336
-
337
- NodeBuilder<STATE>& setBaseURL(const String& value)
338
- {
339
- m_result->setBaseURL(value);
340
- return *this;
341
- }
342
-
343
- NodeBuilder<STATE>& setPublicId(const String& value)
344
- {
345
- m_result->setPublicId(value);
346
- return *this;
347
- }
348
-
349
- NodeBuilder<STATE>& setSystemId(const String& value)
350
- {
351
- m_result->setSystemId(value);
352
- return *this;
353
- }
354
-
355
- NodeBuilder<STATE>& setInternalSubset(const String& value)
356
- {
357
- m_result->setInternalSubset(value);
358
- return *this;
359
- }
360
-
361
- NodeBuilder<STATE>& setXmlVersion(const String& value)
362
- {
363
- m_result->setXmlVersion(value);
364
- return *this;
365
- }
366
-
367
- NodeBuilder<STATE>& setName(const String& value)
368
- {
369
- m_result->setName(value);
370
- return *this;
371
- }
372
-
373
- NodeBuilder<STATE>& setValue(const String& value)
374
- {
375
- m_result->setValue(value);
376
- return *this;
377
- }
378
-
379
- NodeBuilder<STATE>& setPseudoType(const String& value)
380
- {
381
- m_result->setPseudoType(value);
382
- return *this;
383
- }
384
-
385
- NodeBuilder<STATE>& setShadowRootType(const String& value)
386
- {
387
- m_result->setShadowRootType(value);
388
- return *this;
389
- }
390
-
391
- NodeBuilder<STATE>& setFrameId(const String& value)
392
- {
393
- m_result->setFrameId(value);
394
- return *this;
395
- }
396
-
397
- NodeBuilder<STATE>& setContentDocument(std::unique_ptr<protocol::DOM::Node> value)
398
- {
399
- m_result->setContentDocument(std::move(value));
400
- return *this;
401
- }
402
-
403
- NodeBuilder<STATE>& setShadowRoots(std::unique_ptr<protocol::Array<protocol::DOM::Node>> value)
404
- {
405
- m_result->setShadowRoots(std::move(value));
406
- return *this;
407
- }
408
-
409
- NodeBuilder<STATE>& setTemplateContent(std::unique_ptr<protocol::DOM::Node> value)
410
- {
411
- m_result->setTemplateContent(std::move(value));
412
- return *this;
413
- }
414
-
415
- NodeBuilder<STATE>& setPseudoElements(std::unique_ptr<protocol::Array<protocol::DOM::Node>> value)
416
- {
417
- m_result->setPseudoElements(std::move(value));
418
- return *this;
419
- }
420
-
421
- NodeBuilder<STATE>& setImportedDocument(std::unique_ptr<protocol::DOM::Node> value)
422
- {
423
- m_result->setImportedDocument(std::move(value));
424
- return *this;
425
- }
426
-
427
- NodeBuilder<STATE>& setDistributedNodes(std::unique_ptr<protocol::Array<protocol::DOM::BackendNode>> value)
428
- {
429
- m_result->setDistributedNodes(std::move(value));
430
- return *this;
431
- }
432
-
433
- NodeBuilder<STATE>& setIsSVG(bool value)
434
- {
435
- m_result->setIsSVG(value);
436
- return *this;
437
- }
438
-
439
- std::unique_ptr<Node> build()
440
- {
441
- static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
442
- return std::move(m_result);
443
- }
444
-
445
- private:
446
- friend class Node;
447
- NodeBuilder() : m_result(new Node()) { }
448
-
449
- template<int STEP> NodeBuilder<STATE | STEP>& castState()
450
- {
451
- return *reinterpret_cast<NodeBuilder<STATE | STEP>*>(this);
452
- }
453
-
454
- std::unique_ptr<protocol::DOM::Node> m_result;
455
- };
456
-
457
- static NodeBuilder<0> create()
458
- {
459
- return NodeBuilder<0>();
460
- }
461
-
462
- private:
463
- DECLARE_SERIALIZATION_SUPPORT();
464
-
465
- Node()
466
- {
467
- m_nodeId = 0;
468
- m_backendNodeId = 0;
469
- m_nodeType = 0;
470
- }
471
-
472
- int m_nodeId;
473
- Maybe<int> m_parentId;
474
- int m_backendNodeId;
475
- int m_nodeType;
476
- String m_nodeName;
477
- String m_localName;
478
- String m_nodeValue;
479
- Maybe<int> m_childNodeCount;
480
- Maybe<protocol::Array<protocol::DOM::Node>> m_children;
481
- Maybe<protocol::Array<String>> m_attributes;
482
- Maybe<String> m_documentURL;
483
- Maybe<String> m_baseURL;
484
- Maybe<String> m_publicId;
485
- Maybe<String> m_systemId;
486
- Maybe<String> m_internalSubset;
487
- Maybe<String> m_xmlVersion;
488
- Maybe<String> m_name;
489
- Maybe<String> m_value;
490
- Maybe<String> m_pseudoType;
491
- Maybe<String> m_shadowRootType;
492
- Maybe<String> m_frameId;
493
- Maybe<protocol::DOM::Node> m_contentDocument;
494
- Maybe<protocol::Array<protocol::DOM::Node>> m_shadowRoots;
495
- Maybe<protocol::DOM::Node> m_templateContent;
496
- Maybe<protocol::Array<protocol::DOM::Node>> m_pseudoElements;
497
- Maybe<protocol::DOM::Node> m_importedDocument;
498
- Maybe<protocol::Array<protocol::DOM::BackendNode>> m_distributedNodes;
499
- Maybe<bool> m_isSVG;
500
- };
501
-
502
-
503
- class RGBA : public ::v8_crdtp::ProtocolObject<RGBA> {
504
- public:
505
- ~RGBA() override { }
506
-
507
- int getR() { return m_r; }
508
- void setR(int value) { m_r = value; }
509
-
510
- int getG() { return m_g; }
511
- void setG(int value) { m_g = value; }
512
-
513
- int getB() { return m_b; }
514
- void setB(int value) { m_b = value; }
515
-
516
- bool hasA() { return m_a.isJust(); }
517
- double getA(double defaultValue) { return m_a.isJust() ? m_a.fromJust() : defaultValue; }
518
- void setA(double value) { m_a = value; }
519
-
520
- template<int STATE>
521
- class RGBABuilder {
522
- public:
523
- enum {
524
- NoFieldsSet = 0,
525
- RSet = 1 << 1,
526
- GSet = 1 << 2,
527
- BSet = 1 << 3,
528
- AllFieldsSet = (RSet | GSet | BSet | 0)};
529
-
530
-
531
- RGBABuilder<STATE | RSet>& setR(int value)
532
- {
533
- static_assert(!(STATE & RSet), "property r should not be set yet");
534
- m_result->setR(value);
535
- return castState<RSet>();
536
- }
537
-
538
- RGBABuilder<STATE | GSet>& setG(int value)
539
- {
540
- static_assert(!(STATE & GSet), "property g should not be set yet");
541
- m_result->setG(value);
542
- return castState<GSet>();
543
- }
544
-
545
- RGBABuilder<STATE | BSet>& setB(int value)
546
- {
547
- static_assert(!(STATE & BSet), "property b should not be set yet");
548
- m_result->setB(value);
549
- return castState<BSet>();
550
- }
551
-
552
- RGBABuilder<STATE>& setA(double value)
553
- {
554
- m_result->setA(value);
555
- return *this;
556
- }
557
-
558
- std::unique_ptr<RGBA> build()
559
- {
560
- static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
561
- return std::move(m_result);
562
- }
563
-
564
- private:
565
- friend class RGBA;
566
- RGBABuilder() : m_result(new RGBA()) { }
567
-
568
- template<int STEP> RGBABuilder<STATE | STEP>& castState()
569
- {
570
- return *reinterpret_cast<RGBABuilder<STATE | STEP>*>(this);
571
- }
572
-
573
- std::unique_ptr<protocol::DOM::RGBA> m_result;
574
- };
575
-
576
- static RGBABuilder<0> create()
577
- {
578
- return RGBABuilder<0>();
579
- }
580
-
581
- private:
582
- DECLARE_SERIALIZATION_SUPPORT();
583
-
584
- RGBA()
585
- {
586
- m_r = 0;
587
- m_g = 0;
588
- m_b = 0;
589
- }
590
-
591
- int m_r;
592
- int m_g;
593
- int m_b;
594
- Maybe<double> m_a;
595
- };
596
-
597
-
598
- class BoxModel : public ::v8_crdtp::ProtocolObject<BoxModel> {
599
- public:
600
- ~BoxModel() override { }
601
-
602
- protocol::Array<double>* getContent() { return m_content.get(); }
603
- void setContent(std::unique_ptr<protocol::Array<double>> value) { m_content = std::move(value); }
604
-
605
- protocol::Array<double>* getPadding() { return m_padding.get(); }
606
- void setPadding(std::unique_ptr<protocol::Array<double>> value) { m_padding = std::move(value); }
607
-
608
- protocol::Array<double>* getBorder() { return m_border.get(); }
609
- void setBorder(std::unique_ptr<protocol::Array<double>> value) { m_border = std::move(value); }
610
-
611
- protocol::Array<double>* getMargin() { return m_margin.get(); }
612
- void setMargin(std::unique_ptr<protocol::Array<double>> value) { m_margin = std::move(value); }
613
-
614
- int getWidth() { return m_width; }
615
- void setWidth(int value) { m_width = value; }
616
-
617
- int getHeight() { return m_height; }
618
- void setHeight(int value) { m_height = value; }
619
-
620
- bool hasShapeOutside() { return m_shapeOutside.isJust(); }
621
- protocol::DOM::ShapeOutsideInfo* getShapeOutside(protocol::DOM::ShapeOutsideInfo* defaultValue) { return m_shapeOutside.isJust() ? m_shapeOutside.fromJust() : defaultValue; }
622
- void setShapeOutside(std::unique_ptr<protocol::DOM::ShapeOutsideInfo> value) { m_shapeOutside = std::move(value); }
623
-
624
- template<int STATE>
625
- class BoxModelBuilder {
626
- public:
627
- enum {
628
- NoFieldsSet = 0,
629
- ContentSet = 1 << 1,
630
- PaddingSet = 1 << 2,
631
- BorderSet = 1 << 3,
632
- MarginSet = 1 << 4,
633
- WidthSet = 1 << 5,
634
- HeightSet = 1 << 6,
635
- AllFieldsSet = (ContentSet | PaddingSet | BorderSet | MarginSet | WidthSet | HeightSet | 0)};
636
-
637
-
638
- BoxModelBuilder<STATE | ContentSet>& setContent(std::unique_ptr<protocol::Array<double>> value)
639
- {
640
- static_assert(!(STATE & ContentSet), "property content should not be set yet");
641
- m_result->setContent(std::move(value));
642
- return castState<ContentSet>();
643
- }
644
-
645
- BoxModelBuilder<STATE | PaddingSet>& setPadding(std::unique_ptr<protocol::Array<double>> value)
646
- {
647
- static_assert(!(STATE & PaddingSet), "property padding should not be set yet");
648
- m_result->setPadding(std::move(value));
649
- return castState<PaddingSet>();
650
- }
651
-
652
- BoxModelBuilder<STATE | BorderSet>& setBorder(std::unique_ptr<protocol::Array<double>> value)
653
- {
654
- static_assert(!(STATE & BorderSet), "property border should not be set yet");
655
- m_result->setBorder(std::move(value));
656
- return castState<BorderSet>();
657
- }
658
-
659
- BoxModelBuilder<STATE | MarginSet>& setMargin(std::unique_ptr<protocol::Array<double>> value)
660
- {
661
- static_assert(!(STATE & MarginSet), "property margin should not be set yet");
662
- m_result->setMargin(std::move(value));
663
- return castState<MarginSet>();
664
- }
665
-
666
- BoxModelBuilder<STATE | WidthSet>& setWidth(int value)
667
- {
668
- static_assert(!(STATE & WidthSet), "property width should not be set yet");
669
- m_result->setWidth(value);
670
- return castState<WidthSet>();
671
- }
672
-
673
- BoxModelBuilder<STATE | HeightSet>& setHeight(int value)
674
- {
675
- static_assert(!(STATE & HeightSet), "property height should not be set yet");
676
- m_result->setHeight(value);
677
- return castState<HeightSet>();
678
- }
679
-
680
- BoxModelBuilder<STATE>& setShapeOutside(std::unique_ptr<protocol::DOM::ShapeOutsideInfo> value)
681
- {
682
- m_result->setShapeOutside(std::move(value));
683
- return *this;
684
- }
685
-
686
- std::unique_ptr<BoxModel> build()
687
- {
688
- static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
689
- return std::move(m_result);
690
- }
691
-
692
- private:
693
- friend class BoxModel;
694
- BoxModelBuilder() : m_result(new BoxModel()) { }
695
-
696
- template<int STEP> BoxModelBuilder<STATE | STEP>& castState()
697
- {
698
- return *reinterpret_cast<BoxModelBuilder<STATE | STEP>*>(this);
699
- }
700
-
701
- std::unique_ptr<protocol::DOM::BoxModel> m_result;
702
- };
703
-
704
- static BoxModelBuilder<0> create()
705
- {
706
- return BoxModelBuilder<0>();
707
- }
708
-
709
- private:
710
- DECLARE_SERIALIZATION_SUPPORT();
711
-
712
- BoxModel()
713
- {
714
- m_width = 0;
715
- m_height = 0;
716
- }
717
-
718
- std::unique_ptr<protocol::Array<double>> m_content;
719
- std::unique_ptr<protocol::Array<double>> m_padding;
720
- std::unique_ptr<protocol::Array<double>> m_border;
721
- std::unique_ptr<protocol::Array<double>> m_margin;
722
- int m_width;
723
- int m_height;
724
- Maybe<protocol::DOM::ShapeOutsideInfo> m_shapeOutside;
725
- };
726
-
727
-
728
- class ShapeOutsideInfo : public ::v8_crdtp::ProtocolObject<ShapeOutsideInfo> {
729
- public:
730
- ~ShapeOutsideInfo() override { }
731
-
732
- protocol::Array<double>* getBounds() { return m_bounds.get(); }
733
- void setBounds(std::unique_ptr<protocol::Array<double>> value) { m_bounds = std::move(value); }
734
-
735
- protocol::Array<protocol::Value>* getShape() { return m_shape.get(); }
736
- void setShape(std::unique_ptr<protocol::Array<protocol::Value>> value) { m_shape = std::move(value); }
737
-
738
- protocol::Array<protocol::Value>* getMarginShape() { return m_marginShape.get(); }
739
- void setMarginShape(std::unique_ptr<protocol::Array<protocol::Value>> value) { m_marginShape = std::move(value); }
740
-
741
- template<int STATE>
742
- class ShapeOutsideInfoBuilder {
743
- public:
744
- enum {
745
- NoFieldsSet = 0,
746
- BoundsSet = 1 << 1,
747
- ShapeSet = 1 << 2,
748
- MarginShapeSet = 1 << 3,
749
- AllFieldsSet = (BoundsSet | ShapeSet | MarginShapeSet | 0)};
750
-
751
-
752
- ShapeOutsideInfoBuilder<STATE | BoundsSet>& setBounds(std::unique_ptr<protocol::Array<double>> value)
753
- {
754
- static_assert(!(STATE & BoundsSet), "property bounds should not be set yet");
755
- m_result->setBounds(std::move(value));
756
- return castState<BoundsSet>();
757
- }
758
-
759
- ShapeOutsideInfoBuilder<STATE | ShapeSet>& setShape(std::unique_ptr<protocol::Array<protocol::Value>> value)
760
- {
761
- static_assert(!(STATE & ShapeSet), "property shape should not be set yet");
762
- m_result->setShape(std::move(value));
763
- return castState<ShapeSet>();
764
- }
765
-
766
- ShapeOutsideInfoBuilder<STATE | MarginShapeSet>& setMarginShape(std::unique_ptr<protocol::Array<protocol::Value>> value)
767
- {
768
- static_assert(!(STATE & MarginShapeSet), "property marginShape should not be set yet");
769
- m_result->setMarginShape(std::move(value));
770
- return castState<MarginShapeSet>();
771
- }
772
-
773
- std::unique_ptr<ShapeOutsideInfo> build()
774
- {
775
- static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
776
- return std::move(m_result);
777
- }
778
-
779
- private:
780
- friend class ShapeOutsideInfo;
781
- ShapeOutsideInfoBuilder() : m_result(new ShapeOutsideInfo()) { }
782
-
783
- template<int STEP> ShapeOutsideInfoBuilder<STATE | STEP>& castState()
784
- {
785
- return *reinterpret_cast<ShapeOutsideInfoBuilder<STATE | STEP>*>(this);
786
- }
787
-
788
- std::unique_ptr<protocol::DOM::ShapeOutsideInfo> m_result;
789
- };
790
-
791
- static ShapeOutsideInfoBuilder<0> create()
792
- {
793
- return ShapeOutsideInfoBuilder<0>();
794
- }
795
-
796
- private:
797
- DECLARE_SERIALIZATION_SUPPORT();
798
-
799
- ShapeOutsideInfo()
800
- {
801
- }
802
-
803
- std::unique_ptr<protocol::Array<double>> m_bounds;
804
- std::unique_ptr<protocol::Array<protocol::Value>> m_shape;
805
- std::unique_ptr<protocol::Array<protocol::Value>> m_marginShape;
806
- };
807
-
808
-
809
- class Rect : public ::v8_crdtp::ProtocolObject<Rect> {
810
- public:
811
- ~Rect() override { }
812
-
813
- double getX() { return m_x; }
814
- void setX(double value) { m_x = value; }
815
-
816
- double getY() { return m_y; }
817
- void setY(double value) { m_y = value; }
818
-
819
- double getWidth() { return m_width; }
820
- void setWidth(double value) { m_width = value; }
821
-
822
- double getHeight() { return m_height; }
823
- void setHeight(double value) { m_height = value; }
824
-
825
- template<int STATE>
826
- class RectBuilder {
827
- public:
828
- enum {
829
- NoFieldsSet = 0,
830
- XSet = 1 << 1,
831
- YSet = 1 << 2,
832
- WidthSet = 1 << 3,
833
- HeightSet = 1 << 4,
834
- AllFieldsSet = (XSet | YSet | WidthSet | HeightSet | 0)};
835
-
836
-
837
- RectBuilder<STATE | XSet>& setX(double value)
838
- {
839
- static_assert(!(STATE & XSet), "property x should not be set yet");
840
- m_result->setX(value);
841
- return castState<XSet>();
842
- }
843
-
844
- RectBuilder<STATE | YSet>& setY(double value)
845
- {
846
- static_assert(!(STATE & YSet), "property y should not be set yet");
847
- m_result->setY(value);
848
- return castState<YSet>();
849
- }
850
-
851
- RectBuilder<STATE | WidthSet>& setWidth(double value)
852
- {
853
- static_assert(!(STATE & WidthSet), "property width should not be set yet");
854
- m_result->setWidth(value);
855
- return castState<WidthSet>();
856
- }
857
-
858
- RectBuilder<STATE | HeightSet>& setHeight(double value)
859
- {
860
- static_assert(!(STATE & HeightSet), "property height should not be set yet");
861
- m_result->setHeight(value);
862
- return castState<HeightSet>();
863
- }
864
-
865
- std::unique_ptr<Rect> build()
866
- {
867
- static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
868
- return std::move(m_result);
869
- }
870
-
871
- private:
872
- friend class Rect;
873
- RectBuilder() : m_result(new Rect()) { }
874
-
875
- template<int STEP> RectBuilder<STATE | STEP>& castState()
876
- {
877
- return *reinterpret_cast<RectBuilder<STATE | STEP>*>(this);
878
- }
879
-
880
- std::unique_ptr<protocol::DOM::Rect> m_result;
881
- };
882
-
883
- static RectBuilder<0> create()
884
- {
885
- return RectBuilder<0>();
886
- }
887
-
888
- private:
889
- DECLARE_SERIALIZATION_SUPPORT();
890
-
891
- Rect()
892
- {
893
- m_x = 0;
894
- m_y = 0;
895
- m_width = 0;
896
- m_height = 0;
897
- }
898
-
899
- double m_x;
900
- double m_y;
901
- double m_width;
902
- double m_height;
903
- };
904
-
905
-
906
- // ------------- Backend interface.
907
-
908
- class Backend {
909
- public:
910
- virtual ~Backend() { }
911
-
912
- virtual DispatchResponse collectClassNamesFromSubtree(int in_nodeId, std::unique_ptr<protocol::Array<String>>* out_classNames) = 0;
913
- virtual DispatchResponse copyTo(int in_nodeId, int in_targetNodeId, Maybe<int> in_insertBeforeNodeId, int* out_nodeId) = 0;
914
- virtual DispatchResponse describeNode(Maybe<int> in_nodeId, Maybe<int> in_backendNodeId, Maybe<String> in_objectId, Maybe<int> in_depth, Maybe<bool> in_pierce, std::unique_ptr<protocol::DOM::Node>* out_node) = 0;
915
- virtual DispatchResponse disable() = 0;
916
- virtual DispatchResponse discardSearchResults(const String& in_searchId) = 0;
917
- virtual DispatchResponse enable() = 0;
918
- virtual DispatchResponse focus(Maybe<int> in_nodeId, Maybe<int> in_backendNodeId, Maybe<String> in_objectId) = 0;
919
- virtual DispatchResponse getAttributes(int in_nodeId, std::unique_ptr<protocol::Array<String>>* out_attributes) = 0;
920
- virtual DispatchResponse getBoxModel(Maybe<int> in_nodeId, Maybe<int> in_backendNodeId, Maybe<String> in_objectId, std::unique_ptr<protocol::DOM::BoxModel>* out_model) = 0;
921
- virtual DispatchResponse getContentQuads(Maybe<int> in_nodeId, Maybe<int> in_backendNodeId, Maybe<String> in_objectId, std::unique_ptr<protocol::Array<protocol::Array<double>>>* out_quads) = 0;
922
- virtual DispatchResponse getDocument(Maybe<int> in_depth, Maybe<bool> in_pierce, std::unique_ptr<protocol::DOM::Node>* out_root) = 0;
923
- virtual DispatchResponse getFlattenedDocument(Maybe<int> in_depth, Maybe<bool> in_pierce, std::unique_ptr<protocol::Array<protocol::DOM::Node>>* out_nodes) = 0;
924
- virtual DispatchResponse getNodeForLocation(int in_x, int in_y, Maybe<bool> in_includeUserAgentShadowDOM, Maybe<bool> in_ignorePointerEventsNone, int* out_backendNodeId, String* out_frameId, Maybe<int>* out_nodeId) = 0;
925
- virtual DispatchResponse getOuterHTML(Maybe<int> in_nodeId, Maybe<int> in_backendNodeId, Maybe<String> in_objectId, String* out_outerHTML) = 0;
926
- virtual DispatchResponse getRelayoutBoundary(int in_nodeId, int* out_nodeId) = 0;
927
- virtual DispatchResponse getSearchResults(const String& in_searchId, int in_fromIndex, int in_toIndex, std::unique_ptr<protocol::Array<int>>* out_nodeIds) = 0;
928
- virtual DispatchResponse markUndoableState() = 0;
929
- virtual DispatchResponse moveTo(int in_nodeId, int in_targetNodeId, Maybe<int> in_insertBeforeNodeId, int* out_nodeId) = 0;
930
- virtual DispatchResponse performSearch(const String& in_query, Maybe<bool> in_includeUserAgentShadowDOM, String* out_searchId, int* out_resultCount) = 0;
931
- virtual DispatchResponse pushNodeByPathToFrontend(const String& in_path, int* out_nodeId) = 0;
932
- virtual DispatchResponse pushNodesByBackendIdsToFrontend(std::unique_ptr<protocol::Array<int>> in_backendNodeIds, std::unique_ptr<protocol::Array<int>>* out_nodeIds) = 0;
933
- virtual DispatchResponse querySelector(int in_nodeId, const String& in_selector, int* out_nodeId) = 0;
934
- virtual DispatchResponse querySelectorAll(int in_nodeId, const String& in_selector, std::unique_ptr<protocol::Array<int>>* out_nodeIds) = 0;
935
- virtual DispatchResponse redo() = 0;
936
- virtual DispatchResponse removeAttribute(int in_nodeId, const String& in_name) = 0;
937
- virtual DispatchResponse removeNode(int in_nodeId) = 0;
938
- virtual DispatchResponse requestChildNodes(int in_nodeId, Maybe<int> in_depth, Maybe<bool> in_pierce) = 0;
939
- virtual DispatchResponse requestNode(const String& in_objectId, int* out_nodeId) = 0;
940
- virtual DispatchResponse resolveNode(Maybe<int> in_nodeId, Maybe<int> in_backendNodeId, Maybe<String> in_objectGroup, Maybe<int> in_executionContextId, std::unique_ptr<protocol::Runtime::RemoteObject>* out_object) = 0;
941
- virtual DispatchResponse setAttributeValue(int in_nodeId, const String& in_name, const String& in_value) = 0;
942
- virtual DispatchResponse setAttributesAsText(int in_nodeId, const String& in_text, Maybe<String> in_name) = 0;
943
- virtual DispatchResponse setFileInputFiles(std::unique_ptr<protocol::Array<String>> in_files, Maybe<int> in_nodeId, Maybe<int> in_backendNodeId, Maybe<String> in_objectId) = 0;
944
- virtual DispatchResponse setNodeStackTracesEnabled(bool in_enable) = 0;
945
- virtual DispatchResponse getNodeStackTraces(int in_nodeId, Maybe<protocol::Runtime::StackTrace>* out_creation) = 0;
946
- virtual DispatchResponse getFileInfo(const String& in_objectId, String* out_path) = 0;
947
- virtual DispatchResponse setInspectedNode(int in_nodeId) = 0;
948
- virtual DispatchResponse setNodeName(int in_nodeId, const String& in_name, int* out_nodeId) = 0;
949
- virtual DispatchResponse setNodeValue(int in_nodeId, const String& in_value) = 0;
950
- virtual DispatchResponse setOuterHTML(int in_nodeId, const String& in_outerHTML) = 0;
951
- virtual DispatchResponse undo() = 0;
952
- virtual DispatchResponse getFrameOwner(const String& in_frameId, int* out_backendNodeId, Maybe<int>* out_nodeId) = 0;
953
-
954
- };
955
-
956
- // ------------- Frontend interface.
957
-
958
- class Frontend {
959
- public:
960
- explicit Frontend(FrontendChannel* frontend_channel) : frontend_channel_(frontend_channel) {}
961
- void attributeModified(int nodeId, const String& name, const String& value);
962
- void attributeRemoved(int nodeId, const String& name);
963
- void characterDataModified(int nodeId, const String& characterData);
964
- void childNodeCountUpdated(int nodeId, int childNodeCount);
965
- void childNodeInserted(int parentNodeId, int previousNodeId, std::unique_ptr<protocol::DOM::Node> node);
966
- void childNodeRemoved(int parentNodeId, int nodeId);
967
- void distributedNodesUpdated(int insertionPointId, std::unique_ptr<protocol::Array<protocol::DOM::BackendNode>> distributedNodes);
968
- void documentUpdated();
969
- void inlineStyleInvalidated(std::unique_ptr<protocol::Array<int>> nodeIds);
970
- void pseudoElementAdded(int parentId, std::unique_ptr<protocol::DOM::Node> pseudoElement);
971
- void pseudoElementRemoved(int parentId, int pseudoElementId);
972
- void setChildNodes(int parentId, std::unique_ptr<protocol::Array<protocol::DOM::Node>> nodes);
973
- void shadowRootPopped(int hostId, int rootId);
974
- void shadowRootPushed(int hostId, std::unique_ptr<protocol::DOM::Node> root);
975
-
976
- void flush();
977
- void sendRawNotification(std::unique_ptr<Serializable>);
978
- private:
979
- FrontendChannel* frontend_channel_;
980
- };
981
-
982
- // ------------- Dispatcher.
983
-
984
- class Dispatcher {
985
- public:
986
- static void wire(UberDispatcher*, Backend*);
987
-
988
- private:
989
- Dispatcher() { }
990
- };
991
-
992
- // ------------- Metainfo.
993
-
994
- class Metainfo {
995
- public:
996
- using BackendClass = Backend;
997
- using FrontendClass = Frontend;
998
- using DispatcherClass = Dispatcher;
999
- static const char domainName[];
1000
- static const char commandPrefix[];
1001
- static const char version[];
1002
- };
1003
-
1004
- } // namespace DOM
1005
- } // namespace v8_inspector
1006
- } // namespace protocol
1007
-
1008
- #endif // !defined(v8_inspector_protocol_DOM_h)