chromium-bidi.js 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. "use strict";
  2. /**
  3. * Copyright 2023 Google LLC.
  4. * Copyright (c) Microsoft Corporation.
  5. *
  6. * Licensed under the Apache License, Version 2.0 (the "License");
  7. * you may not use this file except in compliance with the License.
  8. * You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. */
  18. Object.defineProperty(exports, "__esModule", { value: true });
  19. exports.EVENT_NAMES = exports.Network = exports.BrowsingContext = exports.Log = exports.Script = exports.BiDiModule = void 0;
  20. // keep-sorted end
  21. var BiDiModule;
  22. (function (BiDiModule) {
  23. // keep-sorted start
  24. BiDiModule["Browser"] = "browser";
  25. BiDiModule["BrowsingContext"] = "browsingContext";
  26. BiDiModule["Cdp"] = "cdp";
  27. BiDiModule["Input"] = "input";
  28. BiDiModule["Log"] = "log";
  29. BiDiModule["Network"] = "network";
  30. BiDiModule["Script"] = "script";
  31. BiDiModule["Session"] = "session";
  32. // keep-sorted end
  33. })(BiDiModule || (exports.BiDiModule = BiDiModule = {}));
  34. var Script;
  35. (function (Script) {
  36. let EventNames;
  37. (function (EventNames) {
  38. // keep-sorted start
  39. EventNames["Message"] = "script.message";
  40. EventNames["RealmCreated"] = "script.realmCreated";
  41. EventNames["RealmDestroyed"] = "script.realmDestroyed";
  42. // keep-sorted end
  43. })(EventNames = Script.EventNames || (Script.EventNames = {}));
  44. })(Script || (exports.Script = Script = {}));
  45. var Log;
  46. (function (Log) {
  47. let EventNames;
  48. (function (EventNames) {
  49. EventNames["LogEntryAdded"] = "log.entryAdded";
  50. })(EventNames = Log.EventNames || (Log.EventNames = {}));
  51. })(Log || (exports.Log = Log = {}));
  52. var BrowsingContext;
  53. (function (BrowsingContext) {
  54. let EventNames;
  55. (function (EventNames) {
  56. // keep-sorted start
  57. EventNames["ContextCreated"] = "browsingContext.contextCreated";
  58. EventNames["ContextDestroyed"] = "browsingContext.contextDestroyed";
  59. EventNames["DomContentLoaded"] = "browsingContext.domContentLoaded";
  60. EventNames["DownloadWillBegin"] = "browsingContext.downloadWillBegin";
  61. EventNames["FragmentNavigated"] = "browsingContext.fragmentNavigated";
  62. EventNames["Load"] = "browsingContext.load";
  63. EventNames["NavigationAborted"] = "browsingContext.navigationAborted";
  64. EventNames["NavigationFailed"] = "browsingContext.navigationFailed";
  65. EventNames["NavigationStarted"] = "browsingContext.navigationStarted";
  66. EventNames["UserPromptClosed"] = "browsingContext.userPromptClosed";
  67. EventNames["UserPromptOpened"] = "browsingContext.userPromptOpened";
  68. // keep-sorted end
  69. })(EventNames = BrowsingContext.EventNames || (BrowsingContext.EventNames = {}));
  70. })(BrowsingContext || (exports.BrowsingContext = BrowsingContext = {}));
  71. var Network;
  72. (function (Network) {
  73. let EventNames;
  74. (function (EventNames) {
  75. // keep-sorted start
  76. EventNames["AuthRequired"] = "network.authRequired";
  77. EventNames["BeforeRequestSent"] = "network.beforeRequestSent";
  78. EventNames["FetchError"] = "network.fetchError";
  79. EventNames["ResponseCompleted"] = "network.responseCompleted";
  80. EventNames["ResponseStarted"] = "network.responseStarted";
  81. // keep-sorted end
  82. })(EventNames = Network.EventNames || (Network.EventNames = {}));
  83. })(Network || (exports.Network = Network = {}));
  84. exports.EVENT_NAMES = new Set([
  85. // keep-sorted start
  86. ...Object.values(BiDiModule),
  87. ...Object.values(BrowsingContext.EventNames),
  88. ...Object.values(Log.EventNames),
  89. ...Object.values(Network.EventNames),
  90. ...Object.values(Script.EventNames),
  91. // keep-sorted end
  92. ]);
  93. //# sourceMappingURL=chromium-bidi.js.map