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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 // isDetached also checks for null, so it's safe to just call isDetached. | 72 // isDetached also checks for null, so it's safe to just call isDetached. |
73 BLINK_EXPORT bool isDetached() const; | 73 BLINK_EXPORT bool isDetached() const; |
74 | 74 |
75 // Static methods for enabling accessibility. | 75 // Static methods for enabling accessibility. |
76 BLINK_EXPORT static void enableAccessibility(); | 76 BLINK_EXPORT static void enableAccessibility(); |
77 BLINK_EXPORT static bool accessibilityEnabled(); | 77 BLINK_EXPORT static bool accessibilityEnabled(); |
78 | 78 |
79 BLINK_EXPORT void startCachingComputedObjectAttributesUntilTreeMutates(); | 79 BLINK_EXPORT void startCachingComputedObjectAttributesUntilTreeMutates(); |
80 BLINK_EXPORT void stopCachingComputedObjectAttributes(); | 80 BLINK_EXPORT void stopCachingComputedObjectAttributes(); |
81 | 81 |
| 82 // Temporary: this flag will only be toggleable until Chromium has it on by
default. |
| 83 BLINK_EXPORT static void enableInlineTextBoxAccessibility(); |
| 84 |
82 BLINK_EXPORT int axID() const; | 85 BLINK_EXPORT int axID() const; |
83 | 86 |
84 // Update the underlying tree, and return true if this object is | 87 // Update the underlying tree, and return true if this object is |
85 // still valid (not detached). Note that calling this method | 88 // still valid (not detached). Note that calling this method |
86 // can cause other WebAXObjects to become invalid, too, | 89 // can cause other WebAXObjects to become invalid, too, |
87 // so always call isDetached if updateBackingStoreAndCheckValidity | 90 // so always call isDetached if updateBackingStoreAndCheckValidity |
88 // has been called on any object, or if any other WebCore code has run. | 91 // has been called on any object, or if any other WebCore code has run. |
89 BLINK_EXPORT bool updateBackingStoreAndCheckValidity(); | 92 BLINK_EXPORT bool updateBackingStoreAndCheckValidity(); |
90 | 93 |
91 BLINK_EXPORT WebString accessibilityDescription() const; | 94 BLINK_EXPORT WebString accessibilityDescription() const; |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 // For a table column | 191 // For a table column |
189 BLINK_EXPORT unsigned columnIndex() const; | 192 BLINK_EXPORT unsigned columnIndex() const; |
190 BLINK_EXPORT WebAXObject columnHeader() const; | 193 BLINK_EXPORT WebAXObject columnHeader() const; |
191 | 194 |
192 // For a table cell | 195 // For a table cell |
193 BLINK_EXPORT unsigned cellColumnIndex() const; | 196 BLINK_EXPORT unsigned cellColumnIndex() const; |
194 BLINK_EXPORT unsigned cellColumnSpan() const; | 197 BLINK_EXPORT unsigned cellColumnSpan() const; |
195 BLINK_EXPORT unsigned cellRowIndex() const; | 198 BLINK_EXPORT unsigned cellRowIndex() const; |
196 BLINK_EXPORT unsigned cellRowSpan() const; | 199 BLINK_EXPORT unsigned cellRowSpan() const; |
197 | 200 |
| 201 // For an inline text box. |
| 202 BLINK_EXPORT WebAXTextDirection textDirection() const; |
| 203 BLINK_EXPORT void characterOffsets(WebVector<int>&) const; |
| 204 BLINK_EXPORT void wordBoundaries(WebVector<int>& starts, WebVector<int>& end
s) const; |
| 205 |
198 // Make this object visible by scrolling as many nested scrollable views as
needed. | 206 // Make this object visible by scrolling as many nested scrollable views as
needed. |
199 BLINK_EXPORT void scrollToMakeVisible() const; | 207 BLINK_EXPORT void scrollToMakeVisible() const; |
200 // Same, but if the whole object can't be made visible, try for this subrect
, in local coordinates. | 208 // Same, but if the whole object can't be made visible, try for this subrect
, in local coordinates. |
201 BLINK_EXPORT void scrollToMakeVisibleWithSubFocus(const WebRect&) const; | 209 BLINK_EXPORT void scrollToMakeVisibleWithSubFocus(const WebRect&) const; |
202 // Scroll this object to a given point in global coordinates of the top-leve
l window. | 210 // Scroll this object to a given point in global coordinates of the top-leve
l window. |
203 BLINK_EXPORT void scrollToGlobalPoint(const WebPoint&) const; | 211 BLINK_EXPORT void scrollToGlobalPoint(const WebPoint&) const; |
204 | 212 |
205 #if BLINK_IMPLEMENTATION | 213 #if BLINK_IMPLEMENTATION |
206 WebAXObject(const WTF::PassRefPtr<WebCore::AXObject>&); | 214 WebAXObject(const WTF::PassRefPtr<WebCore::AXObject>&); |
207 WebAXObject& operator=(const WTF::PassRefPtr<WebCore::AXObject>&); | 215 WebAXObject& operator=(const WTF::PassRefPtr<WebCore::AXObject>&); |
208 operator WTF::PassRefPtr<WebCore::AXObject>() const; | 216 operator WTF::PassRefPtr<WebCore::AXObject>() const; |
209 #endif | 217 #endif |
210 | 218 |
211 private: | 219 private: |
212 WebPrivatePtr<WebCore::AXObject> m_private; | 220 WebPrivatePtr<WebCore::AXObject> m_private; |
213 }; | 221 }; |
214 | 222 |
215 } // namespace WebKit | 223 } // namespace WebKit |
216 | 224 |
217 #endif | 225 #endif |
OLD | NEW |