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