| OLD | NEW |
| 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 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 464 virtual void increment() { } | 464 virtual void increment() { } |
| 465 virtual void decrement() { } | 465 virtual void decrement() { } |
| 466 | 466 |
| 467 virtual void childrenChanged() { } | 467 virtual void childrenChanged() { } |
| 468 virtual void contentChanged() { } | 468 virtual void contentChanged() { } |
| 469 virtual const AccessibilityChildrenVector& children() { return m_children; } | 469 virtual const AccessibilityChildrenVector& children() { return m_children; } |
| 470 virtual void addChildren() { } | 470 virtual void addChildren() { } |
| 471 virtual bool canHaveChildren() const { return true; } | 471 virtual bool canHaveChildren() const { return true; } |
| 472 virtual bool hasChildren() const { return m_haveChildren; } | 472 virtual bool hasChildren() const { return m_haveChildren; } |
| 473 virtual void updateChildrenIfNecessary(); | 473 virtual void updateChildrenIfNecessary(); |
| 474 virtual void clearChildren(); |
| 475 |
| 474 virtual void selectedChildren(AccessibilityChildrenVector&) { } | 476 virtual void selectedChildren(AccessibilityChildrenVector&) { } |
| 475 virtual void visibleChildren(AccessibilityChildrenVector&) { } | 477 virtual void visibleChildren(AccessibilityChildrenVector&) { } |
| 476 virtual void tabChildren(AccessibilityChildrenVector&) { } | 478 virtual void tabChildren(AccessibilityChildrenVector&) { } |
| 477 virtual bool shouldFocusActiveDescendant() const { return false; } | 479 virtual bool shouldFocusActiveDescendant() const { return false; } |
| 478 virtual AccessibilityObject* activeDescendant() const { return 0; } | 480 virtual AccessibilityObject* activeDescendant() const { return 0; } |
| 479 virtual void handleActiveDescendantChanged() { } | 481 virtual void handleActiveDescendantChanged() { } |
| 480 virtual void handleAriaExpandedChanged() { } | 482 virtual void handleAriaExpandedChanged() { } |
| 481 | 483 |
| 482 static AccessibilityRole ariaRoleToWebCoreRole(const String&); | 484 static AccessibilityRole ariaRoleToWebCoreRole(const String&); |
| 483 const AtomicString& getAttribute(const QualifiedName&) const; | 485 const AtomicString& getAttribute(const QualifiedName&) const; |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 584 // allows for an AccessibilityObject to update its render tree or perform | 586 // allows for an AccessibilityObject to update its render tree or perform |
| 585 // other operations update type operations | 587 // other operations update type operations |
| 586 void updateBackingStore(); | 588 void updateBackingStore(); |
| 587 | 589 |
| 588 protected: | 590 protected: |
| 589 AXID m_id; | 591 AXID m_id; |
| 590 AccessibilityChildrenVector m_children; | 592 AccessibilityChildrenVector m_children; |
| 591 mutable bool m_haveChildren; | 593 mutable bool m_haveChildren; |
| 592 AccessibilityRole m_role; | 594 AccessibilityRole m_role; |
| 593 | 595 |
| 594 virtual void clearChildren(); | |
| 595 virtual bool isDetached() const { return true; } | 596 virtual bool isDetached() const { return true; } |
| 596 | 597 |
| 597 #if PLATFORM(GTK) | 598 #if PLATFORM(GTK) |
| 598 bool allowsTextRanges() const; | 599 bool allowsTextRanges() const; |
| 599 unsigned getLengthForTextRange() const; | 600 unsigned getLengthForTextRange() const; |
| 600 #else | 601 #else |
| 601 bool allowsTextRanges() const { return isTextControl(); } | 602 bool allowsTextRanges() const { return isTextControl(); } |
| 602 unsigned getLengthForTextRange() const { return text().length(); } | 603 unsigned getLengthForTextRange() const { return text().length(); } |
| 603 #endif | 604 #endif |
| 604 | 605 |
| 605 #if PLATFORM(MAC) | 606 #if PLATFORM(MAC) |
| 606 RetainPtr<AccessibilityObjectWrapper> m_wrapper; | 607 RetainPtr<AccessibilityObjectWrapper> m_wrapper; |
| 607 #elif PLATFORM(WIN) && !OS(WINCE) | 608 #elif PLATFORM(WIN) && !OS(WINCE) |
| 608 COMPtr<AccessibilityObjectWrapper> m_wrapper; | 609 COMPtr<AccessibilityObjectWrapper> m_wrapper; |
| 609 #elif PLATFORM(GTK) | 610 #elif PLATFORM(GTK) |
| 610 AtkObject* m_wrapper; | 611 AtkObject* m_wrapper; |
| 611 #elif PLATFORM(CHROMIUM) | 612 #elif PLATFORM(CHROMIUM) |
| 612 RefPtr<AccessibilityObjectWrapper> m_wrapper; | 613 RefPtr<AccessibilityObjectWrapper> m_wrapper; |
| 613 #endif | 614 #endif |
| 614 }; | 615 }; |
| 615 | 616 |
| 616 } // namespace WebCore | 617 } // namespace WebCore |
| 617 | 618 |
| 618 #endif // AccessibilityObject_h | 619 #endif // AccessibilityObject_h |
| OLD | NEW |