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

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

Issue 2894103002: Int and Float properties for Accessibility Object Model phase 1 (Closed)
Patch Set: Created 3 years, 7 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 /* 1 /*
2 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Nuanti Ltd. 3 * Copyright (C) 2008 Nuanti Ltd.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 class AXObjectCacheImpl; 49 class AXObjectCacheImpl;
50 class Element; 50 class Element;
51 class FrameView; 51 class FrameView;
52 class IntPoint; 52 class IntPoint;
53 class Node; 53 class Node;
54 class LayoutObject; 54 class LayoutObject;
55 class ScrollableArea; 55 class ScrollableArea;
56 56
57 enum class AOMBooleanProperty; 57 enum class AOMBooleanProperty;
58 enum class AOMStringProperty; 58 enum class AOMStringProperty;
59 enum class AOMUIntProperty;
60 enum class AOMIntProperty;
61 enum class AOMFloatProperty;
59 62
60 typedef unsigned AXID; 63 typedef unsigned AXID;
61 64
62 enum AccessibilityRole { 65 enum AccessibilityRole {
63 kUnknownRole = 0, 66 kUnknownRole = 0,
64 kAbbrRole, // No mapping to ARIA role. 67 kAbbrRole, // No mapping to ARIA role.
65 kAlertDialogRole, 68 kAlertDialogRole,
66 kAlertRole, 69 kAlertRole,
67 kAnchorRole, // No mapping to ARIA role. 70 kAnchorRole, // No mapping to ARIA role.
68 kAnnotationRole, // No mapping to ARIA role. 71 kAnnotationRole, // No mapping to ARIA role.
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after
606 } 609 }
607 610
608 AXID AxObjectID() const { return id_; } 611 AXID AxObjectID() const { return id_; }
609 612
610 // Wrappers that retrieve either an Accessibility Object Model property, 613 // Wrappers that retrieve either an Accessibility Object Model property,
611 // or the equivalent ARIA attribute, in that order. 614 // or the equivalent ARIA attribute, in that order.
612 const AtomicString& GetAOMPropertyOrARIAAttribute(AOMStringProperty) const; 615 const AtomicString& GetAOMPropertyOrARIAAttribute(AOMStringProperty) const;
613 bool HasAOMPropertyOrARIAAttribute(AOMBooleanProperty, bool& result) const; 616 bool HasAOMPropertyOrARIAAttribute(AOMBooleanProperty, bool& result) const;
614 bool AOMPropertyOrARIAAttributeIsTrue(AOMBooleanProperty) const; 617 bool AOMPropertyOrARIAAttributeIsTrue(AOMBooleanProperty) const;
615 bool AOMPropertyOrARIAAttributeIsFalse(AOMBooleanProperty) const; 618 bool AOMPropertyOrARIAAttributeIsFalse(AOMBooleanProperty) const;
619 bool HasAOMPropertyOrARIAAttribute(AOMUIntProperty, uint32_t& result) const;
620 bool HasAOMPropertyOrARIAAttribute(AOMIntProperty, int32_t& result) const;
621 bool HasAOMPropertyOrARIAAttribute(AOMFloatProperty, float& result) const;
616 622
617 virtual void GetSparseAXAttributes(AXSparseAttributeClient&) const {} 623 virtual void GetSparseAXAttributes(AXSparseAttributeClient&) const {}
618 624
619 // Determine subclass type. 625 // Determine subclass type.
620 virtual bool IsAXNodeObject() const { return false; } 626 virtual bool IsAXNodeObject() const { return false; }
621 virtual bool IsAXLayoutObject() const { return false; } 627 virtual bool IsAXLayoutObject() const { return false; }
622 virtual bool IsAXInlineTextBox() const { return false; } 628 virtual bool IsAXInlineTextBox() const { return false; }
623 virtual bool IsAXListBox() const { return false; } 629 virtual bool IsAXListBox() const { return false; }
624 virtual bool IsAXListBoxOption() const { return false; } 630 virtual bool IsAXListBoxOption() const { return false; }
625 virtual bool IsAXRadioInput() const { return false; } 631 virtual bool IsAXRadioInput() const { return false; }
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after
1141 1147
1142 DEFINE_TYPE_CASTS(AXObjectImpl, AXObject, obj, true, true); 1148 DEFINE_TYPE_CASTS(AXObjectImpl, AXObject, obj, true, true);
1143 1149
1144 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ 1150 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \
1145 DEFINE_TYPE_CASTS(thisType, AXObjectImpl, object, object->predicate, \ 1151 DEFINE_TYPE_CASTS(thisType, AXObjectImpl, object, object->predicate, \
1146 object.predicate) 1152 object.predicate)
1147 1153
1148 } // namespace blink 1154 } // namespace blink
1149 1155
1150 #endif // AXObjectImpl_h 1156 #endif // AXObjectImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698