Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Side by Side Diff: third_party/WebKit/Source/modules/accessibility/AXObjectImpl.h

Issue 2945773002: Relation properties for Accessibility Object Model phase 1 (Closed)
Patch Set: Add tests for details and error message too Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1
2 /* 1 /*
3 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved.
4 * Copyright (C) 2008 Nuanti Ltd. 3 * Copyright (C) 2008 Nuanti Ltd.
5 * 4 *
6 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
8 * are met: 7 * are met:
9 * 8 *
10 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 class LayoutObject; 52 class LayoutObject;
54 class LocalFrameView; 53 class LocalFrameView;
55 class Node; 54 class Node;
56 class ScrollableArea; 55 class ScrollableArea;
57 56
58 enum class AOMBooleanProperty; 57 enum class AOMBooleanProperty;
59 enum class AOMStringProperty; 58 enum class AOMStringProperty;
60 enum class AOMUIntProperty; 59 enum class AOMUIntProperty;
61 enum class AOMIntProperty; 60 enum class AOMIntProperty;
62 enum class AOMFloatProperty; 61 enum class AOMFloatProperty;
62 enum class AOMRelationProperty;
63 63
64 typedef unsigned AXID; 64 typedef unsigned AXID;
65 65
66 enum AccessibilityTextSource { 66 enum AccessibilityTextSource {
67 kAlternativeText, 67 kAlternativeText,
68 kChildrenText, 68 kChildrenText,
69 kSummaryText, 69 kSummaryText,
70 kHelpText, 70 kHelpText,
71 kVisibleText, 71 kVisibleText,
72 kTitleTagText, 72 kTitleTagText,
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 AXObjectCacheImpl& AxObjectCache() const { 348 AXObjectCacheImpl& AxObjectCache() const {
349 DCHECK(ax_object_cache_); 349 DCHECK(ax_object_cache_);
350 return *ax_object_cache_; 350 return *ax_object_cache_;
351 } 351 }
352 352
353 AXID AxObjectID() const { return id_; } 353 AXID AxObjectID() const { return id_; }
354 354
355 // Wrappers that retrieve either an Accessibility Object Model property, 355 // Wrappers that retrieve either an Accessibility Object Model property,
356 // or the equivalent ARIA attribute, in that order. 356 // or the equivalent ARIA attribute, in that order.
357 const AtomicString& GetAOMPropertyOrARIAAttribute(AOMStringProperty) const; 357 const AtomicString& GetAOMPropertyOrARIAAttribute(AOMStringProperty) const;
358 Element* GetAOMPropertyOrARIAAttribute(AOMRelationProperty) const;
358 bool HasAOMPropertyOrARIAAttribute(AOMBooleanProperty, bool& result) const; 359 bool HasAOMPropertyOrARIAAttribute(AOMBooleanProperty, bool& result) const;
359 bool AOMPropertyOrARIAAttributeIsTrue(AOMBooleanProperty) const; 360 bool AOMPropertyOrARIAAttributeIsTrue(AOMBooleanProperty) const;
360 bool AOMPropertyOrARIAAttributeIsFalse(AOMBooleanProperty) const; 361 bool AOMPropertyOrARIAAttributeIsFalse(AOMBooleanProperty) const;
361 bool HasAOMPropertyOrARIAAttribute(AOMUIntProperty, uint32_t& result) const; 362 bool HasAOMPropertyOrARIAAttribute(AOMUIntProperty, uint32_t& result) const;
362 bool HasAOMPropertyOrARIAAttribute(AOMIntProperty, int32_t& result) const; 363 bool HasAOMPropertyOrARIAAttribute(AOMIntProperty, int32_t& result) const;
363 bool HasAOMPropertyOrARIAAttribute(AOMFloatProperty, float& result) const; 364 bool HasAOMPropertyOrARIAAttribute(AOMFloatProperty, float& result) const;
364 365
365 virtual void GetSparseAXAttributes(AXSparseAttributeClient&) const {} 366 virtual void GetSparseAXAttributes(AXSparseAttributeClient&) const {}
366 367
367 // Determine subclass type. 368 // Determine subclass type.
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after
894 895
895 DEFINE_TYPE_CASTS(AXObjectImpl, AXObject, obj, true, true); 896 DEFINE_TYPE_CASTS(AXObjectImpl, AXObject, obj, true, true);
896 897
897 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ 898 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \
898 DEFINE_TYPE_CASTS(thisType, AXObjectImpl, object, object->predicate, \ 899 DEFINE_TYPE_CASTS(thisType, AXObjectImpl, object, object->predicate, \
899 object.predicate) 900 object.predicate)
900 901
901 } // namespace blink 902 } // namespace blink
902 903
903 #endif // AXObjectImpl_h 904 #endif // AXObjectImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698