| 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, | 15 kUnknownRole = 0, |
| 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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 // is exposed. | 267 // is exposed. |
| 266 enum AXDescriptionFrom { | 268 enum AXDescriptionFrom { |
| 267 kAXDescriptionFromUninitialized = -1, | 269 kAXDescriptionFromUninitialized = -1, |
| 268 kAXDescriptionFromAttribute = 0, | 270 kAXDescriptionFromAttribute = 0, |
| 269 kAXDescriptionFromContents, | 271 kAXDescriptionFromContents, |
| 270 kAXDescriptionFromRelatedElement, | 272 kAXDescriptionFromRelatedElement, |
| 271 }; | 273 }; |
| 272 | 274 |
| 273 // TODO(sashab): Add pure virtual methods to this class to remove dependencies | 275 // TODO(sashab): Add pure virtual methods to this class to remove dependencies |
| 274 // on AXObjectImpl from outside of modules/. | 276 // on AXObjectImpl from outside of modules/. |
| 275 class CORE_EXPORT AXObject {}; | 277 class CORE_EXPORT AXObject { |
| 278 public: |
| 279 // Static helper functions. |
| 280 static bool IsInsideFocusableElementOrARIAWidget(const Node&); |
| 281 }; |
| 276 | 282 |
| 277 } // namespace blink | 283 } // namespace blink |
| 278 | 284 |
| 279 #endif // AXObject_h | 285 #endif // AXObject_h |
| OLD | NEW |