events.js 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. // Copyright 2020 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. // This file was generated by:
  5. // tools/json_schema_compiler/compiler.py.
  6. // NOTE: The format of types has changed. 'FooType' is now
  7. // 'chrome.events.FooType'.
  8. // Please run the closure compiler before committing changes.
  9. // See https://chromium.googlesource.com/chromium/src/+/master/docs/closure_compilation.md
  10. /** @fileoverview Externs generated from namespace: events */
  11. /** @const */
  12. chrome.events = {};
  13. /**
  14. * Description of a declarative rule for handling events.
  15. * @typedef {{
  16. * id: (string|undefined),
  17. * tags: (!Array<string>|undefined),
  18. * conditions: !Array<*>,
  19. * actions: !Array<*>,
  20. * priority: (number|undefined)
  21. * }}
  22. * @see https://developer.chrome.com/extensions/events#type-Rule
  23. */
  24. chrome.events.Rule;
  25. /**
  26. * An object which allows the addition and removal of listeners for a Chrome event.
  27. * @typedef {Object}
  28. * @see https://developer.chrome.com/extensions/events#type-Event
  29. */
  30. chrome.events.Event;
  31. /**
  32. * Filters URLs for various criteria. See <a href='events#filtered'>event filtering</a>. All criteria are case sensitive.
  33. * @typedef {{
  34. * hostContains: (string|undefined),
  35. * hostEquals: (string|undefined),
  36. * hostPrefix: (string|undefined),
  37. * hostSuffix: (string|undefined),
  38. * pathContains: (string|undefined),
  39. * pathEquals: (string|undefined),
  40. * pathPrefix: (string|undefined),
  41. * pathSuffix: (string|undefined),
  42. * queryContains: (string|undefined),
  43. * queryEquals: (string|undefined),
  44. * queryPrefix: (string|undefined),
  45. * querySuffix: (string|undefined),
  46. * urlContains: (string|undefined),
  47. * urlEquals: (string|undefined),
  48. * urlMatches: (string|undefined),
  49. * originAndPathMatches: (string|undefined),
  50. * urlPrefix: (string|undefined),
  51. * urlSuffix: (string|undefined),
  52. * schemes: (!Array<string>|undefined),
  53. * ports: (!Array<(number|!Array<number>)>|undefined)
  54. * }}
  55. * @see https://developer.chrome.com/extensions/events#type-UrlFilter
  56. */
  57. chrome.events.UrlFilter;