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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 BLINK_EXPORT void reset(); | 86 BLINK_EXPORT void reset(); |
87 BLINK_EXPORT void assign(const WebAXObject&); | 87 BLINK_EXPORT void assign(const WebAXObject&); |
88 BLINK_EXPORT bool equals(const WebAXObject&) const; | 88 BLINK_EXPORT bool equals(const WebAXObject&) const; |
89 | 89 |
90 bool isNull() const { return m_private.isNull(); } | 90 bool isNull() const { return m_private.isNull(); } |
91 // isDetached also checks for null, so it's safe to just call isDetached. | 91 // isDetached also checks for null, so it's safe to just call isDetached. |
92 BLINK_EXPORT bool isDetached() const; | 92 BLINK_EXPORT bool isDetached() const; |
93 | 93 |
94 BLINK_EXPORT int axID() const; | 94 BLINK_EXPORT int axID() const; |
95 | 95 |
| 96 // Get a new AXID that's not used by any accessibility node in this process,
for when the |
| 97 // client needs to insert additional nodes into the accessibility tree. |
| 98 BLINK_EXPORT int generateAXID() const; |
| 99 |
96 // Update layout on the underlying tree, and return true if this object is | 100 // Update layout on the underlying tree, and return true if this object is |
97 // still valid (not detached). Note that calling this method | 101 // still valid (not detached). Note that calling this method |
98 // can cause other WebAXObjects to become invalid, too, | 102 // can cause other WebAXObjects to become invalid, too, |
99 // so always call isDetached if any other WebCore code has run. | 103 // so always call isDetached if any other WebCore code has run. |
100 BLINK_EXPORT bool updateLayoutAndCheckValidity(); | 104 BLINK_EXPORT bool updateLayoutAndCheckValidity(); |
101 | 105 |
102 BLINK_EXPORT unsigned childCount() const; | 106 BLINK_EXPORT unsigned childCount() const; |
103 | 107 |
104 BLINK_EXPORT WebAXObject childAt(unsigned) const; | 108 BLINK_EXPORT WebAXObject childAt(unsigned) const; |
105 BLINK_EXPORT WebAXObject parentObject() const; | 109 BLINK_EXPORT WebAXObject parentObject() const; |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 operator AXObject*() const; | 309 operator AXObject*() const; |
306 #endif | 310 #endif |
307 | 311 |
308 private: | 312 private: |
309 WebPrivatePtr<AXObject> m_private; | 313 WebPrivatePtr<AXObject> m_private; |
310 }; | 314 }; |
311 | 315 |
312 } // namespace blink | 316 } // namespace blink |
313 | 317 |
314 #endif | 318 #endif |
OLD | NEW |