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

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

Issue 1181613002: Added check for leaking AXObjects 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 | « Source/core/testing/Internals.idl ('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 d3182fd4f02bdb7b9aee7bfb125e619efc32f8d8..b26fae449a9b72df45d782c43243855a257ab738 100644
--- a/Source/modules/accessibility/AXObject.h
+++ b/Source/modules/accessibility/AXObject.h
@@ -378,6 +378,8 @@ protected:
public:
virtual ~AXObject();
+ static unsigned instanceCount() { return s_instanceCount; }
+
// After constructing an AXObject, it must be given a
// unique ID, then added to AXObjectCacheImpl, and finally init() must
// be called last.
@@ -793,6 +795,8 @@ protected:
private:
static bool includesARIAWidgetRole(const String&);
static bool hasInteractiveARIAAttribute(const Element&);
+
+ static unsigned s_instanceCount;
};
#define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \
« no previous file with comments | « Source/core/testing/Internals.idl ('k') | Source/modules/accessibility/AXObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698