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

Unified Diff: content/browser/accessibility/browser_accessibility_com_win.cc

Issue 2948513002: Forward BrowserAccessibility::accHitTest to AXPlatformNode. (Closed)
Patch Set: spelling Created 3 years, 6 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: content/browser/accessibility/browser_accessibility_com_win.cc
diff --git a/content/browser/accessibility/browser_accessibility_com_win.cc b/content/browser/accessibility/browser_accessibility_com_win.cc
index 8ec9e981b9f157a48844fd71d957dab25cbeaf93..8283b938ba56f0e4c2fb2b0120fc00993e1dff18 100644
--- a/content/browser/accessibility/browser_accessibility_com_win.cc
+++ b/content/browser/accessibility/browser_accessibility_com_win.cc
@@ -441,30 +441,7 @@ STDMETHODIMP BrowserAccessibilityComWin::accHitTest(LONG x_left,
if (!owner())
return E_FAIL;
- auto* manager = Manager();
- if (!manager)
- return E_FAIL;
-
- if (!child)
- return E_INVALIDARG;
-
- gfx::Point point(x_left, y_top);
- if (!owner()->GetScreenBoundsRect().Contains(point)) {
- // Return S_FALSE and VT_EMPTY when outside the object's boundaries.
- child->vt = VT_EMPTY;
- return S_FALSE;
- }
-
- BrowserAccessibility* result = manager->CachingAsyncHitTest(point);
- if (result == owner()) {
- // Point is within this object.
- child->vt = VT_I4;
- child->lVal = CHILDID_SELF;
- } else {
- child->vt = VT_DISPATCH;
- child->pdispVal = ToBrowserAccessibilityComWin(result)->NewReference();
- }
- return S_OK;
+ return AXPlatformNodeWin::accHitTest(x_left, y_top, child);
}
STDMETHODIMP BrowserAccessibilityComWin::accLocation(LONG* x_left,
« no previous file with comments | « content/browser/accessibility/browser_accessibility.cc ('k') | ui/accessibility/platform/ax_platform_node_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698