| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved. | 3 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved. |
| 4 * Copyright (C) 2008 Nuanti Ltd. | 4 * Copyright (C) 2008 Nuanti Ltd. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * | 9 * |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 class AXObjectCacheImpl; | 50 class AXObjectCacheImpl; |
| 51 class Element; | 51 class Element; |
| 52 class FrameView; | 52 class FrameView; |
| 53 class IntPoint; | 53 class IntPoint; |
| 54 class Node; | 54 class Node; |
| 55 class LayoutObject; | 55 class LayoutObject; |
| 56 class ScrollableArea; | 56 class ScrollableArea; |
| 57 | 57 |
| 58 enum class AOMBooleanProperty; | 58 enum class AOMBooleanProperty; |
| 59 enum class AOMStringProperty; | 59 enum class AOMStringProperty; |
| 60 enum class AOMUIntProperty; |
| 61 enum class AOMIntProperty; |
| 62 enum class AOMFloatProperty; |
| 60 | 63 |
| 61 typedef unsigned AXID; | 64 typedef unsigned AXID; |
| 62 | 65 |
| 63 enum AccessibilityTextSource { | 66 enum AccessibilityTextSource { |
| 64 kAlternativeText, | 67 kAlternativeText, |
| 65 kChildrenText, | 68 kChildrenText, |
| 66 kSummaryText, | 69 kSummaryText, |
| 67 kHelpText, | 70 kHelpText, |
| 68 kVisibleText, | 71 kVisibleText, |
| 69 kTitleTagText, | 72 kTitleTagText, |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 346 } | 349 } |
| 347 | 350 |
| 348 AXID AxObjectID() const { return id_; } | 351 AXID AxObjectID() const { return id_; } |
| 349 | 352 |
| 350 // Wrappers that retrieve either an Accessibility Object Model property, | 353 // Wrappers that retrieve either an Accessibility Object Model property, |
| 351 // or the equivalent ARIA attribute, in that order. | 354 // or the equivalent ARIA attribute, in that order. |
| 352 const AtomicString& GetAOMPropertyOrARIAAttribute(AOMStringProperty) const; | 355 const AtomicString& GetAOMPropertyOrARIAAttribute(AOMStringProperty) const; |
| 353 bool HasAOMPropertyOrARIAAttribute(AOMBooleanProperty, bool& result) const; | 356 bool HasAOMPropertyOrARIAAttribute(AOMBooleanProperty, bool& result) const; |
| 354 bool AOMPropertyOrARIAAttributeIsTrue(AOMBooleanProperty) const; | 357 bool AOMPropertyOrARIAAttributeIsTrue(AOMBooleanProperty) const; |
| 355 bool AOMPropertyOrARIAAttributeIsFalse(AOMBooleanProperty) const; | 358 bool AOMPropertyOrARIAAttributeIsFalse(AOMBooleanProperty) const; |
| 359 bool HasAOMPropertyOrARIAAttribute(AOMUIntProperty, uint32_t& result) const; |
| 360 bool HasAOMPropertyOrARIAAttribute(AOMIntProperty, int32_t& result) const; |
| 361 bool HasAOMPropertyOrARIAAttribute(AOMFloatProperty, float& result) const; |
| 356 | 362 |
| 357 virtual void GetSparseAXAttributes(AXSparseAttributeClient&) const {} | 363 virtual void GetSparseAXAttributes(AXSparseAttributeClient&) const {} |
| 358 | 364 |
| 359 // Determine subclass type. | 365 // Determine subclass type. |
| 360 virtual bool IsAXNodeObject() const { return false; } | 366 virtual bool IsAXNodeObject() const { return false; } |
| 361 virtual bool IsAXLayoutObject() const { return false; } | 367 virtual bool IsAXLayoutObject() const { return false; } |
| 362 virtual bool IsAXInlineTextBox() const { return false; } | 368 virtual bool IsAXInlineTextBox() const { return false; } |
| 363 virtual bool IsAXListBox() const { return false; } | 369 virtual bool IsAXListBox() const { return false; } |
| 364 virtual bool IsAXListBoxOption() const { return false; } | 370 virtual bool IsAXListBoxOption() const { return false; } |
| 365 virtual bool IsAXRadioInput() const { return false; } | 371 virtual bool IsAXRadioInput() const { return false; } |
| (...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 883 | 889 |
| 884 DEFINE_TYPE_CASTS(AXObjectImpl, AXObject, obj, true, true); | 890 DEFINE_TYPE_CASTS(AXObjectImpl, AXObject, obj, true, true); |
| 885 | 891 |
| 886 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ | 892 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ |
| 887 DEFINE_TYPE_CASTS(thisType, AXObjectImpl, object, object->predicate, \ | 893 DEFINE_TYPE_CASTS(thisType, AXObjectImpl, object, object->predicate, \ |
| 888 object.predicate) | 894 object.predicate) |
| 889 | 895 |
| 890 } // namespace blink | 896 } // namespace blink |
| 891 | 897 |
| 892 #endif // AXObjectImpl_h | 898 #endif // AXObjectImpl_h |
| OLD | NEW |