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

Unified Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 2279413002: Clean up: Accessibility no longer needs site instance or transforms (Closed)
Patch Set: Created 4 years, 4 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
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/render_frame_host_impl.cc
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc
index da7f2f0725a42708c24cf149bb7c4d85a5a7f712..7b1de22a4494f4048f5afd7fbbdcd9dc61823552 100644
--- a/content/browser/frame_host/render_frame_host_impl.cc
+++ b/content/browser/frame_host/render_frame_host_impl.cc
@@ -712,25 +712,6 @@ gfx::Point RenderFrameHostImpl::AccessibilityOriginInScreen(
return gfx::Point();
}
-gfx::Rect RenderFrameHostImpl::AccessibilityTransformToRootCoordSpace(
- const gfx::Rect& bounds) {
- RenderWidgetHostViewBase* view =
- static_cast<RenderWidgetHostViewBase*>(GetView());
- gfx::Point p1 = view->TransformPointToRootCoordSpace(bounds.origin());
- gfx::Point p2 = view->TransformPointToRootCoordSpace(bounds.top_right());
- gfx::Point p3 = view->TransformPointToRootCoordSpace(bounds.bottom_right());
- gfx::Point p4 = view->TransformPointToRootCoordSpace(bounds.bottom_left());
- gfx::QuadF transformed_quad = gfx::QuadF(
- gfx::PointF(p1), gfx::PointF(p2), gfx::PointF(p3), gfx::PointF(p4));
- gfx::RectF new_bounds = transformed_quad.BoundingBox();
- return gfx::Rect(new_bounds.x(), new_bounds.y(),
- new_bounds.width(), new_bounds.height());
-}
-
-SiteInstance* RenderFrameHostImpl::AccessibilityGetSiteInstance() {
- return GetSiteInstance();
-}
-
void RenderFrameHostImpl::AccessibilityHitTest(const gfx::Point& point) {
Send(new AccessibilityMsg_HitTest(routing_id_, point));
}
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698