Chromium Code Reviews| 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 are only valid if m_lastModificatio nCount matches AXObjectCacheImpl::modificationCount(). | |
| 
 
aboxhall
2014/10/23 21:48:11
What does "the following cached attribute values"
 
dmazzoni
2014/10/23 21:51:52
Sure. In the following changes I'm hoping to add s
 
 | |
| 585 mutable int m_lastModificationCount; | |
| 586 mutable bool m_cachedIsIgnored; | |
| 587 | |
| 588 void updateCachedAttributeValuesIfNeeded() const; | |
| 582 }; | 589 }; | 
| 583 | 590 | 
| 584 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ | 591 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ | 
| 585 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred icate) | 592 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred icate) | 
| 586 | 593 | 
| 587 } // namespace blink | 594 } // namespace blink | 
| 588 | 595 | 
| 589 #endif // AXObject_h | 596 #endif // AXObject_h | 
| OLD | NEW |