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

Side by Side Diff: Source/WebCore/accessibility/AccessibilityObject.h

Issue 7944004: Merge 94716 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/874/
Patch Set: Created 9 years, 3 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 | « no previous file | Source/WebCore/accessibility/AccessibilityRenderObject.cpp » ('j') | 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 532 matching lines...) Expand 10 before | Expand all | Expand 10 after
543 virtual void increment() { } 543 virtual void increment() { }
544 virtual void decrement() { } 544 virtual void decrement() { }
545 545
546 virtual void childrenChanged() { } 546 virtual void childrenChanged() { }
547 virtual void contentChanged() { } 547 virtual void contentChanged() { }
548 virtual const AccessibilityChildrenVector& children() { return m_children; } 548 virtual const AccessibilityChildrenVector& children() { return m_children; }
549 virtual void addChildren() { } 549 virtual void addChildren() { }
550 virtual bool canHaveChildren() const { return true; } 550 virtual bool canHaveChildren() const { return true; }
551 virtual bool hasChildren() const { return m_haveChildren; } 551 virtual bool hasChildren() const { return m_haveChildren; }
552 virtual void updateChildrenIfNecessary(); 552 virtual void updateChildrenIfNecessary();
553 virtual void clearChildren();
554
553 virtual void selectedChildren(AccessibilityChildrenVector&) { } 555 virtual void selectedChildren(AccessibilityChildrenVector&) { }
554 virtual void visibleChildren(AccessibilityChildrenVector&) { } 556 virtual void visibleChildren(AccessibilityChildrenVector&) { }
555 virtual void tabChildren(AccessibilityChildrenVector&) { } 557 virtual void tabChildren(AccessibilityChildrenVector&) { }
556 virtual bool shouldFocusActiveDescendant() const { return false; } 558 virtual bool shouldFocusActiveDescendant() const { return false; }
557 virtual AccessibilityObject* activeDescendant() const { return 0; } 559 virtual AccessibilityObject* activeDescendant() const { return 0; }
558 virtual void handleActiveDescendantChanged() { } 560 virtual void handleActiveDescendantChanged() { }
559 virtual void handleAriaExpandedChanged() { } 561 virtual void handleAriaExpandedChanged() { }
560 562
561 static AccessibilityRole ariaRoleToWebCoreRole(const String&); 563 static AccessibilityRole ariaRoleToWebCoreRole(const String&);
562 const AtomicString& getAttribute(const QualifiedName&) const; 564 const AtomicString& getAttribute(const QualifiedName&) const;
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
663 // allows for an AccessibilityObject to update its render tree or perform 665 // allows for an AccessibilityObject to update its render tree or perform
664 // other operations update type operations 666 // other operations update type operations
665 void updateBackingStore(); 667 void updateBackingStore();
666 668
667 protected: 669 protected:
668 AXID m_id; 670 AXID m_id;
669 AccessibilityChildrenVector m_children; 671 AccessibilityChildrenVector m_children;
670 mutable bool m_haveChildren; 672 mutable bool m_haveChildren;
671 AccessibilityRole m_role; 673 AccessibilityRole m_role;
672 674
673 virtual void clearChildren();
674 virtual bool isDetached() const { return true; } 675 virtual bool isDetached() const { return true; }
675 676
676 #if PLATFORM(GTK) 677 #if PLATFORM(GTK)
677 bool allowsTextRanges() const; 678 bool allowsTextRanges() const;
678 unsigned getLengthForTextRange() const; 679 unsigned getLengthForTextRange() const;
679 #else 680 #else
680 bool allowsTextRanges() const { return isTextControl(); } 681 bool allowsTextRanges() const { return isTextControl(); }
681 unsigned getLengthForTextRange() const { return text().length(); } 682 unsigned getLengthForTextRange() const { return text().length(); }
682 #endif 683 #endif
683 684
684 #if PLATFORM(MAC) 685 #if PLATFORM(MAC)
685 RetainPtr<AccessibilityObjectWrapper> m_wrapper; 686 RetainPtr<AccessibilityObjectWrapper> m_wrapper;
686 #elif PLATFORM(WIN) && !OS(WINCE) 687 #elif PLATFORM(WIN) && !OS(WINCE)
687 COMPtr<AccessibilityObjectWrapper> m_wrapper; 688 COMPtr<AccessibilityObjectWrapper> m_wrapper;
688 #elif PLATFORM(GTK) 689 #elif PLATFORM(GTK)
689 AtkObject* m_wrapper; 690 AtkObject* m_wrapper;
690 #elif PLATFORM(CHROMIUM) 691 #elif PLATFORM(CHROMIUM)
691 RefPtr<AccessibilityObjectWrapper> m_wrapper; 692 RefPtr<AccessibilityObjectWrapper> m_wrapper;
692 #endif 693 #endif
693 }; 694 };
694 695
695 } // namespace WebCore 696 } // namespace WebCore
696 697
697 #endif // AccessibilityObject_h 698 #endif // AccessibilityObject_h
OLDNEW
« no previous file with comments | « no previous file | Source/WebCore/accessibility/AccessibilityRenderObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698