#ifndef UI_ACCESSIBILITY_PLATFORM_CHILD_ITERATOR_H_
#define UI_ACCESSIBILITY_PLATFORM_CHILD_ITERATOR_H_
#include "ui/accessibility/platform/ax_platform_node_delegate.h"
namespace ui {
class COMPONENT_EXPORT(AX_PLATFORM) ChildIterator {
public:
virtual ~ChildIterator() = default;
bool operator==(const ChildIterator& rhs) const {
return GetIndexInParent() == rhs.GetIndexInParent();
}
bool operator!=(const ChildIterator& rhs) const {
return GetIndexInParent() != rhs.GetIndexInParent();
}
virtual ChildIterator& operator++() = 0;
virtual ChildIterator& operator--() = 0;
virtual gfx::NativeViewAccessible GetNativeViewAccessible() const = 0;
virtual absl::optional<size_t> GetIndexInParent() const = 0;
virtual AXPlatformNodeDelegate* get() const = 0;
virtual AXPlatformNodeDelegate& operator*() const = 0;
virtual AXPlatformNodeDelegate* operator->() const = 0;
};
}
#endif