| 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 // The following selection functions get or set the global document |
| 160 // selection and can be called on any object in the tree. |
| 161 BLINK_EXPORT void selection(WebAXObject& anchorObject, int& anchorOffset, |
| 162 WebAXObject& focusObject, int& focusOffset) const; |
| 163 BLINK_EXPORT void setSelection(const WebAXObject& anchorObject, int anchorOf
fset, |
| 164 const WebAXObject& focusObject, int focusOffset) const; |
| 165 // The following selection functions return text offsets calculated starting |
| 166 // the current object. They only report on a selection that is placed on |
| 167 // the current object or on any of its descendants. |
| 159 BLINK_EXPORT unsigned selectionEnd() const; | 168 BLINK_EXPORT unsigned selectionEnd() const; |
| 160 BLINK_EXPORT unsigned selectionEndLineNumber() const; | 169 BLINK_EXPORT unsigned selectionEndLineNumber() const; |
| 161 BLINK_EXPORT unsigned selectionStart() const; | 170 BLINK_EXPORT unsigned selectionStart() const; |
| 162 BLINK_EXPORT unsigned selectionStartLineNumber() const; | 171 BLINK_EXPORT unsigned selectionStartLineNumber() const; |
| 163 BLINK_EXPORT WebString stringValue() const; | 172 BLINK_EXPORT WebString stringValue() const; |
| 164 BLINK_EXPORT WebAXTextDirection textDirection() const; | 173 BLINK_EXPORT WebAXTextDirection textDirection() const; |
| 165 BLINK_EXPORT WebAXTextStyle textStyle() const; | 174 BLINK_EXPORT WebAXTextStyle textStyle() const; |
| 166 BLINK_EXPORT WebURL url() const; | 175 BLINK_EXPORT WebURL url() const; |
| 167 | 176 |
| 168 // Deprecated text alternative calculation API. All of these will be replace
d | 177 // Deprecated text alternative calculation API. All of these will be replace
d |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 operator WTF::PassRefPtr<AXObject>() const; | 312 operator WTF::PassRefPtr<AXObject>() const; |
| 304 #endif | 313 #endif |
| 305 | 314 |
| 306 private: | 315 private: |
| 307 WebPrivatePtr<AXObject> m_private; | 316 WebPrivatePtr<AXObject> m_private; |
| 308 }; | 317 }; |
| 309 | 318 |
| 310 } // namespace blink | 319 } // namespace blink |
| 311 | 320 |
| 312 #endif | 321 #endif |
| OLD | NEW |