| 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 561 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  572     // If this object itself scrolls, return its ScrollableArea. |  572     // If this object itself scrolls, return its ScrollableArea. | 
|  573     virtual ScrollableArea* getScrollableAreaIfScrollable() const { return 0; } |  573     virtual ScrollableArea* getScrollableAreaIfScrollable() const { return 0; } | 
|  574     virtual void scrollTo(const IntPoint&) const { } |  574     virtual void scrollTo(const IntPoint&) const { } | 
|  575  |  575  | 
|  576     AccessibilityRole buttonRoleType() const; |  576     AccessibilityRole buttonRoleType() const; | 
|  577  |  577  | 
|  578     bool allowsTextRanges() const { return isTextControl(); } |  578     bool allowsTextRanges() const { return isTextControl(); } | 
|  579     unsigned getLengthForTextRange() const { return text().length(); } |  579     unsigned getLengthForTextRange() const { return text().length(); } | 
|  580  |  580  | 
|  581     bool m_detached; |  581     bool m_detached; | 
 |  582  | 
 |  583 private: | 
 |  584     // The following cached attribute values (the ones starting with m_cached*) | 
 |  585     // are only valid if m_lastModificationCount matches AXObjectCacheImpl::modi
     ficationCount(). | 
 |  586     mutable int m_lastModificationCount; | 
 |  587     mutable bool m_cachedIsIgnored; | 
 |  588  | 
 |  589     void updateCachedAttributeValuesIfNeeded() const; | 
|  582 }; |  590 }; | 
|  583  |  591  | 
|  584 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ |  592 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ | 
|  585     DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred
     icate) |  593     DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred
     icate) | 
|  586  |  594  | 
|  587 } // namespace blink |  595 } // namespace blink | 
|  588  |  596  | 
|  589 #endif // AXObject_h |  597 #endif // AXObject_h | 
| OLD | NEW |