bug 1261144 - move Count() from AccCollector to EmbeddedObjCollector r=lsocks

This commit is contained in:
Trevor Saunders 2016-03-30 16:11:09 -04:00
parent 13b3496e7a
commit ddf532b5f7
2 changed files with 6 additions and 6 deletions

View File

@ -23,7 +23,7 @@ AccCollector::~AccCollector()
}
uint32_t
AccCollector::Count()
EmbeddedObjCollector::Count()
{
EnsureNGetIndex(nullptr);
return mObjects.Length();

View File

@ -24,11 +24,6 @@ public:
AccCollector(Accessible* aRoot, filters::FilterFuncPtr aFilterFunc);
virtual ~AccCollector();
/**
* Return accessible count within the collection.
*/
uint32_t Count();
/**
* Return an accessible from the collection at the given index.
*/
@ -79,6 +74,11 @@ public:
public:
virtual int32_t GetIndexAt(Accessible* aAccessible) override;
/**
* Return accessible count within the collection.
*/
uint32_t Count();
protected:
// Make sure it's used by Accessible class only.
explicit EmbeddedObjCollector(Accessible* aRoot) :