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

Unified Diff: ui/accessibility/platform/test_ax_node_wrapper.cc

Issue 2795543002: Add GetScreenBoundsRect to ui::AXPlatformNodeDelegate (Closed)
Patch Set: Add GetScreenBoundsRect() to ui::AXPlatformNodeDelegate Created 3 years, 8 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
Index: ui/accessibility/platform/test_ax_node_wrapper.cc
diff --git a/ui/accessibility/platform/test_ax_node_wrapper.cc b/ui/accessibility/platform/test_ax_node_wrapper.cc
index 7e52077ca43370cd9235228b38d1ddb99bc2ea84..6f918c29e3631b0fbfd2c1f61e0e4717678a1baf 100644
--- a/ui/accessibility/platform/test_ax_node_wrapper.cc
+++ b/ui/accessibility/platform/test_ax_node_wrapper.cc
@@ -5,6 +5,7 @@
#include "base/containers/hash_tables.h"
#include "ui/accessibility/ax_action_data.h"
#include "ui/accessibility/platform/test_ax_node_wrapper.h"
+#include "ui/gfx/geometry/rect_conversions.h"
namespace ui {
@@ -100,8 +101,10 @@ gfx::NativeViewAccessible TestAXNodeWrapper::ChildAtIndex(int index) {
nullptr;
}
-gfx::Vector2d TestAXNodeWrapper::GetGlobalCoordinateOffset() {
- return g_offset;
+gfx::Rect TestAXNodeWrapper::GetScreenBoundsRect() const {
+ gfx::RectF bounds = GetData().location;
+ bounds.Offset(g_offset);
+ return gfx::ToEnclosingRect(bounds);
}
gfx::NativeViewAccessible TestAXNodeWrapper::HitTestSync(int x, int y) {

Powered by Google App Engine
This is Rietveld 408576698