@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,1189 +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_Page_h
8
- #define v8_inspector_protocol_Page_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/Debugger.h"
14
- #include "src/inspector/protocol/DOM.h"
15
- #include "src/inspector/protocol/Network.h"
16
- #include "src/inspector/protocol/Runtime.h"
17
-
18
- namespace v8_inspector {
19
- namespace protocol {
20
- namespace Page {
21
- using FrameId = String;
22
- class Frame;
23
- class FrameResource;
24
- class FrameResourceTree;
25
- class FrameTree;
26
- using ScriptIdentifier = String;
27
- class LayoutViewport;
28
- class VisualViewport;
29
- class Viewport;
30
- class FontFamilies;
31
- class FontSizes;
32
- using ClientNavigationReason = String;
33
-
34
- // ------------- Forward and enum declarations.
35
-
36
- namespace ClientNavigationReasonEnum {
37
- extern const char FormSubmissionGet[];
38
- extern const char FormSubmissionPost[];
39
- extern const char HttpHeaderRefresh[];
40
- extern const char ScriptInitiated[];
41
- extern const char MetaTagRefresh[];
42
- extern const char PageBlockInterstitial[];
43
- extern const char Reload[];
44
- } // namespace ClientNavigationReasonEnum
45
-
46
- namespace CaptureScreenshot {
47
- namespace FormatEnum {
48
- extern const char* Jpeg;
49
- extern const char* Png;
50
- } // FormatEnum
51
- } // CaptureScreenshot
52
-
53
- namespace CaptureSnapshot {
54
- namespace FormatEnum {
55
- extern const char* Mhtml;
56
- } // FormatEnum
57
- } // CaptureSnapshot
58
-
59
- namespace PrintToPDF {
60
- namespace TransferModeEnum {
61
- extern const char* ReturnAsBase64;
62
- extern const char* ReturnAsStream;
63
- } // TransferModeEnum
64
- } // PrintToPDF
65
-
66
- namespace SetDownloadBehavior {
67
- namespace BehaviorEnum {
68
- extern const char* Deny;
69
- extern const char* Allow;
70
- extern const char* Default;
71
- } // BehaviorEnum
72
- } // SetDownloadBehavior
73
-
74
- namespace SetTouchEmulationEnabled {
75
- namespace ConfigurationEnum {
76
- extern const char* Mobile;
77
- extern const char* Desktop;
78
- } // ConfigurationEnum
79
- } // SetTouchEmulationEnabled
80
-
81
- namespace StartScreencast {
82
- namespace FormatEnum {
83
- extern const char* Jpeg;
84
- extern const char* Png;
85
- } // FormatEnum
86
- } // StartScreencast
87
-
88
- namespace SetWebLifecycleState {
89
- namespace StateEnum {
90
- extern const char* Frozen;
91
- extern const char* Active;
92
- } // StateEnum
93
- } // SetWebLifecycleState
94
-
95
- namespace FileChooserOpened {
96
- namespace ModeEnum {
97
- extern const char* SelectSingle;
98
- extern const char* SelectMultiple;
99
- } // ModeEnum
100
- } // FileChooserOpened
101
-
102
- namespace FrameScheduledNavigation {
103
- namespace ReasonEnum {
104
- extern const char* FormSubmissionGet;
105
- extern const char* FormSubmissionPost;
106
- extern const char* HttpHeaderRefresh;
107
- extern const char* ScriptInitiated;
108
- extern const char* MetaTagRefresh;
109
- extern const char* PageBlockInterstitial;
110
- extern const char* Reload;
111
- } // ReasonEnum
112
- } // FrameScheduledNavigation
113
-
114
- // ------------- Type and builder declarations.
115
-
116
- class Frame : public ::v8_crdtp::ProtocolObject<Frame> {
117
- public:
118
- ~Frame() override { }
119
-
120
- String getId() { return m_id; }
121
- void setId(const String& value) { m_id = value; }
122
-
123
- bool hasParentId() { return m_parentId.isJust(); }
124
- String getParentId(const String& defaultValue) { return m_parentId.isJust() ? m_parentId.fromJust() : defaultValue; }
125
- void setParentId(const String& value) { m_parentId = value; }
126
-
127
- String getLoaderId() { return m_loaderId; }
128
- void setLoaderId(const String& value) { m_loaderId = value; }
129
-
130
- bool hasName() { return m_name.isJust(); }
131
- String getName(const String& defaultValue) { return m_name.isJust() ? m_name.fromJust() : defaultValue; }
132
- void setName(const String& value) { m_name = value; }
133
-
134
- String getUrl() { return m_url; }
135
- void setUrl(const String& value) { m_url = value; }
136
-
137
- bool hasUrlFragment() { return m_urlFragment.isJust(); }
138
- String getUrlFragment(const String& defaultValue) { return m_urlFragment.isJust() ? m_urlFragment.fromJust() : defaultValue; }
139
- void setUrlFragment(const String& value) { m_urlFragment = value; }
140
-
141
- String getSecurityOrigin() { return m_securityOrigin; }
142
- void setSecurityOrigin(const String& value) { m_securityOrigin = value; }
143
-
144
- String getMimeType() { return m_mimeType; }
145
- void setMimeType(const String& value) { m_mimeType = value; }
146
-
147
- bool hasUnreachableUrl() { return m_unreachableUrl.isJust(); }
148
- String getUnreachableUrl(const String& defaultValue) { return m_unreachableUrl.isJust() ? m_unreachableUrl.fromJust() : defaultValue; }
149
- void setUnreachableUrl(const String& value) { m_unreachableUrl = value; }
150
-
151
- template<int STATE>
152
- class FrameBuilder {
153
- public:
154
- enum {
155
- NoFieldsSet = 0,
156
- IdSet = 1 << 1,
157
- LoaderIdSet = 1 << 2,
158
- UrlSet = 1 << 3,
159
- SecurityOriginSet = 1 << 4,
160
- MimeTypeSet = 1 << 5,
161
- AllFieldsSet = (IdSet | LoaderIdSet | UrlSet | SecurityOriginSet | MimeTypeSet | 0)};
162
-
163
-
164
- FrameBuilder<STATE | IdSet>& setId(const String& value)
165
- {
166
- static_assert(!(STATE & IdSet), "property id should not be set yet");
167
- m_result->setId(value);
168
- return castState<IdSet>();
169
- }
170
-
171
- FrameBuilder<STATE>& setParentId(const String& value)
172
- {
173
- m_result->setParentId(value);
174
- return *this;
175
- }
176
-
177
- FrameBuilder<STATE | LoaderIdSet>& setLoaderId(const String& value)
178
- {
179
- static_assert(!(STATE & LoaderIdSet), "property loaderId should not be set yet");
180
- m_result->setLoaderId(value);
181
- return castState<LoaderIdSet>();
182
- }
183
-
184
- FrameBuilder<STATE>& setName(const String& value)
185
- {
186
- m_result->setName(value);
187
- return *this;
188
- }
189
-
190
- FrameBuilder<STATE | UrlSet>& setUrl(const String& value)
191
- {
192
- static_assert(!(STATE & UrlSet), "property url should not be set yet");
193
- m_result->setUrl(value);
194
- return castState<UrlSet>();
195
- }
196
-
197
- FrameBuilder<STATE>& setUrlFragment(const String& value)
198
- {
199
- m_result->setUrlFragment(value);
200
- return *this;
201
- }
202
-
203
- FrameBuilder<STATE | SecurityOriginSet>& setSecurityOrigin(const String& value)
204
- {
205
- static_assert(!(STATE & SecurityOriginSet), "property securityOrigin should not be set yet");
206
- m_result->setSecurityOrigin(value);
207
- return castState<SecurityOriginSet>();
208
- }
209
-
210
- FrameBuilder<STATE | MimeTypeSet>& setMimeType(const String& value)
211
- {
212
- static_assert(!(STATE & MimeTypeSet), "property mimeType should not be set yet");
213
- m_result->setMimeType(value);
214
- return castState<MimeTypeSet>();
215
- }
216
-
217
- FrameBuilder<STATE>& setUnreachableUrl(const String& value)
218
- {
219
- m_result->setUnreachableUrl(value);
220
- return *this;
221
- }
222
-
223
- std::unique_ptr<Frame> build()
224
- {
225
- static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
226
- return std::move(m_result);
227
- }
228
-
229
- private:
230
- friend class Frame;
231
- FrameBuilder() : m_result(new Frame()) { }
232
-
233
- template<int STEP> FrameBuilder<STATE | STEP>& castState()
234
- {
235
- return *reinterpret_cast<FrameBuilder<STATE | STEP>*>(this);
236
- }
237
-
238
- std::unique_ptr<protocol::Page::Frame> m_result;
239
- };
240
-
241
- static FrameBuilder<0> create()
242
- {
243
- return FrameBuilder<0>();
244
- }
245
-
246
- private:
247
- DECLARE_SERIALIZATION_SUPPORT();
248
-
249
- Frame()
250
- {
251
- }
252
-
253
- String m_id;
254
- Maybe<String> m_parentId;
255
- String m_loaderId;
256
- Maybe<String> m_name;
257
- String m_url;
258
- Maybe<String> m_urlFragment;
259
- String m_securityOrigin;
260
- String m_mimeType;
261
- Maybe<String> m_unreachableUrl;
262
- };
263
-
264
-
265
- class FrameResource : public ::v8_crdtp::ProtocolObject<FrameResource> {
266
- public:
267
- ~FrameResource() override { }
268
-
269
- String getUrl() { return m_url; }
270
- void setUrl(const String& value) { m_url = value; }
271
-
272
- String getType() { return m_type; }
273
- void setType(const String& value) { m_type = value; }
274
-
275
- String getMimeType() { return m_mimeType; }
276
- void setMimeType(const String& value) { m_mimeType = value; }
277
-
278
- bool hasLastModified() { return m_lastModified.isJust(); }
279
- double getLastModified(double defaultValue) { return m_lastModified.isJust() ? m_lastModified.fromJust() : defaultValue; }
280
- void setLastModified(double value) { m_lastModified = value; }
281
-
282
- bool hasContentSize() { return m_contentSize.isJust(); }
283
- double getContentSize(double defaultValue) { return m_contentSize.isJust() ? m_contentSize.fromJust() : defaultValue; }
284
- void setContentSize(double value) { m_contentSize = value; }
285
-
286
- bool hasFailed() { return m_failed.isJust(); }
287
- bool getFailed(bool defaultValue) { return m_failed.isJust() ? m_failed.fromJust() : defaultValue; }
288
- void setFailed(bool value) { m_failed = value; }
289
-
290
- bool hasCanceled() { return m_canceled.isJust(); }
291
- bool getCanceled(bool defaultValue) { return m_canceled.isJust() ? m_canceled.fromJust() : defaultValue; }
292
- void setCanceled(bool value) { m_canceled = value; }
293
-
294
- template<int STATE>
295
- class FrameResourceBuilder {
296
- public:
297
- enum {
298
- NoFieldsSet = 0,
299
- UrlSet = 1 << 1,
300
- TypeSet = 1 << 2,
301
- MimeTypeSet = 1 << 3,
302
- AllFieldsSet = (UrlSet | TypeSet | MimeTypeSet | 0)};
303
-
304
-
305
- FrameResourceBuilder<STATE | UrlSet>& setUrl(const String& value)
306
- {
307
- static_assert(!(STATE & UrlSet), "property url should not be set yet");
308
- m_result->setUrl(value);
309
- return castState<UrlSet>();
310
- }
311
-
312
- FrameResourceBuilder<STATE | TypeSet>& setType(const String& value)
313
- {
314
- static_assert(!(STATE & TypeSet), "property type should not be set yet");
315
- m_result->setType(value);
316
- return castState<TypeSet>();
317
- }
318
-
319
- FrameResourceBuilder<STATE | MimeTypeSet>& setMimeType(const String& value)
320
- {
321
- static_assert(!(STATE & MimeTypeSet), "property mimeType should not be set yet");
322
- m_result->setMimeType(value);
323
- return castState<MimeTypeSet>();
324
- }
325
-
326
- FrameResourceBuilder<STATE>& setLastModified(double value)
327
- {
328
- m_result->setLastModified(value);
329
- return *this;
330
- }
331
-
332
- FrameResourceBuilder<STATE>& setContentSize(double value)
333
- {
334
- m_result->setContentSize(value);
335
- return *this;
336
- }
337
-
338
- FrameResourceBuilder<STATE>& setFailed(bool value)
339
- {
340
- m_result->setFailed(value);
341
- return *this;
342
- }
343
-
344
- FrameResourceBuilder<STATE>& setCanceled(bool value)
345
- {
346
- m_result->setCanceled(value);
347
- return *this;
348
- }
349
-
350
- std::unique_ptr<FrameResource> build()
351
- {
352
- static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
353
- return std::move(m_result);
354
- }
355
-
356
- private:
357
- friend class FrameResource;
358
- FrameResourceBuilder() : m_result(new FrameResource()) { }
359
-
360
- template<int STEP> FrameResourceBuilder<STATE | STEP>& castState()
361
- {
362
- return *reinterpret_cast<FrameResourceBuilder<STATE | STEP>*>(this);
363
- }
364
-
365
- std::unique_ptr<protocol::Page::FrameResource> m_result;
366
- };
367
-
368
- static FrameResourceBuilder<0> create()
369
- {
370
- return FrameResourceBuilder<0>();
371
- }
372
-
373
- private:
374
- DECLARE_SERIALIZATION_SUPPORT();
375
-
376
- FrameResource()
377
- {
378
- }
379
-
380
- String m_url;
381
- String m_type;
382
- String m_mimeType;
383
- Maybe<double> m_lastModified;
384
- Maybe<double> m_contentSize;
385
- Maybe<bool> m_failed;
386
- Maybe<bool> m_canceled;
387
- };
388
-
389
-
390
- class FrameResourceTree : public ::v8_crdtp::ProtocolObject<FrameResourceTree> {
391
- public:
392
- ~FrameResourceTree() override { }
393
-
394
- protocol::Page::Frame* getFrame() { return m_frame.get(); }
395
- void setFrame(std::unique_ptr<protocol::Page::Frame> value) { m_frame = std::move(value); }
396
-
397
- bool hasChildFrames() { return m_childFrames.isJust(); }
398
- protocol::Array<protocol::Page::FrameResourceTree>* getChildFrames(protocol::Array<protocol::Page::FrameResourceTree>* defaultValue) { return m_childFrames.isJust() ? m_childFrames.fromJust() : defaultValue; }
399
- void setChildFrames(std::unique_ptr<protocol::Array<protocol::Page::FrameResourceTree>> value) { m_childFrames = std::move(value); }
400
-
401
- protocol::Array<protocol::Page::FrameResource>* getResources() { return m_resources.get(); }
402
- void setResources(std::unique_ptr<protocol::Array<protocol::Page::FrameResource>> value) { m_resources = std::move(value); }
403
-
404
- template<int STATE>
405
- class FrameResourceTreeBuilder {
406
- public:
407
- enum {
408
- NoFieldsSet = 0,
409
- FrameSet = 1 << 1,
410
- ResourcesSet = 1 << 2,
411
- AllFieldsSet = (FrameSet | ResourcesSet | 0)};
412
-
413
-
414
- FrameResourceTreeBuilder<STATE | FrameSet>& setFrame(std::unique_ptr<protocol::Page::Frame> value)
415
- {
416
- static_assert(!(STATE & FrameSet), "property frame should not be set yet");
417
- m_result->setFrame(std::move(value));
418
- return castState<FrameSet>();
419
- }
420
-
421
- FrameResourceTreeBuilder<STATE>& setChildFrames(std::unique_ptr<protocol::Array<protocol::Page::FrameResourceTree>> value)
422
- {
423
- m_result->setChildFrames(std::move(value));
424
- return *this;
425
- }
426
-
427
- FrameResourceTreeBuilder<STATE | ResourcesSet>& setResources(std::unique_ptr<protocol::Array<protocol::Page::FrameResource>> value)
428
- {
429
- static_assert(!(STATE & ResourcesSet), "property resources should not be set yet");
430
- m_result->setResources(std::move(value));
431
- return castState<ResourcesSet>();
432
- }
433
-
434
- std::unique_ptr<FrameResourceTree> build()
435
- {
436
- static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
437
- return std::move(m_result);
438
- }
439
-
440
- private:
441
- friend class FrameResourceTree;
442
- FrameResourceTreeBuilder() : m_result(new FrameResourceTree()) { }
443
-
444
- template<int STEP> FrameResourceTreeBuilder<STATE | STEP>& castState()
445
- {
446
- return *reinterpret_cast<FrameResourceTreeBuilder<STATE | STEP>*>(this);
447
- }
448
-
449
- std::unique_ptr<protocol::Page::FrameResourceTree> m_result;
450
- };
451
-
452
- static FrameResourceTreeBuilder<0> create()
453
- {
454
- return FrameResourceTreeBuilder<0>();
455
- }
456
-
457
- private:
458
- DECLARE_SERIALIZATION_SUPPORT();
459
-
460
- FrameResourceTree()
461
- {
462
- }
463
-
464
- std::unique_ptr<protocol::Page::Frame> m_frame;
465
- Maybe<protocol::Array<protocol::Page::FrameResourceTree>> m_childFrames;
466
- std::unique_ptr<protocol::Array<protocol::Page::FrameResource>> m_resources;
467
- };
468
-
469
-
470
- class FrameTree : public ::v8_crdtp::ProtocolObject<FrameTree> {
471
- public:
472
- ~FrameTree() override { }
473
-
474
- protocol::Page::Frame* getFrame() { return m_frame.get(); }
475
- void setFrame(std::unique_ptr<protocol::Page::Frame> value) { m_frame = std::move(value); }
476
-
477
- bool hasChildFrames() { return m_childFrames.isJust(); }
478
- protocol::Array<protocol::Page::FrameTree>* getChildFrames(protocol::Array<protocol::Page::FrameTree>* defaultValue) { return m_childFrames.isJust() ? m_childFrames.fromJust() : defaultValue; }
479
- void setChildFrames(std::unique_ptr<protocol::Array<protocol::Page::FrameTree>> value) { m_childFrames = std::move(value); }
480
-
481
- template<int STATE>
482
- class FrameTreeBuilder {
483
- public:
484
- enum {
485
- NoFieldsSet = 0,
486
- FrameSet = 1 << 1,
487
- AllFieldsSet = (FrameSet | 0)};
488
-
489
-
490
- FrameTreeBuilder<STATE | FrameSet>& setFrame(std::unique_ptr<protocol::Page::Frame> value)
491
- {
492
- static_assert(!(STATE & FrameSet), "property frame should not be set yet");
493
- m_result->setFrame(std::move(value));
494
- return castState<FrameSet>();
495
- }
496
-
497
- FrameTreeBuilder<STATE>& setChildFrames(std::unique_ptr<protocol::Array<protocol::Page::FrameTree>> value)
498
- {
499
- m_result->setChildFrames(std::move(value));
500
- return *this;
501
- }
502
-
503
- std::unique_ptr<FrameTree> build()
504
- {
505
- static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
506
- return std::move(m_result);
507
- }
508
-
509
- private:
510
- friend class FrameTree;
511
- FrameTreeBuilder() : m_result(new FrameTree()) { }
512
-
513
- template<int STEP> FrameTreeBuilder<STATE | STEP>& castState()
514
- {
515
- return *reinterpret_cast<FrameTreeBuilder<STATE | STEP>*>(this);
516
- }
517
-
518
- std::unique_ptr<protocol::Page::FrameTree> m_result;
519
- };
520
-
521
- static FrameTreeBuilder<0> create()
522
- {
523
- return FrameTreeBuilder<0>();
524
- }
525
-
526
- private:
527
- DECLARE_SERIALIZATION_SUPPORT();
528
-
529
- FrameTree()
530
- {
531
- }
532
-
533
- std::unique_ptr<protocol::Page::Frame> m_frame;
534
- Maybe<protocol::Array<protocol::Page::FrameTree>> m_childFrames;
535
- };
536
-
537
-
538
- class LayoutViewport : public ::v8_crdtp::ProtocolObject<LayoutViewport> {
539
- public:
540
- ~LayoutViewport() override { }
541
-
542
- int getPageX() { return m_pageX; }
543
- void setPageX(int value) { m_pageX = value; }
544
-
545
- int getPageY() { return m_pageY; }
546
- void setPageY(int value) { m_pageY = value; }
547
-
548
- int getClientWidth() { return m_clientWidth; }
549
- void setClientWidth(int value) { m_clientWidth = value; }
550
-
551
- int getClientHeight() { return m_clientHeight; }
552
- void setClientHeight(int value) { m_clientHeight = value; }
553
-
554
- template<int STATE>
555
- class LayoutViewportBuilder {
556
- public:
557
- enum {
558
- NoFieldsSet = 0,
559
- PageXSet = 1 << 1,
560
- PageYSet = 1 << 2,
561
- ClientWidthSet = 1 << 3,
562
- ClientHeightSet = 1 << 4,
563
- AllFieldsSet = (PageXSet | PageYSet | ClientWidthSet | ClientHeightSet | 0)};
564
-
565
-
566
- LayoutViewportBuilder<STATE | PageXSet>& setPageX(int value)
567
- {
568
- static_assert(!(STATE & PageXSet), "property pageX should not be set yet");
569
- m_result->setPageX(value);
570
- return castState<PageXSet>();
571
- }
572
-
573
- LayoutViewportBuilder<STATE | PageYSet>& setPageY(int value)
574
- {
575
- static_assert(!(STATE & PageYSet), "property pageY should not be set yet");
576
- m_result->setPageY(value);
577
- return castState<PageYSet>();
578
- }
579
-
580
- LayoutViewportBuilder<STATE | ClientWidthSet>& setClientWidth(int value)
581
- {
582
- static_assert(!(STATE & ClientWidthSet), "property clientWidth should not be set yet");
583
- m_result->setClientWidth(value);
584
- return castState<ClientWidthSet>();
585
- }
586
-
587
- LayoutViewportBuilder<STATE | ClientHeightSet>& setClientHeight(int value)
588
- {
589
- static_assert(!(STATE & ClientHeightSet), "property clientHeight should not be set yet");
590
- m_result->setClientHeight(value);
591
- return castState<ClientHeightSet>();
592
- }
593
-
594
- std::unique_ptr<LayoutViewport> build()
595
- {
596
- static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
597
- return std::move(m_result);
598
- }
599
-
600
- private:
601
- friend class LayoutViewport;
602
- LayoutViewportBuilder() : m_result(new LayoutViewport()) { }
603
-
604
- template<int STEP> LayoutViewportBuilder<STATE | STEP>& castState()
605
- {
606
- return *reinterpret_cast<LayoutViewportBuilder<STATE | STEP>*>(this);
607
- }
608
-
609
- std::unique_ptr<protocol::Page::LayoutViewport> m_result;
610
- };
611
-
612
- static LayoutViewportBuilder<0> create()
613
- {
614
- return LayoutViewportBuilder<0>();
615
- }
616
-
617
- private:
618
- DECLARE_SERIALIZATION_SUPPORT();
619
-
620
- LayoutViewport()
621
- {
622
- m_pageX = 0;
623
- m_pageY = 0;
624
- m_clientWidth = 0;
625
- m_clientHeight = 0;
626
- }
627
-
628
- int m_pageX;
629
- int m_pageY;
630
- int m_clientWidth;
631
- int m_clientHeight;
632
- };
633
-
634
-
635
- class VisualViewport : public ::v8_crdtp::ProtocolObject<VisualViewport> {
636
- public:
637
- ~VisualViewport() override { }
638
-
639
- double getOffsetX() { return m_offsetX; }
640
- void setOffsetX(double value) { m_offsetX = value; }
641
-
642
- double getOffsetY() { return m_offsetY; }
643
- void setOffsetY(double value) { m_offsetY = value; }
644
-
645
- double getPageX() { return m_pageX; }
646
- void setPageX(double value) { m_pageX = value; }
647
-
648
- double getPageY() { return m_pageY; }
649
- void setPageY(double value) { m_pageY = value; }
650
-
651
- double getClientWidth() { return m_clientWidth; }
652
- void setClientWidth(double value) { m_clientWidth = value; }
653
-
654
- double getClientHeight() { return m_clientHeight; }
655
- void setClientHeight(double value) { m_clientHeight = value; }
656
-
657
- double getScale() { return m_scale; }
658
- void setScale(double value) { m_scale = value; }
659
-
660
- bool hasZoom() { return m_zoom.isJust(); }
661
- double getZoom(double defaultValue) { return m_zoom.isJust() ? m_zoom.fromJust() : defaultValue; }
662
- void setZoom(double value) { m_zoom = value; }
663
-
664
- template<int STATE>
665
- class VisualViewportBuilder {
666
- public:
667
- enum {
668
- NoFieldsSet = 0,
669
- OffsetXSet = 1 << 1,
670
- OffsetYSet = 1 << 2,
671
- PageXSet = 1 << 3,
672
- PageYSet = 1 << 4,
673
- ClientWidthSet = 1 << 5,
674
- ClientHeightSet = 1 << 6,
675
- ScaleSet = 1 << 7,
676
- AllFieldsSet = (OffsetXSet | OffsetYSet | PageXSet | PageYSet | ClientWidthSet | ClientHeightSet | ScaleSet | 0)};
677
-
678
-
679
- VisualViewportBuilder<STATE | OffsetXSet>& setOffsetX(double value)
680
- {
681
- static_assert(!(STATE & OffsetXSet), "property offsetX should not be set yet");
682
- m_result->setOffsetX(value);
683
- return castState<OffsetXSet>();
684
- }
685
-
686
- VisualViewportBuilder<STATE | OffsetYSet>& setOffsetY(double value)
687
- {
688
- static_assert(!(STATE & OffsetYSet), "property offsetY should not be set yet");
689
- m_result->setOffsetY(value);
690
- return castState<OffsetYSet>();
691
- }
692
-
693
- VisualViewportBuilder<STATE | PageXSet>& setPageX(double value)
694
- {
695
- static_assert(!(STATE & PageXSet), "property pageX should not be set yet");
696
- m_result->setPageX(value);
697
- return castState<PageXSet>();
698
- }
699
-
700
- VisualViewportBuilder<STATE | PageYSet>& setPageY(double value)
701
- {
702
- static_assert(!(STATE & PageYSet), "property pageY should not be set yet");
703
- m_result->setPageY(value);
704
- return castState<PageYSet>();
705
- }
706
-
707
- VisualViewportBuilder<STATE | ClientWidthSet>& setClientWidth(double value)
708
- {
709
- static_assert(!(STATE & ClientWidthSet), "property clientWidth should not be set yet");
710
- m_result->setClientWidth(value);
711
- return castState<ClientWidthSet>();
712
- }
713
-
714
- VisualViewportBuilder<STATE | ClientHeightSet>& setClientHeight(double value)
715
- {
716
- static_assert(!(STATE & ClientHeightSet), "property clientHeight should not be set yet");
717
- m_result->setClientHeight(value);
718
- return castState<ClientHeightSet>();
719
- }
720
-
721
- VisualViewportBuilder<STATE | ScaleSet>& setScale(double value)
722
- {
723
- static_assert(!(STATE & ScaleSet), "property scale should not be set yet");
724
- m_result->setScale(value);
725
- return castState<ScaleSet>();
726
- }
727
-
728
- VisualViewportBuilder<STATE>& setZoom(double value)
729
- {
730
- m_result->setZoom(value);
731
- return *this;
732
- }
733
-
734
- std::unique_ptr<VisualViewport> build()
735
- {
736
- static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
737
- return std::move(m_result);
738
- }
739
-
740
- private:
741
- friend class VisualViewport;
742
- VisualViewportBuilder() : m_result(new VisualViewport()) { }
743
-
744
- template<int STEP> VisualViewportBuilder<STATE | STEP>& castState()
745
- {
746
- return *reinterpret_cast<VisualViewportBuilder<STATE | STEP>*>(this);
747
- }
748
-
749
- std::unique_ptr<protocol::Page::VisualViewport> m_result;
750
- };
751
-
752
- static VisualViewportBuilder<0> create()
753
- {
754
- return VisualViewportBuilder<0>();
755
- }
756
-
757
- private:
758
- DECLARE_SERIALIZATION_SUPPORT();
759
-
760
- VisualViewport()
761
- {
762
- m_offsetX = 0;
763
- m_offsetY = 0;
764
- m_pageX = 0;
765
- m_pageY = 0;
766
- m_clientWidth = 0;
767
- m_clientHeight = 0;
768
- m_scale = 0;
769
- }
770
-
771
- double m_offsetX;
772
- double m_offsetY;
773
- double m_pageX;
774
- double m_pageY;
775
- double m_clientWidth;
776
- double m_clientHeight;
777
- double m_scale;
778
- Maybe<double> m_zoom;
779
- };
780
-
781
-
782
- class Viewport : public ::v8_crdtp::ProtocolObject<Viewport> {
783
- public:
784
- ~Viewport() override { }
785
-
786
- double getX() { return m_x; }
787
- void setX(double value) { m_x = value; }
788
-
789
- double getY() { return m_y; }
790
- void setY(double value) { m_y = value; }
791
-
792
- double getWidth() { return m_width; }
793
- void setWidth(double value) { m_width = value; }
794
-
795
- double getHeight() { return m_height; }
796
- void setHeight(double value) { m_height = value; }
797
-
798
- double getScale() { return m_scale; }
799
- void setScale(double value) { m_scale = value; }
800
-
801
- template<int STATE>
802
- class ViewportBuilder {
803
- public:
804
- enum {
805
- NoFieldsSet = 0,
806
- XSet = 1 << 1,
807
- YSet = 1 << 2,
808
- WidthSet = 1 << 3,
809
- HeightSet = 1 << 4,
810
- ScaleSet = 1 << 5,
811
- AllFieldsSet = (XSet | YSet | WidthSet | HeightSet | ScaleSet | 0)};
812
-
813
-
814
- ViewportBuilder<STATE | XSet>& setX(double value)
815
- {
816
- static_assert(!(STATE & XSet), "property x should not be set yet");
817
- m_result->setX(value);
818
- return castState<XSet>();
819
- }
820
-
821
- ViewportBuilder<STATE | YSet>& setY(double value)
822
- {
823
- static_assert(!(STATE & YSet), "property y should not be set yet");
824
- m_result->setY(value);
825
- return castState<YSet>();
826
- }
827
-
828
- ViewportBuilder<STATE | WidthSet>& setWidth(double value)
829
- {
830
- static_assert(!(STATE & WidthSet), "property width should not be set yet");
831
- m_result->setWidth(value);
832
- return castState<WidthSet>();
833
- }
834
-
835
- ViewportBuilder<STATE | HeightSet>& setHeight(double value)
836
- {
837
- static_assert(!(STATE & HeightSet), "property height should not be set yet");
838
- m_result->setHeight(value);
839
- return castState<HeightSet>();
840
- }
841
-
842
- ViewportBuilder<STATE | ScaleSet>& setScale(double value)
843
- {
844
- static_assert(!(STATE & ScaleSet), "property scale should not be set yet");
845
- m_result->setScale(value);
846
- return castState<ScaleSet>();
847
- }
848
-
849
- std::unique_ptr<Viewport> build()
850
- {
851
- static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
852
- return std::move(m_result);
853
- }
854
-
855
- private:
856
- friend class Viewport;
857
- ViewportBuilder() : m_result(new Viewport()) { }
858
-
859
- template<int STEP> ViewportBuilder<STATE | STEP>& castState()
860
- {
861
- return *reinterpret_cast<ViewportBuilder<STATE | STEP>*>(this);
862
- }
863
-
864
- std::unique_ptr<protocol::Page::Viewport> m_result;
865
- };
866
-
867
- static ViewportBuilder<0> create()
868
- {
869
- return ViewportBuilder<0>();
870
- }
871
-
872
- private:
873
- DECLARE_SERIALIZATION_SUPPORT();
874
-
875
- Viewport()
876
- {
877
- m_x = 0;
878
- m_y = 0;
879
- m_width = 0;
880
- m_height = 0;
881
- m_scale = 0;
882
- }
883
-
884
- double m_x;
885
- double m_y;
886
- double m_width;
887
- double m_height;
888
- double m_scale;
889
- };
890
-
891
-
892
- class FontFamilies : public ::v8_crdtp::ProtocolObject<FontFamilies> {
893
- public:
894
- ~FontFamilies() override { }
895
-
896
- bool hasStandard() { return m_standard.isJust(); }
897
- String getStandard(const String& defaultValue) { return m_standard.isJust() ? m_standard.fromJust() : defaultValue; }
898
- void setStandard(const String& value) { m_standard = value; }
899
-
900
- bool hasFixed() { return m_fixed.isJust(); }
901
- String getFixed(const String& defaultValue) { return m_fixed.isJust() ? m_fixed.fromJust() : defaultValue; }
902
- void setFixed(const String& value) { m_fixed = value; }
903
-
904
- bool hasSerif() { return m_serif.isJust(); }
905
- String getSerif(const String& defaultValue) { return m_serif.isJust() ? m_serif.fromJust() : defaultValue; }
906
- void setSerif(const String& value) { m_serif = value; }
907
-
908
- bool hasSansSerif() { return m_sansSerif.isJust(); }
909
- String getSansSerif(const String& defaultValue) { return m_sansSerif.isJust() ? m_sansSerif.fromJust() : defaultValue; }
910
- void setSansSerif(const String& value) { m_sansSerif = value; }
911
-
912
- bool hasCursive() { return m_cursive.isJust(); }
913
- String getCursive(const String& defaultValue) { return m_cursive.isJust() ? m_cursive.fromJust() : defaultValue; }
914
- void setCursive(const String& value) { m_cursive = value; }
915
-
916
- bool hasFantasy() { return m_fantasy.isJust(); }
917
- String getFantasy(const String& defaultValue) { return m_fantasy.isJust() ? m_fantasy.fromJust() : defaultValue; }
918
- void setFantasy(const String& value) { m_fantasy = value; }
919
-
920
- bool hasPictograph() { return m_pictograph.isJust(); }
921
- String getPictograph(const String& defaultValue) { return m_pictograph.isJust() ? m_pictograph.fromJust() : defaultValue; }
922
- void setPictograph(const String& value) { m_pictograph = value; }
923
-
924
- template<int STATE>
925
- class FontFamiliesBuilder {
926
- public:
927
- enum {
928
- NoFieldsSet = 0,
929
- AllFieldsSet = (0)};
930
-
931
-
932
- FontFamiliesBuilder<STATE>& setStandard(const String& value)
933
- {
934
- m_result->setStandard(value);
935
- return *this;
936
- }
937
-
938
- FontFamiliesBuilder<STATE>& setFixed(const String& value)
939
- {
940
- m_result->setFixed(value);
941
- return *this;
942
- }
943
-
944
- FontFamiliesBuilder<STATE>& setSerif(const String& value)
945
- {
946
- m_result->setSerif(value);
947
- return *this;
948
- }
949
-
950
- FontFamiliesBuilder<STATE>& setSansSerif(const String& value)
951
- {
952
- m_result->setSansSerif(value);
953
- return *this;
954
- }
955
-
956
- FontFamiliesBuilder<STATE>& setCursive(const String& value)
957
- {
958
- m_result->setCursive(value);
959
- return *this;
960
- }
961
-
962
- FontFamiliesBuilder<STATE>& setFantasy(const String& value)
963
- {
964
- m_result->setFantasy(value);
965
- return *this;
966
- }
967
-
968
- FontFamiliesBuilder<STATE>& setPictograph(const String& value)
969
- {
970
- m_result->setPictograph(value);
971
- return *this;
972
- }
973
-
974
- std::unique_ptr<FontFamilies> build()
975
- {
976
- static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
977
- return std::move(m_result);
978
- }
979
-
980
- private:
981
- friend class FontFamilies;
982
- FontFamiliesBuilder() : m_result(new FontFamilies()) { }
983
-
984
- template<int STEP> FontFamiliesBuilder<STATE | STEP>& castState()
985
- {
986
- return *reinterpret_cast<FontFamiliesBuilder<STATE | STEP>*>(this);
987
- }
988
-
989
- std::unique_ptr<protocol::Page::FontFamilies> m_result;
990
- };
991
-
992
- static FontFamiliesBuilder<0> create()
993
- {
994
- return FontFamiliesBuilder<0>();
995
- }
996
-
997
- private:
998
- DECLARE_SERIALIZATION_SUPPORT();
999
-
1000
- FontFamilies()
1001
- {
1002
- }
1003
-
1004
- Maybe<String> m_standard;
1005
- Maybe<String> m_fixed;
1006
- Maybe<String> m_serif;
1007
- Maybe<String> m_sansSerif;
1008
- Maybe<String> m_cursive;
1009
- Maybe<String> m_fantasy;
1010
- Maybe<String> m_pictograph;
1011
- };
1012
-
1013
-
1014
- class FontSizes : public ::v8_crdtp::ProtocolObject<FontSizes> {
1015
- public:
1016
- ~FontSizes() override { }
1017
-
1018
- bool hasStandard() { return m_standard.isJust(); }
1019
- int getStandard(int defaultValue) { return m_standard.isJust() ? m_standard.fromJust() : defaultValue; }
1020
- void setStandard(int value) { m_standard = value; }
1021
-
1022
- bool hasFixed() { return m_fixed.isJust(); }
1023
- int getFixed(int defaultValue) { return m_fixed.isJust() ? m_fixed.fromJust() : defaultValue; }
1024
- void setFixed(int value) { m_fixed = value; }
1025
-
1026
- template<int STATE>
1027
- class FontSizesBuilder {
1028
- public:
1029
- enum {
1030
- NoFieldsSet = 0,
1031
- AllFieldsSet = (0)};
1032
-
1033
-
1034
- FontSizesBuilder<STATE>& setStandard(int value)
1035
- {
1036
- m_result->setStandard(value);
1037
- return *this;
1038
- }
1039
-
1040
- FontSizesBuilder<STATE>& setFixed(int value)
1041
- {
1042
- m_result->setFixed(value);
1043
- return *this;
1044
- }
1045
-
1046
- std::unique_ptr<FontSizes> build()
1047
- {
1048
- static_assert(STATE == AllFieldsSet, "state should be AllFieldsSet");
1049
- return std::move(m_result);
1050
- }
1051
-
1052
- private:
1053
- friend class FontSizes;
1054
- FontSizesBuilder() : m_result(new FontSizes()) { }
1055
-
1056
- template<int STEP> FontSizesBuilder<STATE | STEP>& castState()
1057
- {
1058
- return *reinterpret_cast<FontSizesBuilder<STATE | STEP>*>(this);
1059
- }
1060
-
1061
- std::unique_ptr<protocol::Page::FontSizes> m_result;
1062
- };
1063
-
1064
- static FontSizesBuilder<0> create()
1065
- {
1066
- return FontSizesBuilder<0>();
1067
- }
1068
-
1069
- private:
1070
- DECLARE_SERIALIZATION_SUPPORT();
1071
-
1072
- FontSizes()
1073
- {
1074
- }
1075
-
1076
- Maybe<int> m_standard;
1077
- Maybe<int> m_fixed;
1078
- };
1079
-
1080
-
1081
- // ------------- Backend interface.
1082
-
1083
- class Backend {
1084
- public:
1085
- virtual ~Backend() { }
1086
-
1087
- virtual DispatchResponse addScriptToEvaluateOnLoad(const String& in_scriptSource, String* out_identifier) = 0;
1088
- virtual DispatchResponse addScriptToEvaluateOnNewDocument(const String& in_source, Maybe<String> in_worldName, String* out_identifier) = 0;
1089
- virtual DispatchResponse createIsolatedWorld(const String& in_frameId, Maybe<String> in_worldName, Maybe<bool> in_grantUniveralAccess, int* out_executionContextId) = 0;
1090
- virtual DispatchResponse disable() = 0;
1091
- virtual DispatchResponse enable() = 0;
1092
- virtual DispatchResponse getInstallabilityErrors(std::unique_ptr<protocol::Array<String>>* out_errors) = 0;
1093
- virtual DispatchResponse getManifestIcons(Maybe<Binary>* out_primaryIcon) = 0;
1094
- virtual DispatchResponse getFrameTree(std::unique_ptr<protocol::Page::FrameTree>* out_frameTree) = 0;
1095
- virtual DispatchResponse getLayoutMetrics(std::unique_ptr<protocol::Page::LayoutViewport>* out_layoutViewport, std::unique_ptr<protocol::Page::VisualViewport>* out_visualViewport, std::unique_ptr<protocol::DOM::Rect>* out_contentSize) = 0;
1096
- class GetResourceContentCallback {
1097
- public:
1098
- virtual void sendSuccess(const String& content, bool base64Encoded) = 0;
1099
- virtual void sendFailure(const DispatchResponse&) = 0;
1100
- virtual void fallThrough() = 0;
1101
- virtual ~GetResourceContentCallback() { }
1102
- };
1103
- virtual void getResourceContent(const String& in_frameId, const String& in_url, std::unique_ptr<GetResourceContentCallback> callback) = 0;
1104
- virtual DispatchResponse getResourceTree(std::unique_ptr<protocol::Page::FrameResourceTree>* out_frameTree) = 0;
1105
- virtual DispatchResponse reload(Maybe<bool> in_ignoreCache, Maybe<String> in_scriptToEvaluateOnLoad) = 0;
1106
- virtual DispatchResponse removeScriptToEvaluateOnLoad(const String& in_identifier) = 0;
1107
- virtual DispatchResponse removeScriptToEvaluateOnNewDocument(const String& in_identifier) = 0;
1108
- class SearchInResourceCallback {
1109
- public:
1110
- virtual void sendSuccess(std::unique_ptr<protocol::Array<protocol::Debugger::SearchMatch>> result) = 0;
1111
- virtual void sendFailure(const DispatchResponse&) = 0;
1112
- virtual void fallThrough() = 0;
1113
- virtual ~SearchInResourceCallback() { }
1114
- };
1115
- virtual void searchInResource(const String& in_frameId, const String& in_url, const String& in_query, Maybe<bool> in_caseSensitive, Maybe<bool> in_isRegex, std::unique_ptr<SearchInResourceCallback> callback) = 0;
1116
- virtual DispatchResponse setAdBlockingEnabled(bool in_enabled) = 0;
1117
- virtual DispatchResponse setBypassCSP(bool in_enabled) = 0;
1118
- virtual DispatchResponse setFontFamilies(std::unique_ptr<protocol::Page::FontFamilies> in_fontFamilies) = 0;
1119
- virtual DispatchResponse setFontSizes(std::unique_ptr<protocol::Page::FontSizes> in_fontSizes) = 0;
1120
- virtual DispatchResponse setDocumentContent(const String& in_frameId, const String& in_html) = 0;
1121
- virtual DispatchResponse setLifecycleEventsEnabled(bool in_enabled) = 0;
1122
- virtual DispatchResponse startScreencast(Maybe<String> in_format, Maybe<int> in_quality, Maybe<int> in_maxWidth, Maybe<int> in_maxHeight, Maybe<int> in_everyNthFrame) = 0;
1123
- virtual DispatchResponse stopLoading() = 0;
1124
- virtual DispatchResponse stopScreencast() = 0;
1125
- virtual DispatchResponse setProduceCompilationCache(bool in_enabled) = 0;
1126
- virtual DispatchResponse addCompilationCache(const String& in_url, const Binary& in_data) = 0;
1127
- virtual DispatchResponse clearCompilationCache() = 0;
1128
- virtual DispatchResponse generateTestReport(const String& in_message, Maybe<String> in_group) = 0;
1129
- virtual DispatchResponse waitForDebugger() = 0;
1130
- virtual DispatchResponse setInterceptFileChooserDialog(bool in_enabled) = 0;
1131
-
1132
- };
1133
-
1134
- // ------------- Frontend interface.
1135
-
1136
- class Frontend {
1137
- public:
1138
- explicit Frontend(FrontendChannel* frontend_channel) : frontend_channel_(frontend_channel) {}
1139
- void domContentEventFired(double timestamp);
1140
- void fileChooserOpened(const String& frameId, int backendNodeId, const String& mode);
1141
- void frameAttached(const String& frameId, const String& parentFrameId, Maybe<protocol::Runtime::StackTrace> stack = Maybe<protocol::Runtime::StackTrace>());
1142
- void frameClearedScheduledNavigation(const String& frameId);
1143
- void frameDetached(const String& frameId);
1144
- void frameNavigated(std::unique_ptr<protocol::Page::Frame> frame);
1145
- void frameResized();
1146
- void frameRequestedNavigation(const String& frameId, const String& reason, const String& url);
1147
- void frameScheduledNavigation(const String& frameId, double delay, const String& reason, const String& url);
1148
- void frameStartedLoading(const String& frameId);
1149
- void frameStoppedLoading(const String& frameId);
1150
- void downloadWillBegin(const String& frameId, const String& url);
1151
- void lifecycleEvent(const String& frameId, const String& loaderId, const String& name, double timestamp);
1152
- void loadEventFired(double timestamp);
1153
- void navigatedWithinDocument(const String& frameId, const String& url);
1154
- void windowOpen(const String& url, const String& windowName, std::unique_ptr<protocol::Array<String>> windowFeatures, bool userGesture);
1155
- void compilationCacheProduced(const String& url, const Binary& data);
1156
-
1157
- void flush();
1158
- void sendRawNotification(std::unique_ptr<Serializable>);
1159
- private:
1160
- FrontendChannel* frontend_channel_;
1161
- };
1162
-
1163
- // ------------- Dispatcher.
1164
-
1165
- class Dispatcher {
1166
- public:
1167
- static void wire(UberDispatcher*, Backend*);
1168
-
1169
- private:
1170
- Dispatcher() { }
1171
- };
1172
-
1173
- // ------------- Metainfo.
1174
-
1175
- class Metainfo {
1176
- public:
1177
- using BackendClass = Backend;
1178
- using FrontendClass = Frontend;
1179
- using DispatcherClass = Dispatcher;
1180
- static const char domainName[];
1181
- static const char commandPrefix[];
1182
- static const char version[];
1183
- };
1184
-
1185
- } // namespace Page
1186
- } // namespace v8_inspector
1187
- } // namespace protocol
1188
-
1189
- #endif // !defined(v8_inspector_protocol_Page_h)