chromium/services/accessibility/features/javascript/event.js

// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.


/**
 * An event which takes place in the DOM.
 *
 * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event)
 *
 * Notes:
 * - This is a shim for ATP so the automation API can use some of its features.
 * - It is not fully implemented and supports for now only what is used by the
 * automation API.
 */
Event = {
  NONE: 0,
  CAPTURING_PHASE: 1,
  AT_TARGET: 2,
  BUBBLING_PHASE: 3,
};