| 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 // Only used when invalidState() returns WebAXInvalidStateOther. | 149 // Only used when invalidState() returns WebAXInvalidStateOther. |
| 150 BLINK_EXPORT WebString ariaInvalidValue() const; | 150 BLINK_EXPORT WebString ariaInvalidValue() const; |
| 151 BLINK_EXPORT double estimatedLoadingProgress() const; | 151 BLINK_EXPORT double estimatedLoadingProgress() const; |
| 152 BLINK_EXPORT int headingLevel() const; | 152 BLINK_EXPORT int headingLevel() const; |
| 153 BLINK_EXPORT int hierarchicalLevel() const; | 153 BLINK_EXPORT int hierarchicalLevel() const; |
| 154 BLINK_EXPORT WebAXObject hitTest(const WebPoint&) const; | 154 BLINK_EXPORT WebAXObject hitTest(const WebPoint&) const; |
| 155 BLINK_EXPORT WebString keyboardShortcut() const; | 155 BLINK_EXPORT WebString keyboardShortcut() const; |
| 156 BLINK_EXPORT WebString language() const; | 156 BLINK_EXPORT WebString language() const; |
| 157 BLINK_EXPORT WebAXOrientation orientation() const; | 157 BLINK_EXPORT WebAXOrientation orientation() const; |
| 158 BLINK_EXPORT WebAXRole role() const; | 158 BLINK_EXPORT WebAXRole role() const; |
| 159 BLINK_EXPORT unsigned selectionEnd() const; | |
| 160 BLINK_EXPORT unsigned selectionEndLineNumber() const; | |
| 161 BLINK_EXPORT unsigned selectionStart() const; | |
| 162 BLINK_EXPORT unsigned selectionStartLineNumber() const; | |
| 163 BLINK_EXPORT WebString stringValue() const; | 159 BLINK_EXPORT WebString stringValue() const; |
| 164 BLINK_EXPORT WebAXTextDirection textDirection() const; | 160 BLINK_EXPORT WebAXTextDirection textDirection() const; |
| 165 BLINK_EXPORT WebAXTextStyle textStyle() const; | 161 BLINK_EXPORT WebAXTextStyle textStyle() const; |
| 166 BLINK_EXPORT WebURL url() const; | 162 BLINK_EXPORT WebURL url() const; |
| 167 | 163 |
| 168 // Deprecated text alternative calculation API. All of these will be replace
d | 164 // Deprecated text alternative calculation API. All of these will be replace
d |
| 169 // with the new API, below (under "New text alternative calculation API". | 165 // with the new API, below (under "New text alternative calculation API". |
| 170 BLINK_EXPORT WebString deprecatedAccessibilityDescription() const; | 166 BLINK_EXPORT WebString deprecatedAccessibilityDescription() const; |
| 171 BLINK_EXPORT bool deprecatedAriaDescribedby(WebVector<WebAXObject>& describe
dbyElements) const; | 167 BLINK_EXPORT bool deprecatedAriaDescribedby(WebVector<WebAXObject>& describe
dbyElements) const; |
| 172 BLINK_EXPORT bool deprecatedAriaLabelledby(WebVector<WebAXObject>& labelledb
yElements) const; | 168 BLINK_EXPORT bool deprecatedAriaLabelledby(WebVector<WebAXObject>& labelledb
yElements) const; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 193 // Takes the result of nameFrom from calling |name|, above, and retrieves th
e | 189 // Takes the result of nameFrom from calling |name|, above, and retrieves th
e |
| 194 // accessible description of the object, which is secondary to |name|, an en
um indicating | 190 // accessible description of the object, which is secondary to |name|, an en
um indicating |
| 195 // where the description was derived from, and a list of objects that were u
sed to | 191 // where the description was derived from, and a list of objects that were u
sed to |
| 196 // derive the description, if any. | 192 // derive the description, if any. |
| 197 BLINK_EXPORT WebString description(WebAXNameFrom, WebAXDescriptionFrom&, Web
Vector<WebAXObject>& descriptionObjects); | 193 BLINK_EXPORT WebString description(WebAXNameFrom, WebAXDescriptionFrom&, Web
Vector<WebAXObject>& descriptionObjects); |
| 198 // Takes the result of nameFrom and descriptionFrom from calling |name| and
|description|, | 194 // Takes the result of nameFrom and descriptionFrom from calling |name| and
|description|, |
| 199 // above, and retrieves the placeholder of the object, if present and if it
wasn't already | 195 // above, and retrieves the placeholder of the object, if present and if it
wasn't already |
| 200 // exposed by one of the two functions above. | 196 // exposed by one of the two functions above. |
| 201 BLINK_EXPORT WebString placeholder(WebAXNameFrom, WebAXDescriptionFrom); | 197 BLINK_EXPORT WebString placeholder(WebAXNameFrom, WebAXDescriptionFrom); |
| 202 | 198 |
| 199 // The following selection functions get or set the global document |
| 200 // selection and can be called on any object in the tree. |
| 201 BLINK_EXPORT void selection(WebAXObject& anchorObject, int& anchorOffset, |
| 202 WebAXObject& focusObject, int& focusOffset) const; |
| 203 BLINK_EXPORT void setSelection(const WebAXObject& anchorObject, int anchorOf
fset, |
| 204 const WebAXObject& focusObject, int focusOffset) const; |
| 205 |
| 206 // The following selection functions return text offsets calculated starting |
| 207 // the current object. They only report on a selection that is placed on |
| 208 // the current object or on any of its descendants. |
| 209 BLINK_EXPORT unsigned selectionEnd() const; |
| 210 BLINK_EXPORT unsigned selectionEndLineNumber() const; |
| 211 BLINK_EXPORT unsigned selectionStart() const; |
| 212 BLINK_EXPORT unsigned selectionStartLineNumber() const; |
| 213 |
| 203 // 1-based position in set & Size of set. | 214 // 1-based position in set & Size of set. |
| 204 BLINK_EXPORT int posInSet() const; | 215 BLINK_EXPORT int posInSet() const; |
| 205 BLINK_EXPORT int setSize() const; | 216 BLINK_EXPORT int setSize() const; |
| 206 | 217 |
| 207 // Live regions. | 218 // Live regions. |
| 208 BLINK_EXPORT bool isInLiveRegion() const; | 219 BLINK_EXPORT bool isInLiveRegion() const; |
| 209 BLINK_EXPORT bool liveRegionAtomic() const; | 220 BLINK_EXPORT bool liveRegionAtomic() const; |
| 210 BLINK_EXPORT bool liveRegionBusy() const; | 221 BLINK_EXPORT bool liveRegionBusy() const; |
| 211 BLINK_EXPORT WebString liveRegionRelevant() const; | 222 BLINK_EXPORT WebString liveRegionRelevant() const; |
| 212 BLINK_EXPORT WebString liveRegionStatus() const; | 223 BLINK_EXPORT WebString liveRegionStatus() const; |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 operator WTF::PassRefPtr<AXObject>() const; | 314 operator WTF::PassRefPtr<AXObject>() const; |
| 304 #endif | 315 #endif |
| 305 | 316 |
| 306 private: | 317 private: |
| 307 WebPrivatePtr<AXObject> m_private; | 318 WebPrivatePtr<AXObject> m_private; |
| 308 }; | 319 }; |
| 309 | 320 |
| 310 } // namespace blink | 321 } // namespace blink |
| 311 | 322 |
| 312 #endif | 323 #endif |
| OLD | NEW |