mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 23:05:42 +00:00
bug 1261144 - move Count() from AccCollector to EmbeddedObjCollector r=lsocks
This commit is contained in:
parent
13b3496e7a
commit
ddf532b5f7
@ -23,7 +23,7 @@ AccCollector::~AccCollector()
|
||||
}
|
||||
|
||||
uint32_t
|
||||
AccCollector::Count()
|
||||
EmbeddedObjCollector::Count()
|
||||
{
|
||||
EnsureNGetIndex(nullptr);
|
||||
return mObjects.Length();
|
||||
|
@ -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) :
|
||||
|
Loading…
Reference in New Issue
Block a user