@triniwiz/nativescript-masonkit 1.0.0-alpha.5 → 1.0.0-alpha.6

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 (345) hide show
  1. package/common.d.ts +7 -9
  2. package/common.js +277 -552
  3. package/common.js.map +1 -1
  4. package/helpers.d.ts +32 -10
  5. package/helpers.js +772 -286
  6. package/helpers.js.map +1 -1
  7. package/index.android.d.ts +6 -2
  8. package/index.android.js +21 -3
  9. package/index.android.js.map +1 -1
  10. package/index.d.ts +64 -7
  11. package/index.ios.d.ts +9 -6
  12. package/index.ios.js +39 -25
  13. package/index.ios.js.map +1 -1
  14. package/package.json +1 -1
  15. package/platforms/android/include.gradle +18 -1
  16. package/platforms/android/masonkit-release.aar +0 -0
  17. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/Mason-Swift.h +108 -64
  18. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Headers/mason_native.h +47 -20
  19. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Info.plist +0 -0
  20. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Mason +0 -0
  21. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
  22. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.abi.json +10744 -1631
  23. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.private.swiftinterface +58 -21
  24. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  25. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.swiftinterface +58 -21
  26. package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
  27. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/Mason-Swift.h +216 -128
  28. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Headers/mason_native.h +47 -20
  29. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Info.plist +0 -0
  30. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Mason +0 -0
  31. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
  32. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
  33. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.abi.json +10744 -1631
  34. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +58 -21
  35. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  36. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.swiftinterface +58 -21
  37. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.abi.json +10744 -1631
  38. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +58 -21
  39. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  40. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +58 -21
  41. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/_CodeSignature/CodeResources +43 -43
  42. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
  43. package/platforms/ios/build.xcconfig +1 -2
  44. package/platforms/ios/src/MasonV8Module.h +583 -0
  45. package/platforms/ios/src/MasonV8Module.mm +1005 -0
  46. package/platforms/ios/src/{include → cpp/include}/mason_native.h +47 -20
  47. package/platforms/ios/src/cpp/include/robin_hood.h +2544 -0
  48. package/platforms/ios/src/module.modulemap +2 -2
  49. package/platforms/new_native_src/cpp/Caches.cpp +36 -0
  50. package/platforms/new_native_src/cpp/Caches.h +42 -0
  51. package/platforms/new_native_src/cpp/Common.h +34 -0
  52. package/platforms/new_native_src/cpp/ConcurrentMap.h +57 -0
  53. package/platforms/new_native_src/cpp/Helpers.cpp +101 -0
  54. package/platforms/new_native_src/cpp/Helpers.h +364 -0
  55. package/platforms/new_native_src/cpp/MasonImpl.cpp +68 -0
  56. package/platforms/new_native_src/cpp/MasonImpl.h +40 -0
  57. package/platforms/new_native_src/cpp/MasonNodeImpl.cpp +89 -0
  58. package/platforms/new_native_src/cpp/MasonNodeImpl.h +47 -0
  59. package/platforms/new_native_src/cpp/MasonStyleImpl.cpp +2181 -0
  60. package/platforms/new_native_src/cpp/MasonStyleImpl.h +420 -0
  61. package/platforms/{ios/Mason.xcframework/ios-arm64/Mason.framework/PrivateHeaders → new_native_src/cpp/include}/mason_native.h +464 -168
  62. package/platforms/new_native_src/cpp/include/robin_hood.h +2544 -0
  63. package/pods/Headers/include/APIDesign.md +72 -0
  64. package/pods/Headers/include/DEPS +10 -0
  65. package/pods/Headers/include/DIR_METADATA +11 -0
  66. package/pods/Headers/include/OWNERS +23 -0
  67. package/pods/Headers/include/cppgc/DEPS +8 -0
  68. package/pods/Headers/include/cppgc/OWNERS +2 -0
  69. package/pods/Headers/include/cppgc/README.md +133 -0
  70. package/pods/Headers/include/cppgc/allocation.h +310 -0
  71. package/pods/Headers/include/cppgc/common.h +29 -0
  72. package/pods/Headers/include/cppgc/cross-thread-persistent.h +465 -0
  73. package/pods/Headers/include/cppgc/custom-space.h +97 -0
  74. package/pods/Headers/include/cppgc/default-platform.h +67 -0
  75. package/pods/Headers/include/cppgc/ephemeron-pair.h +30 -0
  76. package/pods/Headers/include/cppgc/explicit-management.h +100 -0
  77. package/pods/Headers/include/cppgc/garbage-collected.h +106 -0
  78. package/pods/Headers/include/cppgc/heap-consistency.h +266 -0
  79. package/pods/Headers/include/cppgc/heap-state.h +82 -0
  80. package/pods/Headers/include/cppgc/heap-statistics.h +120 -0
  81. package/pods/Headers/include/cppgc/heap.h +206 -0
  82. package/pods/Headers/include/cppgc/internal/api-constants.h +55 -0
  83. package/pods/Headers/include/cppgc/internal/atomic-entry-flag.h +48 -0
  84. package/pods/Headers/include/cppgc/internal/caged-heap-local-data.h +79 -0
  85. package/pods/Headers/include/cppgc/internal/compiler-specific.h +38 -0
  86. package/pods/Headers/include/cppgc/internal/finalizer-trait.h +93 -0
  87. package/pods/Headers/include/cppgc/internal/gc-info.h +156 -0
  88. package/pods/Headers/include/cppgc/internal/logging.h +50 -0
  89. package/pods/Headers/include/cppgc/internal/name-trait.h +122 -0
  90. package/pods/Headers/include/cppgc/internal/persistent-node.h +216 -0
  91. package/pods/Headers/include/cppgc/internal/pointer-policies.h +186 -0
  92. package/pods/Headers/include/cppgc/internal/write-barrier.h +435 -0
  93. package/pods/Headers/include/cppgc/liveness-broker.h +77 -0
  94. package/pods/Headers/include/cppgc/macros.h +26 -0
  95. package/pods/Headers/include/cppgc/member.h +291 -0
  96. package/pods/Headers/include/cppgc/name-provider.h +65 -0
  97. package/pods/Headers/include/cppgc/object-size-trait.h +58 -0
  98. package/pods/Headers/include/cppgc/persistent.h +370 -0
  99. package/pods/Headers/include/cppgc/platform.h +156 -0
  100. package/pods/Headers/include/cppgc/prefinalizer.h +75 -0
  101. package/pods/Headers/include/cppgc/process-heap-statistics.h +36 -0
  102. package/pods/Headers/include/cppgc/sentinel-pointer.h +32 -0
  103. package/pods/Headers/include/cppgc/source-location.h +92 -0
  104. package/pods/Headers/include/cppgc/testing.h +106 -0
  105. package/pods/Headers/include/cppgc/trace-trait.h +116 -0
  106. package/pods/Headers/include/cppgc/type-traits.h +240 -0
  107. package/pods/Headers/include/cppgc/visitor.h +379 -0
  108. package/pods/Headers/include/js_protocol-1.2.json +936 -0
  109. package/pods/Headers/include/js_protocol-1.3.json +1112 -0
  110. package/pods/Headers/include/js_protocol.pdl +1709 -0
  111. package/pods/Headers/include/libffi/arm64/ffi.h +524 -0
  112. package/pods/Headers/include/libffi/arm64/ffitarget.h +92 -0
  113. package/pods/Headers/include/libffi/x86_64/ffi.h +524 -0
  114. package/pods/Headers/include/libffi/x86_64/ffitarget.h +147 -0
  115. package/pods/Headers/include/libffi.h +12 -0
  116. package/pods/Headers/include/libplatform/DEPS +9 -0
  117. package/pods/Headers/include/libplatform/libplatform-export.h +29 -0
  118. package/pods/Headers/include/libplatform/libplatform.h +106 -0
  119. package/pods/Headers/include/libplatform/v8-tracing.h +333 -0
  120. package/pods/Headers/include/v8-array-buffer.h +433 -0
  121. package/pods/Headers/include/v8-callbacks.h +397 -0
  122. package/pods/Headers/include/v8-container.h +129 -0
  123. package/pods/Headers/include/v8-context.h +407 -0
  124. package/pods/Headers/include/v8-cppgc.h +215 -0
  125. package/pods/Headers/include/v8-data.h +80 -0
  126. package/pods/Headers/include/v8-date.h +43 -0
  127. package/pods/Headers/include/v8-debug.h +168 -0
  128. package/pods/Headers/include/v8-embedder-heap.h +218 -0
  129. package/pods/Headers/include/v8-embedder-state-scope.h +51 -0
  130. package/pods/Headers/include/v8-exception.h +217 -0
  131. package/pods/Headers/include/v8-extension.h +62 -0
  132. package/pods/Headers/include/v8-external.h +37 -0
  133. package/pods/Headers/include/v8-fast-api-calls.h +939 -0
  134. package/pods/Headers/include/v8-forward.h +81 -0
  135. package/pods/Headers/include/v8-function-callback.h +475 -0
  136. package/pods/Headers/include/v8-function.h +125 -0
  137. package/pods/Headers/include/v8-initialization.h +315 -0
  138. package/pods/Headers/include/v8-inspector-protocol.h +13 -0
  139. package/pods/Headers/include/v8-inspector.h +376 -0
  140. package/pods/Headers/include/v8-internal.h +661 -0
  141. package/pods/Headers/include/v8-isolate.h +1709 -0
  142. package/pods/Headers/include/v8-json.h +47 -0
  143. package/pods/Headers/include/v8-local-handle.h +455 -0
  144. package/pods/Headers/include/v8-locker.h +149 -0
  145. package/pods/Headers/include/v8-maybe.h +137 -0
  146. package/pods/Headers/include/v8-memory-span.h +43 -0
  147. package/pods/Headers/include/v8-message.h +216 -0
  148. package/pods/Headers/include/v8-metrics.h +255 -0
  149. package/pods/Headers/include/v8-microtask-queue.h +152 -0
  150. package/pods/Headers/include/v8-microtask.h +28 -0
  151. package/pods/Headers/include/v8-object.h +775 -0
  152. package/pods/Headers/include/v8-persistent-handle.h +590 -0
  153. package/pods/Headers/include/v8-platform.h +1092 -0
  154. package/pods/Headers/include/v8-primitive-object.h +118 -0
  155. package/pods/Headers/include/v8-primitive.h +866 -0
  156. package/pods/Headers/include/v8-profiler.h +1198 -0
  157. package/pods/Headers/include/v8-promise.h +174 -0
  158. package/pods/Headers/include/v8-proxy.h +50 -0
  159. package/pods/Headers/include/v8-regexp.h +105 -0
  160. package/pods/Headers/include/v8-script.h +748 -0
  161. package/pods/Headers/include/v8-snapshot.h +196 -0
  162. package/pods/Headers/include/v8-statistics.h +217 -0
  163. package/pods/Headers/include/v8-template.h +1079 -0
  164. package/pods/Headers/include/v8-traced-handle.h +420 -0
  165. package/pods/Headers/include/v8-typed-array.h +282 -0
  166. package/pods/Headers/include/v8-unwinder-state.h +31 -0
  167. package/pods/Headers/include/v8-unwinder.h +132 -0
  168. package/pods/Headers/include/v8-util.h +658 -0
  169. package/pods/Headers/include/v8-value-serializer-version.h +24 -0
  170. package/pods/Headers/include/v8-value-serializer.h +279 -0
  171. package/pods/Headers/include/v8-value.h +526 -0
  172. package/pods/Headers/include/v8-version-string.h +38 -0
  173. package/pods/Headers/include/v8-version.h +20 -0
  174. package/pods/Headers/include/v8-wasm-trap-handler-posix.h +31 -0
  175. package/pods/Headers/include/v8-wasm-trap-handler-win.h +28 -0
  176. package/pods/Headers/include/v8-wasm.h +257 -0
  177. package/pods/Headers/include/v8-weak-callback-info.h +86 -0
  178. package/pods/Headers/include/v8.h +88 -0
  179. package/pods/Headers/include/v8config.h +605 -0
  180. package/pods/Headers/inspector/InspectorServer.h +20 -0
  181. package/pods/Headers/inspector/JsV8InspectorClient.h +66 -0
  182. package/pods/Headers/inspector/base/trace_event/common/trace_event_common.h +1123 -0
  183. package/pods/Headers/inspector/base64.h +9 -0
  184. package/pods/Headers/inspector/src/base/address-region.h +95 -0
  185. package/pods/Headers/inspector/src/base/atomic-utils.h +219 -0
  186. package/pods/Headers/inspector/src/base/atomicops.h +332 -0
  187. package/pods/Headers/inspector/src/base/atomicops_internals_atomicword_compat.h +89 -0
  188. package/pods/Headers/inspector/src/base/base-export.h +31 -0
  189. package/pods/Headers/inspector/src/base/bits.h +343 -0
  190. package/pods/Headers/inspector/src/base/build_config.h +234 -0
  191. package/pods/Headers/inspector/src/base/compiler-specific.h +136 -0
  192. package/pods/Headers/inspector/src/base/export-template.h +163 -0
  193. package/pods/Headers/inspector/src/base/flags.h +130 -0
  194. package/pods/Headers/inspector/src/base/immediate-crash.h +162 -0
  195. package/pods/Headers/inspector/src/base/lazy-instance.h +258 -0
  196. package/pods/Headers/inspector/src/base/logging.h +417 -0
  197. package/pods/Headers/inspector/src/base/macros.h +423 -0
  198. package/pods/Headers/inspector/src/base/memory.h +89 -0
  199. package/pods/Headers/inspector/src/base/once.h +108 -0
  200. package/pods/Headers/inspector/src/base/optional.h +882 -0
  201. package/pods/Headers/inspector/src/base/platform/mutex.h +370 -0
  202. package/pods/Headers/inspector/src/base/platform/platform.h +476 -0
  203. package/pods/Headers/inspector/src/base/platform/semaphore.h +108 -0
  204. package/pods/Headers/inspector/src/base/platform/v8-time.h +513 -0
  205. package/pods/Headers/inspector/src/base/platform/wrappers.h +73 -0
  206. package/pods/Headers/inspector/src/base/safe_conversions.h +389 -0
  207. package/pods/Headers/inspector/src/base/safe_conversions_impl.h +822 -0
  208. package/pods/Headers/inspector/src/base/template-utils.h +113 -0
  209. package/pods/Headers/inspector/src/base/v8-fallthrough.h +21 -0
  210. package/pods/Headers/inspector/src/common/checks.h +38 -0
  211. package/pods/Headers/inspector/src/common/globals.h +1842 -0
  212. package/pods/Headers/inspector/src/debug/debug-interface.h +667 -0
  213. package/pods/Headers/inspector/src/debug/interface-types.h +175 -0
  214. package/pods/Headers/inspector/src/init/v8.h +52 -0
  215. package/pods/Headers/inspector/src/inspector/custom-preview.h +24 -0
  216. package/pods/Headers/inspector/src/inspector/injected-script.h +251 -0
  217. package/pods/Headers/inspector/src/inspector/inspected-context.h +79 -0
  218. package/pods/Headers/inspector/src/inspector/protocol/CSS.h +2148 -0
  219. package/pods/Headers/inspector/src/inspector/protocol/Console.h +211 -0
  220. package/pods/Headers/inspector/src/inspector/protocol/DOM.h +1008 -0
  221. package/pods/Headers/inspector/src/inspector/protocol/Debugger.h +892 -0
  222. package/pods/Headers/inspector/src/inspector/protocol/Forward.h +75 -0
  223. package/pods/Headers/inspector/src/inspector/protocol/HeapProfiler.h +346 -0
  224. package/pods/Headers/inspector/src/inspector/protocol/Log.h +342 -0
  225. package/pods/Headers/inspector/src/inspector/protocol/Network.h +2528 -0
  226. package/pods/Headers/inspector/src/inspector/protocol/Overlay.h +281 -0
  227. package/pods/Headers/inspector/src/inspector/protocol/Page.h +1189 -0
  228. package/pods/Headers/inspector/src/inspector/protocol/Profiler.h +1001 -0
  229. package/pods/Headers/inspector/src/inspector/protocol/Protocol.h +617 -0
  230. package/pods/Headers/inspector/src/inspector/protocol/Runtime.h +1696 -0
  231. package/pods/Headers/inspector/src/inspector/protocol/Schema.h +146 -0
  232. package/pods/Headers/inspector/src/inspector/protocol/Security.h +793 -0
  233. package/pods/Headers/inspector/src/inspector/remote-object-id.h +54 -0
  234. package/pods/Headers/inspector/src/inspector/search-util.h +26 -0
  235. package/pods/Headers/inspector/src/inspector/string-16.h +180 -0
  236. package/pods/Headers/inspector/src/inspector/string-util.h +128 -0
  237. package/pods/Headers/inspector/src/inspector/v8-console-agent-impl.h +48 -0
  238. package/pods/Headers/inspector/src/inspector/v8-console-message.h +147 -0
  239. package/pods/Headers/inspector/src/inspector/v8-console.h +173 -0
  240. package/pods/Headers/inspector/src/inspector/v8-css-agent-impl.h +62 -0
  241. package/pods/Headers/inspector/src/inspector/v8-debugger-agent-impl.h +248 -0
  242. package/pods/Headers/inspector/src/inspector/v8-debugger-id.h +44 -0
  243. package/pods/Headers/inspector/src/inspector/v8-debugger-script.h +123 -0
  244. package/pods/Headers/inspector/src/inspector/v8-debugger.h +257 -0
  245. package/pods/Headers/inspector/src/inspector/v8-dom-agent-impl.h +91 -0
  246. package/pods/Headers/inspector/src/inspector/v8-heap-profiler-agent-impl.h +80 -0
  247. package/pods/Headers/inspector/src/inspector/v8-inspector-impl.h +191 -0
  248. package/pods/Headers/inspector/src/inspector/v8-inspector-session-impl.h +156 -0
  249. package/pods/Headers/inspector/src/inspector/v8-log-agent-impl.h +34 -0
  250. package/pods/Headers/inspector/src/inspector/v8-network-agent-impl.h +71 -0
  251. package/pods/Headers/inspector/src/inspector/v8-ns-debugger-agent-impl.h +24 -0
  252. package/pods/Headers/inspector/src/inspector/v8-overlay-agent-impl.h +70 -0
  253. package/pods/Headers/inspector/src/inspector/v8-page-agent-impl.h +88 -0
  254. package/pods/Headers/inspector/src/inspector/v8-profiler-agent-impl.h +104 -0
  255. package/pods/Headers/inspector/src/inspector/v8-regex.h +38 -0
  256. package/pods/Headers/inspector/src/inspector/v8-runtime-agent-impl.h +157 -0
  257. package/pods/Headers/inspector/src/inspector/v8-schema-agent-impl.h +38 -0
  258. package/pods/Headers/inspector/src/inspector/v8-stack-trace-impl.h +164 -0
  259. package/pods/Headers/inspector/src/inspector/v8-string-conversions.h +17 -0
  260. package/pods/Headers/inspector/src/inspector/v8-value-utils.h +23 -0
  261. package/pods/Headers/inspector/src/inspector/value-mirror.h +87 -0
  262. package/pods/Headers/inspector/src/libplatform/default-platform.h +92 -0
  263. package/pods/Headers/inspector/src/logging/tracing-flags.h +50 -0
  264. package/pods/Headers/inspector/src/numbers/conversions.h +183 -0
  265. package/pods/Headers/inspector/src/tracing/trace-event.h +664 -0
  266. package/pods/Headers/inspector/src/utils/allocation.h +367 -0
  267. package/pods/Headers/inspector/src/utils/vector.h +324 -0
  268. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/cbor.h +305 -0
  269. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/dispatch.h +314 -0
  270. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/error_support.h +62 -0
  271. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/export.h +6 -0
  272. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/find_by_first.h +58 -0
  273. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/frontend_channel.h +47 -0
  274. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/glue.h +80 -0
  275. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/json.h +52 -0
  276. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/json_platform.h +26 -0
  277. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/maybe.h +104 -0
  278. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/parser_handler.h +39 -0
  279. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/protocol_core.h +406 -0
  280. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/serializable.h +32 -0
  281. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/serializer_traits.h +158 -0
  282. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/span.h +99 -0
  283. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/status.h +139 -0
  284. package/pods/Headers/inspector/utils.h +32 -0
  285. package/pods/Headers/inspector/v8-inspector-platform.h +44 -0
  286. package/pods/Headers/jsi/decorator.h +762 -0
  287. package/pods/Headers/jsi/instrumentation.h +117 -0
  288. package/pods/Headers/jsi/jsi-inl.h +322 -0
  289. package/pods/Headers/jsi/jsi.h +1387 -0
  290. package/pods/Headers/jsi/jsilib.h +59 -0
  291. package/pods/Headers/jsi/threadsafe.h +79 -0
  292. package/pods/Headers/runtime/ArgConverter.h +61 -0
  293. package/pods/Headers/runtime/ArrayAdapter.h +13 -0
  294. package/pods/Headers/runtime/Caches.h +98 -0
  295. package/pods/Headers/runtime/ClassBuilder.h +61 -0
  296. package/pods/Headers/runtime/Common.h +9 -0
  297. package/pods/Headers/runtime/ConcurrentMap.h +55 -0
  298. package/pods/Headers/runtime/ConcurrentQueue.h +28 -0
  299. package/pods/Headers/runtime/Console.h +27 -0
  300. package/pods/Headers/runtime/Constants.h +15 -0
  301. package/pods/Headers/runtime/DataWrapper.h +671 -0
  302. package/pods/Headers/runtime/DictionaryAdapter.h +13 -0
  303. package/pods/Headers/runtime/ExtVector.h +21 -0
  304. package/pods/Headers/runtime/FFICall.h +105 -0
  305. package/pods/Headers/runtime/FastEnumerationAdapter.h +13 -0
  306. package/pods/Headers/runtime/FunctionReference.h +18 -0
  307. package/pods/Headers/runtime/Helpers.h +84 -0
  308. package/pods/Headers/runtime/InlineFunctions.h +16 -0
  309. package/pods/Headers/runtime/Interop.h +202 -0
  310. package/pods/Headers/runtime/KnownUnknownClassPair.h +35 -0
  311. package/pods/Headers/runtime/Metadata.h +981 -0
  312. package/pods/Headers/runtime/MetadataBuilder.h +72 -0
  313. package/pods/Headers/runtime/MetadataInlines.h +157 -0
  314. package/pods/Headers/runtime/ModuleInternal.h +59 -0
  315. package/pods/Headers/runtime/NSDataAdapter.h +13 -0
  316. package/pods/Headers/runtime/NativeScriptException.h +27 -0
  317. package/pods/Headers/runtime/ObjectManager.h +31 -0
  318. package/pods/Headers/runtime/OneByteStringResource.h +21 -0
  319. package/pods/Headers/runtime/Pointer.h +26 -0
  320. package/pods/Headers/runtime/PromiseProxy.h +15 -0
  321. package/pods/Headers/runtime/Reference.h +38 -0
  322. package/pods/Headers/runtime/Runtime.h +67 -0
  323. package/pods/Headers/runtime/RuntimeConfig.h +17 -0
  324. package/pods/Headers/runtime/SetTimeout.h +34 -0
  325. package/pods/Headers/runtime/SimpleAllocator.h +23 -0
  326. package/pods/Headers/runtime/StringHasher.h +315 -0
  327. package/pods/Headers/runtime/SymbolIterator.h +18 -0
  328. package/pods/Headers/runtime/SymbolLoader.h +27 -0
  329. package/pods/Headers/runtime/TNSDerivedClass.h +8 -0
  330. package/pods/Headers/runtime/TSHelpers.h +15 -0
  331. package/pods/Headers/runtime/Tasks.h +19 -0
  332. package/pods/Headers/runtime/UnmanagedType.h +21 -0
  333. package/pods/Headers/runtime/WeakRef.h +15 -0
  334. package/pods/Headers/runtime/Worker.h +26 -0
  335. package/pods/Headers/runtime/robin_hood.h +2184 -0
  336. package/pods/Headers/v8runtime/HostProxy.h +71 -0
  337. package/pods/Headers/v8runtime/JSIV8ValueConverter.h +70 -0
  338. package/pods/Headers/v8runtime/V8PointerValue.h +44 -0
  339. package/pods/Headers/v8runtime/V8Runtime.h +215 -0
  340. package/pods/Headers/v8runtime/V8RuntimeConfig.h +26 -0
  341. package/pods/Headers/v8runtime/V8RuntimeFactory.h +21 -0
  342. package/pods/NativeScript.podspec +68 -0
  343. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/PrivateHeaders/mason_native.h +0 -676
  344. package/platforms/ios/src/JSIModule.h +0 -217
  345. package/platforms/ios/src/JSIModule.mm +0 -2788
@@ -0,0 +1,1189 @@
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)