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

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

Issue 2945773002: Relation properties for Accessibility Object Model phase 1 (Closed)
Patch Set: Fix merge error, format 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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 AXObjectCacheImpl& AxObjectCache() const { 346 AXObjectCacheImpl& AxObjectCache() const {
347 DCHECK(ax_object_cache_); 347 DCHECK(ax_object_cache_);
348 return *ax_object_cache_; 348 return *ax_object_cache_;
349 } 349 }
350 350
351 AXID AxObjectID() const { return id_; } 351 AXID AxObjectID() const { return id_; }
352 352
353 // Wrappers that retrieve either an Accessibility Object Model property, 353 // Wrappers that retrieve either an Accessibility Object Model property,
354 // or the equivalent ARIA attribute, in that order. 354 // or the equivalent ARIA attribute, in that order.
355 const AtomicString& GetAOMPropertyOrARIAAttribute(AOMStringProperty) const; 355 const AtomicString& GetAOMPropertyOrARIAAttribute(AOMStringProperty) const;
356 Element* GetAOMPropertyOrARIAAttribute(AOMRelationProperty) const;
356 bool HasAOMPropertyOrARIAAttribute(AOMBooleanProperty, bool& result) const; 357 bool HasAOMPropertyOrARIAAttribute(AOMBooleanProperty, bool& result) const;
357 bool AOMPropertyOrARIAAttributeIsTrue(AOMBooleanProperty) const; 358 bool AOMPropertyOrARIAAttributeIsTrue(AOMBooleanProperty) const;
358 bool AOMPropertyOrARIAAttributeIsFalse(AOMBooleanProperty) const; 359 bool AOMPropertyOrARIAAttributeIsFalse(AOMBooleanProperty) const;
359 bool HasAOMPropertyOrARIAAttribute(AOMUIntProperty, uint32_t& result) const; 360 bool HasAOMPropertyOrARIAAttribute(AOMUIntProperty, uint32_t& result) const;
360 bool HasAOMPropertyOrARIAAttribute(AOMIntProperty, int32_t& result) const; 361 bool HasAOMPropertyOrARIAAttribute(AOMIntProperty, int32_t& result) const;
361 bool HasAOMPropertyOrARIAAttribute(AOMFloatProperty, float& result) const; 362 bool HasAOMPropertyOrARIAAttribute(AOMFloatProperty, float& result) const;
362 363
363 virtual void GetSparseAXAttributes(AXSparseAttributeClient&) const {} 364 virtual void GetSparseAXAttributes(AXSparseAttributeClient&) const {}
364 365
365 // Determine subclass type. 366 // Determine subclass type.
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
886 static unsigned number_of_live_ax_objects_; 887 static unsigned number_of_live_ax_objects_;
887 }; 888 };
888 889
889 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ 890 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \
890 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, \ 891 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, \
891 object.predicate) 892 object.predicate)
892 893
893 } // namespace blink 894 } // namespace blink
894 895
895 #endif // AXObject_h 896 #endif // AXObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698