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

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

Issue 829473004: When ARIA button contains a link, label text is ignored (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « Source/modules/accessibility/AXNodeObject.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 508 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 AXObject* parentObjectIfExists() const; 519 AXObject* parentObjectIfExists() const;
520 virtual AXObject* computeParent() const = 0; 520 virtual AXObject* computeParent() const = 0;
521 virtual AXObject* computeParentIfExists() const { return 0; } 521 virtual AXObject* computeParentIfExists() const { return 0; }
522 AXObject* cachedParentObject() const { return m_parent; } 522 AXObject* cachedParentObject() const { return m_parent; }
523 AXObject* parentObjectUnignored() const; 523 AXObject* parentObjectUnignored() const;
524 524
525 // Low-level accessibility tree exploration, only for use within the accessi bility module. 525 // Low-level accessibility tree exploration, only for use within the accessi bility module.
526 virtual AXObject* firstChild() const { return 0; } 526 virtual AXObject* firstChild() const { return 0; }
527 virtual AXObject* nextSibling() const { return 0; } 527 virtual AXObject* nextSibling() const { return 0; }
528 AXObject* firstAccessibleObjectFromNode(const Node*); 528 AXObject* firstAccessibleObjectFromNode(const Node*);
529 virtual bool isDescendantOfBarrenParent() const { return false; }
529 virtual void addChildren() { } 530 virtual void addChildren() { }
530 virtual bool canHaveChildren() const { return true; } 531 virtual bool canHaveChildren() const { return true; }
531 bool hasChildren() const { return m_haveChildren; } 532 bool hasChildren() const { return m_haveChildren; }
532 virtual void updateChildrenIfNecessary(); 533 virtual void updateChildrenIfNecessary();
533 virtual bool needsToUpdateChildren() const { return false; } 534 virtual bool needsToUpdateChildren() const { return false; }
534 virtual void setNeedsToUpdateChildren() { } 535 virtual void setNeedsToUpdateChildren() { }
535 virtual void clearChildren(); 536 virtual void clearChildren();
536 virtual void detachFromParent() { m_parent = 0; } 537 virtual void detachFromParent() { m_parent = 0; }
537 virtual AXObject* observableObject() const { return 0; } 538 virtual AXObject* observableObject() const { return 0; }
538 virtual AXObject* scrollBar(AccessibilityOrientation) { return 0; } 539 virtual AXObject* scrollBar(AccessibilityOrientation) { return 0; }
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 // functions called here may only search up the tree (ancestors), not down. 632 // functions called here may only search up the tree (ancestors), not down.
632 void updateCachedAttributeValuesIfNeeded() const; 633 void updateCachedAttributeValuesIfNeeded() const;
633 }; 634 };
634 635
635 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ 636 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \
636 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred icate) 637 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred icate)
637 638
638 } // namespace blink 639 } // namespace blink
639 640
640 #endif // AXObject_h 641 #endif // AXObject_h
OLDNEW
« no previous file with comments | « Source/modules/accessibility/AXNodeObject.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698