| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef AXObject_h | 5 #ifndef AXObject_h |
| 6 #define AXObject_h | 6 #define AXObject_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| 11 | 11 |
| 12 class Node; |
| 13 |
| 12 enum AccessibilityRole { | 14 enum AccessibilityRole { |
| 13 kUnknownRole = 0, // Not mapped in platform APIs, generally indicates a bug | 15 kUnknownRole = 0, // Not mapped in platform APIs, generally indicates a bug |
| 14 kAbbrRole, // No mapping to ARIA role. | 16 kAbbrRole, // No mapping to ARIA role. |
| 15 kAlertDialogRole, | 17 kAlertDialogRole, |
| 16 kAlertRole, | 18 kAlertRole, |
| 17 kAnchorRole, // No mapping to ARIA role. | 19 kAnchorRole, // No mapping to ARIA role. |
| 18 kAnnotationRole, // No mapping to ARIA role. | 20 kAnnotationRole, // No mapping to ARIA role. |
| 19 kApplicationRole, | 21 kApplicationRole, |
| 20 kArticleRole, | 22 kArticleRole, |
| 21 kAudioRole, // No mapping to ARIA role. | 23 kAudioRole, // No mapping to ARIA role. |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 // is exposed. | 279 // is exposed. |
| 278 enum AXDescriptionFrom { | 280 enum AXDescriptionFrom { |
| 279 kAXDescriptionFromUninitialized = -1, | 281 kAXDescriptionFromUninitialized = -1, |
| 280 kAXDescriptionFromAttribute = 0, | 282 kAXDescriptionFromAttribute = 0, |
| 281 kAXDescriptionFromContents, | 283 kAXDescriptionFromContents, |
| 282 kAXDescriptionFromRelatedElement, | 284 kAXDescriptionFromRelatedElement, |
| 283 }; | 285 }; |
| 284 | 286 |
| 285 // TODO(sashab): Add pure virtual methods to this class to remove dependencies | 287 // TODO(sashab): Add pure virtual methods to this class to remove dependencies |
| 286 // on AXObjectImpl from outside of modules/. | 288 // on AXObjectImpl from outside of modules/. |
| 287 class CORE_EXPORT AXObject {}; | 289 class CORE_EXPORT AXObject { |
| 290 public: |
| 291 // Static helper functions. |
| 292 static bool IsInsideFocusableElementOrARIAWidget(const Node&); |
| 293 }; |
| 288 | 294 |
| 289 } // namespace blink | 295 } // namespace blink |
| 290 | 296 |
| 291 #endif // AXObject_h | 297 #endif // AXObject_h |
| OLD | NEW |