Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(101)

Side by Side Diff: Source/core/accessibility/AXObject.h

Issue 670093002: Get rid of AXComputedObjectAttributeCache (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/accessibility/AXObject.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | Source/core/accessibility/AXObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698