protocol_config.json 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. {
  2. "use_snake_file_names": true,
  3. "use_title_case_methods": true,
  4. "protocol": {
  5. "package": "headless/lib/browser/protocol",
  6. "output": "lib/browser/protocol",
  7. "namespace": ["headless", "protocol"],
  8. "export_macro": "HEADLESS_EXPORT",
  9. "export_header": "headless/public/headless_export.h",
  10. "options": [
  11. {
  12. "domain": "Target",
  13. "include": ["createTarget", "closeTarget"],
  14. "include_events": []
  15. },
  16. {
  17. "domain": "Browser",
  18. "include": ["close", "getWindowForTarget", "getWindowBounds", "setWindowBounds", "setDockTile" ],
  19. "include_events": []
  20. },
  21. {
  22. "domain": "HeadlessExperimental",
  23. "async": ["beginFrame"]
  24. },
  25. {
  26. "domain": "Page",
  27. "include": ["printToPDF"],
  28. "async": ["printToPDF"],
  29. "include_events": []
  30. }
  31. ]
  32. },
  33. "lib": {
  34. "package": "headless/lib/browser/protocol",
  35. "output": "lib/browser/protocol",
  36. "protocol_traits": "third_party/inspector_protocol/crdtp/chromium/protocol_traits.h",
  37. "export_macro": "HEADLESS_EXPORT",
  38. "export_header": "headless/public/headless_export.h"
  39. },
  40. "crdtp": {
  41. "namespace": "crdtp"
  42. }
  43. }