#include "ui/accessibility/test_ax_node_helper.h"
#include <map>
#include <utility>
#include "base/strings/utf_string_conversions.h"
#include "ui/accessibility/ax_action_data.h"
#include "ui/accessibility/ax_role_properties.h"
#include "ui/accessibility/ax_table_info.h"
#include "ui/accessibility/ax_tree_observer.h"
#include "ui/gfx/geometry/rect_conversions.h"
namespace ui {
namespace {
std::map<AXNodeID, TestAXNodeHelper*> g_node_id_to_helper_map;
class TestAXTreeObserver : public AXTreeObserver { … };
TestAXTreeObserver g_ax_tree_observer;
}
TestAXNodeHelper* TestAXNodeHelper::GetOrCreate(AXTree* tree, AXNode* node) { … }
TestAXNodeHelper::TestAXNodeHelper(AXTree* tree, AXNode* node)
: … { … }
TestAXNodeHelper::~TestAXNodeHelper() = default;
gfx::Rect TestAXNodeHelper::GetBoundsRect(
const AXCoordinateSystem coordinate_system,
const AXClippingBehavior clipping_behavior,
AXOffscreenResult* offscreen_result) const { … }
gfx::Rect TestAXNodeHelper::GetInnerTextRangeBoundsRect(
const int start_offset,
const int end_offset,
const AXCoordinateSystem coordinate_system,
const AXClippingBehavior clipping_behavior,
AXOffscreenResult* offscreen_result) const { … }
const AXNodeData& TestAXNodeHelper::GetData() const { … }
gfx::RectF TestAXNodeHelper::GetLocation() const { … }
int TestAXNodeHelper::InternalChildCount() const { … }
TestAXNodeHelper* TestAXNodeHelper::InternalGetChild(int index) const { … }
gfx::RectF TestAXNodeHelper::GetInlineTextRect(const int start_offset,
const int end_offset) const { … }
bool TestAXNodeHelper::Intersects(gfx::RectF rect1, gfx::RectF rect2) const { … }
AXOffscreenResult TestAXNodeHelper::DetermineOffscreenResult(
gfx::RectF bounds) const { … }
}