OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved. |
3 * Copyright (C) 2008 Nuanti Ltd. | 3 * Copyright (C) 2008 Nuanti Ltd. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 | 286 |
287 // When the corresponding WebCore object that this AXObject | 287 // When the corresponding WebCore object that this AXObject |
288 // wraps is deleted, it must be detached. | 288 // wraps is deleted, it must be detached. |
289 virtual void detach(); | 289 virtual void detach(); |
290 virtual bool isDetached() const; | 290 virtual bool isDetached() const; |
291 | 291 |
292 // The AXObjectCache that owns this object, and its unique ID within this ca
che. | 292 // The AXObjectCache that owns this object, and its unique ID within this ca
che. |
293 AXObjectCache* axObjectCache() const; | 293 AXObjectCache* axObjectCache() const; |
294 AXID axObjectID() const { return m_id; } | 294 AXID axObjectID() const { return m_id; } |
295 | 295 |
296 // Lays out the page so that the accessibility tree is based on up-to-date i
nformation. | |
297 void updateBackingStore(); | |
298 | |
299 // Determine subclass type. | 296 // Determine subclass type. |
300 virtual bool isAXNodeObject() const { return false; } | 297 virtual bool isAXNodeObject() const { return false; } |
301 virtual bool isAXRenderObject() const { return false; } | 298 virtual bool isAXRenderObject() const { return false; } |
302 virtual bool isAXScrollbar() const { return false; } | 299 virtual bool isAXScrollbar() const { return false; } |
303 virtual bool isAXScrollView() const { return false; } | 300 virtual bool isAXScrollView() const { return false; } |
304 virtual bool isAXSVGRoot() const { return false; } | 301 virtual bool isAXSVGRoot() const { return false; } |
305 | 302 |
306 // Check object role or purpose. | 303 // Check object role or purpose. |
307 virtual AccessibilityRole roleValue() const { return m_role; } | 304 virtual AccessibilityRole roleValue() const { return m_role; } |
308 bool isARIATextControl() const; | 305 bool isARIATextControl() const; |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
576 | 573 |
577 bool m_detached; | 574 bool m_detached; |
578 }; | 575 }; |
579 | 576 |
580 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ | 577 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ |
581 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred
icate) | 578 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred
icate) |
582 | 579 |
583 } // namespace WebCore | 580 } // namespace WebCore |
584 | 581 |
585 #endif // AXObject_h | 582 #endif // AXObject_h |
OLD | NEW |