OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 16 matching lines...) Expand all Loading... |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef WebAccessibilityObject_h | 31 #ifndef WebAccessibilityObject_h |
32 #define WebAccessibilityObject_h | 32 #define WebAccessibilityObject_h |
33 | 33 |
34 #include "../platform/WebCommon.h" | 34 #include "../platform/WebCommon.h" |
35 #include "../platform/WebPrivatePtr.h" | 35 #include "../platform/WebPrivatePtr.h" |
36 #include "../platform/WebVector.h" | 36 #include "../platform/WebVector.h" |
| 37 #include "WebAXEnums.h" |
37 #include "WebAccessibilityRole.h" | 38 #include "WebAccessibilityRole.h" |
38 | 39 |
39 #if WEBKIT_IMPLEMENTATION | 40 #if WEBKIT_IMPLEMENTATION |
40 namespace WTF { template <typename T> class PassRefPtr; } | 41 namespace WTF { template <typename T> class PassRefPtr; } |
41 #endif | 42 #endif |
42 | 43 |
43 namespace WebCore { class AccessibilityObject; } | 44 namespace WebCore { class AccessibilityObject; } |
44 | 45 |
45 namespace WebKit { | 46 namespace WebKit { |
46 | 47 |
47 class WebNode; | 48 class WebNode; |
48 class WebDocument; | 49 class WebDocument; |
49 class WebString; | 50 class WebString; |
50 class WebURL; | 51 class WebURL; |
51 struct WebPoint; | 52 struct WebPoint; |
52 struct WebRect; | 53 struct WebRect; |
53 | 54 |
54 // A container for passing around a reference to AccessibilityObject. | 55 // A container for passing around a reference to AccessibilityObject. |
| 56 // FIXME: rename this to WebAXObject (http://crbug.com/269034). |
55 class WebAccessibilityObject { | 57 class WebAccessibilityObject { |
56 public: | 58 public: |
57 ~WebAccessibilityObject() { reset(); } | 59 ~WebAccessibilityObject() { reset(); } |
58 | 60 |
59 WebAccessibilityObject() { } | 61 WebAccessibilityObject() { } |
60 WebAccessibilityObject(const WebAccessibilityObject& o) { assign(o); } | 62 WebAccessibilityObject(const WebAccessibilityObject& o) { assign(o); } |
61 WebAccessibilityObject& operator=(const WebAccessibilityObject& o) | 63 WebAccessibilityObject& operator=(const WebAccessibilityObject& o) |
62 { | 64 { |
63 assign(o); | 65 assign(o); |
64 return *this; | 66 return *this; |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 WEBKIT_EXPORT WebRect boundingBoxRect() const; | 130 WEBKIT_EXPORT WebRect boundingBoxRect() const; |
129 WEBKIT_EXPORT bool canvasHasFallbackContent() const; | 131 WEBKIT_EXPORT bool canvasHasFallbackContent() const; |
130 WEBKIT_EXPORT WebPoint clickPoint() const; | 132 WEBKIT_EXPORT WebPoint clickPoint() const; |
131 WEBKIT_EXPORT void colorValue(int& r, int& g, int& b) const; | 133 WEBKIT_EXPORT void colorValue(int& r, int& g, int& b) const; |
132 WEBKIT_EXPORT double estimatedLoadingProgress() const; | 134 WEBKIT_EXPORT double estimatedLoadingProgress() const; |
133 WEBKIT_EXPORT WebString helpText() const; | 135 WEBKIT_EXPORT WebString helpText() const; |
134 WEBKIT_EXPORT int headingLevel() const; | 136 WEBKIT_EXPORT int headingLevel() const; |
135 WEBKIT_EXPORT int hierarchicalLevel() const; | 137 WEBKIT_EXPORT int hierarchicalLevel() const; |
136 WEBKIT_EXPORT WebAccessibilityObject hitTest(const WebPoint&) const; | 138 WEBKIT_EXPORT WebAccessibilityObject hitTest(const WebPoint&) const; |
137 WEBKIT_EXPORT WebString keyboardShortcut() const; | 139 WEBKIT_EXPORT WebString keyboardShortcut() const; |
138 WEBKIT_EXPORT WebAccessibilityRole roleValue() const; | 140 WEBKIT_EXPORT WebAccessibilityRole roleValue() const; // Deprecated, use rol
e(). |
| 141 WEBKIT_EXPORT WebAXRole role() const; |
139 WEBKIT_EXPORT unsigned selectionEnd() const; | 142 WEBKIT_EXPORT unsigned selectionEnd() const; |
140 WEBKIT_EXPORT unsigned selectionEndLineNumber() const; | 143 WEBKIT_EXPORT unsigned selectionEndLineNumber() const; |
141 WEBKIT_EXPORT unsigned selectionStart() const; | 144 WEBKIT_EXPORT unsigned selectionStart() const; |
142 WEBKIT_EXPORT unsigned selectionStartLineNumber() const; | 145 WEBKIT_EXPORT unsigned selectionStartLineNumber() const; |
143 WEBKIT_EXPORT WebString stringValue() const; | 146 WEBKIT_EXPORT WebString stringValue() const; |
144 WEBKIT_EXPORT WebString title() const; | 147 WEBKIT_EXPORT WebString title() const; |
145 WEBKIT_EXPORT WebAccessibilityObject titleUIElement() const; | 148 WEBKIT_EXPORT WebAccessibilityObject titleUIElement() const; |
146 WEBKIT_EXPORT WebURL url() const; | 149 WEBKIT_EXPORT WebURL url() const; |
147 | 150 |
148 WEBKIT_EXPORT bool supportsRangeValue() const; | 151 WEBKIT_EXPORT bool supportsRangeValue() const; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 operator WTF::PassRefPtr<WebCore::AccessibilityObject>() const; | 211 operator WTF::PassRefPtr<WebCore::AccessibilityObject>() const; |
209 #endif | 212 #endif |
210 | 213 |
211 private: | 214 private: |
212 WebPrivatePtr<WebCore::AccessibilityObject> m_private; | 215 WebPrivatePtr<WebCore::AccessibilityObject> m_private; |
213 }; | 216 }; |
214 | 217 |
215 } // namespace WebKit | 218 } // namespace WebKit |
216 | 219 |
217 #endif | 220 #endif |
OLD | NEW |