| 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 14 matching lines...) Expand all Loading... |
| 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 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 WebAXObject_h | 31 #ifndef WebAXObject_h |
| 32 #define WebAXObject_h | 32 #define WebAXObject_h |
| 33 | 33 |
| 34 #include "../platform/WebCommon.h" | 34 #include "../platform/WebCommon.h" |
| 35 #include "../platform/WebPoint.h" |
| 35 #include "../platform/WebPrivatePtr.h" | 36 #include "../platform/WebPrivatePtr.h" |
| 36 #include "../platform/WebVector.h" | 37 #include "../platform/WebVector.h" |
| 37 #include "WebAXEnums.h" | 38 #include "WebAXEnums.h" |
| 38 | 39 |
| 39 #if BLINK_IMPLEMENTATION | 40 #if BLINK_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 blink { | 44 namespace blink { |
| 44 | 45 |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 | 265 |
| 265 // Load inline text boxes for just this subtree, even if | 266 // Load inline text boxes for just this subtree, even if |
| 266 // settings->inlineTextBoxAccessibilityEnabled() is false. | 267 // settings->inlineTextBoxAccessibilityEnabled() is false. |
| 267 BLINK_EXPORT void loadInlineTextBoxes() const; | 268 BLINK_EXPORT void loadInlineTextBoxes() const; |
| 268 | 269 |
| 269 // For an inline text box. | 270 // For an inline text box. |
| 270 BLINK_EXPORT WebAXTextDirection textDirection() const; | 271 BLINK_EXPORT WebAXTextDirection textDirection() const; |
| 271 BLINK_EXPORT void characterOffsets(WebVector<int>&) const; | 272 BLINK_EXPORT void characterOffsets(WebVector<int>&) const; |
| 272 BLINK_EXPORT void wordBoundaries(WebVector<int>& starts, WebVector<int>& end
s) const; | 273 BLINK_EXPORT void wordBoundaries(WebVector<int>& starts, WebVector<int>& end
s) const; |
| 273 | 274 |
| 275 // Scrollable containers. |
| 276 BLINK_EXPORT bool isScrollableContainer() const; |
| 277 BLINK_EXPORT WebPoint scrollOffset() const; |
| 278 BLINK_EXPORT WebPoint minimumScrollOffset() const; |
| 279 BLINK_EXPORT WebPoint maximumScrollOffset() const; |
| 280 BLINK_EXPORT void setScrollOffset(const WebPoint&) const; |
| 281 |
| 274 // Make this object visible by scrolling as many nested scrollable views as
needed. | 282 // Make this object visible by scrolling as many nested scrollable views as
needed. |
| 275 BLINK_EXPORT void scrollToMakeVisible() const; | 283 BLINK_EXPORT void scrollToMakeVisible() const; |
| 276 // Same, but if the whole object can't be made visible, try for this subrect
, in local coordinates. | 284 // Same, but if the whole object can't be made visible, try for this subrect
, in local coordinates. |
| 277 BLINK_EXPORT void scrollToMakeVisibleWithSubFocus(const WebRect&) const; | 285 BLINK_EXPORT void scrollToMakeVisibleWithSubFocus(const WebRect&) const; |
| 278 // Scroll this object to a given point in global coordinates of the top-leve
l window. | 286 // Scroll this object to a given point in global coordinates of the top-leve
l window. |
| 279 BLINK_EXPORT void scrollToGlobalPoint(const WebPoint&) const; | 287 BLINK_EXPORT void scrollToGlobalPoint(const WebPoint&) const; |
| 280 | 288 |
| 281 #if BLINK_IMPLEMENTATION | 289 #if BLINK_IMPLEMENTATION |
| 282 WebAXObject(const WTF::PassRefPtr<AXObject>&); | 290 WebAXObject(const WTF::PassRefPtr<AXObject>&); |
| 283 WebAXObject& operator=(const WTF::PassRefPtr<AXObject>&); | 291 WebAXObject& operator=(const WTF::PassRefPtr<AXObject>&); |
| 284 operator WTF::PassRefPtr<AXObject>() const; | 292 operator WTF::PassRefPtr<AXObject>() const; |
| 285 #endif | 293 #endif |
| 286 | 294 |
| 287 private: | 295 private: |
| 288 WebPrivatePtr<AXObject> m_private; | 296 WebPrivatePtr<AXObject> m_private; |
| 289 }; | 297 }; |
| 290 | 298 |
| 291 } // namespace blink | 299 } // namespace blink |
| 292 | 300 |
| 293 #endif | 301 #endif |
| OLD | NEW |