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

Unified Diff: Source/modules/accessibility/AXObject.h

Issue 1202263005: Adding Internals.numberOfLiveAXObjects to test for leaking AXObjects (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/resources/leak-check.js ('k') | Source/modules/accessibility/AXObject.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/accessibility/AXObject.h
diff --git a/Source/modules/accessibility/AXObject.h b/Source/modules/accessibility/AXObject.h
index a02bc6331fdfb487c536a7a05d2cdd7f49627c13..9b2c87cd30360b40b42305122476ed2c0e440946 100644
--- a/Source/modules/accessibility/AXObject.h
+++ b/Source/modules/accessibility/AXObject.h
@@ -391,6 +391,8 @@ protected:
public:
virtual ~AXObject();
+ static unsigned numberOfLiveAXObjects() { return s_numberOfLiveAXObjects; }
+
// After constructing an AXObject, it must be given a
// unique ID, then added to AXObjectCacheImpl, and finally init() must
// be called last.
@@ -806,6 +808,8 @@ protected:
private:
static bool includesARIAWidgetRole(const String&);
static bool hasInteractiveARIAAttribute(const Element&);
+
+ static unsigned s_numberOfLiveAXObjects;
};
#define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \
« no previous file with comments | « LayoutTests/resources/leak-check.js ('k') | Source/modules/accessibility/AXObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698