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 "WebAXTypes.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 // TODO(dmazzoni): rename WebAXObject (http://crbug.com/269034). | |
jamesr
2013/08/21 02:22:52
TODO() -> FIXME
| |
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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
127 WEBKIT_EXPORT WebRect boundingBoxRect() const; | 129 WEBKIT_EXPORT WebRect boundingBoxRect() const; |
128 WEBKIT_EXPORT bool canvasHasFallbackContent() const; | 130 WEBKIT_EXPORT bool canvasHasFallbackContent() const; |
129 WEBKIT_EXPORT WebPoint clickPoint() const; | 131 WEBKIT_EXPORT WebPoint clickPoint() const; |
130 WEBKIT_EXPORT void colorValue(int& r, int& g, int& b) const; | 132 WEBKIT_EXPORT void colorValue(int& r, int& g, int& b) const; |
131 WEBKIT_EXPORT double estimatedLoadingProgress() const; | 133 WEBKIT_EXPORT double estimatedLoadingProgress() const; |
132 WEBKIT_EXPORT WebString helpText() const; | 134 WEBKIT_EXPORT WebString helpText() const; |
133 WEBKIT_EXPORT int headingLevel() const; | 135 WEBKIT_EXPORT int headingLevel() const; |
134 WEBKIT_EXPORT int hierarchicalLevel() const; | 136 WEBKIT_EXPORT int hierarchicalLevel() const; |
135 WEBKIT_EXPORT WebAccessibilityObject hitTest(const WebPoint&) const; | 137 WEBKIT_EXPORT WebAccessibilityObject hitTest(const WebPoint&) const; |
136 WEBKIT_EXPORT WebString keyboardShortcut() const; | 138 WEBKIT_EXPORT WebString keyboardShortcut() const; |
137 WEBKIT_EXPORT WebAccessibilityRole roleValue() const; | 139 WEBKIT_EXPORT WebAccessibilityRole roleValue() const; // Deprecated, use rol e(). |
140 WEBKIT_EXPORT WebAXTypes::Role role() const; | |
138 WEBKIT_EXPORT unsigned selectionEnd() const; | 141 WEBKIT_EXPORT unsigned selectionEnd() const; |
139 WEBKIT_EXPORT unsigned selectionEndLineNumber() const; | 142 WEBKIT_EXPORT unsigned selectionEndLineNumber() const; |
140 WEBKIT_EXPORT unsigned selectionStart() const; | 143 WEBKIT_EXPORT unsigned selectionStart() const; |
141 WEBKIT_EXPORT unsigned selectionStartLineNumber() const; | 144 WEBKIT_EXPORT unsigned selectionStartLineNumber() const; |
142 WEBKIT_EXPORT WebString stringValue() const; | 145 WEBKIT_EXPORT WebString stringValue() const; |
143 WEBKIT_EXPORT WebString title() const; | 146 WEBKIT_EXPORT WebString title() const; |
144 WEBKIT_EXPORT WebAccessibilityObject titleUIElement() const; | 147 WEBKIT_EXPORT WebAccessibilityObject titleUIElement() const; |
145 WEBKIT_EXPORT WebURL url() const; | 148 WEBKIT_EXPORT WebURL url() const; |
146 | 149 |
147 WEBKIT_EXPORT bool supportsRangeValue() const; | 150 WEBKIT_EXPORT bool supportsRangeValue() const; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
207 operator WTF::PassRefPtr<WebCore::AccessibilityObject>() const; | 210 operator WTF::PassRefPtr<WebCore::AccessibilityObject>() const; |
208 #endif | 211 #endif |
209 | 212 |
210 private: | 213 private: |
211 WebPrivatePtr<WebCore::AccessibilityObject> m_private; | 214 WebPrivatePtr<WebCore::AccessibilityObject> m_private; |
212 }; | 215 }; |
213 | 216 |
214 } // namespace WebKit | 217 } // namespace WebKit |
215 | 218 |
216 #endif | 219 #endif |
OLD | NEW |