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_OFFSCREEN_RESULT_H_
6 #define UI_ACCESSIBILITY_AX_OFFSCREEN_RESULT_H_
7 
8 namespace ui {
9 
10 // The onscreen state of result bounds or points. Any object is offscreen if
11 // it is fully clipped or scrolled out of view by any of its ancestors so that
12 // it is not rendered on the screen. For a longer discussion on what offscreen
13 // means in the context of Chromium see the link below.
14 // https://chromium.googlesource.com/chromium/src/+/lkgr/docs/accessibility/offscreen.md
15 //   kOnscreen:  The resulting bound or point is onscreen
16 //   kOffscreen: The resulting bound or point is offscreen
17 enum class AXOffscreenResult { kOnscreen, kOffscreen };
18 }  // namespace ui
19 
20 #endif  // UI_ACCESSIBILITY_AX_OFFSCREEN_RESULT_H_
21