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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 class AXObject; | 44 class AXObject; |
45 class AXObjectCache; | 45 class AXObjectCache; |
46 class AXObjectCacheImpl; | 46 class AXObjectCacheImpl; |
47 class Element; | 47 class Element; |
48 class FrameView; | 48 class FrameView; |
49 class IntPoint; | 49 class IntPoint; |
50 class NameSource; | 50 class NameSource; |
51 class Node; | 51 class Node; |
52 class LayoutObject; | 52 class LayoutObject; |
53 class ScrollableArea; | 53 class ScrollableArea; |
54 class Widget; | |
55 | 54 |
56 typedef unsigned AXID; | 55 typedef unsigned AXID; |
57 | 56 |
58 enum AccessibilityRole { | 57 enum AccessibilityRole { |
59 UnknownRole = 0, | 58 UnknownRole = 0, |
60 AlertDialogRole, | 59 AlertDialogRole, |
61 AlertRole, | 60 AlertRole, |
62 AnnotationRole, // No mapping to ARIA role | 61 AnnotationRole, // No mapping to ARIA role |
63 ApplicationRole, | 62 ApplicationRole, |
64 ArticleRole, | 63 ArticleRole, |
(...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
797 virtual double estimatedLoadingProgress() const { return 0; } | 796 virtual double estimatedLoadingProgress() const { return 0; } |
798 AXObject* focusedUIElement() const; | 797 AXObject* focusedUIElement() const; |
799 | 798 |
800 // DOM and layout tree access. | 799 // DOM and layout tree access. |
801 virtual Node* node() const { return 0; } | 800 virtual Node* node() const { return 0; } |
802 virtual LayoutObject* layoutObject() const { return 0; } | 801 virtual LayoutObject* layoutObject() const { return 0; } |
803 virtual Document* document() const; | 802 virtual Document* document() const; |
804 virtual FrameView* documentFrameView() const; | 803 virtual FrameView* documentFrameView() const; |
805 virtual Element* anchorElement() const { return 0; } | 804 virtual Element* anchorElement() const { return 0; } |
806 virtual Element* actionElement() const { return 0; } | 805 virtual Element* actionElement() const { return 0; } |
807 virtual Widget* widgetForAttachmentView() const { return 0; } | |
808 String language() const; | 806 String language() const; |
809 bool hasAttribute(const QualifiedName&) const; | 807 bool hasAttribute(const QualifiedName&) const; |
810 const AtomicString& getAttribute(const QualifiedName&) const; | 808 const AtomicString& getAttribute(const QualifiedName&) const; |
811 | 809 |
812 // Methods that retrieve or manipulate the current selection. | 810 // Methods that retrieve or manipulate the current selection. |
813 | 811 |
814 // Get the current selection from anywhere in the accessibility tree. | 812 // Get the current selection from anywhere in the accessibility tree. |
815 virtual AXRange selection() const { return AXRange(); } | 813 virtual AXRange selection() const { return AXRange(); } |
816 // Gets only the start and end offsets of the selection computed using the | 814 // Gets only the start and end offsets of the selection computed using the |
817 // current object as the starting point. Returns a null selection if there i
s | 815 // current object as the starting point. Returns a null selection if there i
s |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
919 | 917 |
920 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ | 918 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ |
921 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred
icate) | 919 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred
icate) |
922 | 920 |
923 } // namespace blink | 921 } // namespace blink |
924 | 922 |
925 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::IgnoredReason); | 923 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::IgnoredReason); |
926 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::NameSource); | 924 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::NameSource); |
927 | 925 |
928 #endif // AXObject_h | 926 #endif // AXObject_h |
OLD | NEW |