ax_clipping_behavior.h 845 B

12345678910111213141516171819
  1. // Copyright 2019 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. #ifndef UI_ACCESSIBILITY_AX_CLIPPING_BEHAVIOR_H_
  5. #define UI_ACCESSIBILITY_AX_CLIPPING_BEHAVIOR_H_
  6. namespace ui {
  7. // The clipping behavior to perform on bounds. Clipping limits a node's bounding
  8. // box to the visible sizes of it's ancestors - which may be hidden or scrolled
  9. // out of view. For a longer discussion on clipping behavior see the link below.
  10. // https://chromium.googlesource.com/chromium/src/+/lkgr/docs/accessibility/offscreen.md
  11. // kUnclipped: Do not apply clipping to bound results
  12. // kClipped: Apply clipping to bound results
  13. enum class AXClippingBehavior { kUnclipped, kClipped };
  14. } // namespace ui
  15. #endif // UI_ACCESSIBILITY_AX_CLIPPING_BEHAVIOR_H_