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

Unified Diff: trunk/src/content/browser/accessibility/android_hit_testing_browsertest.cc

Issue 408663006: Revert 284065 "Revert of Revert of Migrate accessibility from Re..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 5 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: trunk/src/content/browser/accessibility/android_hit_testing_browsertest.cc
===================================================================
--- trunk/src/content/browser/accessibility/android_hit_testing_browsertest.cc (revision 284469)
+++ trunk/src/content/browser/accessibility/android_hit_testing_browsertest.cc (working copy)
@@ -17,7 +17,8 @@
#include "content/browser/accessibility/accessibility_tree_formatter.h"
#include "content/browser/accessibility/browser_accessibility.h"
#include "content/browser/accessibility/browser_accessibility_manager.h"
-#include "content/browser/web_contents/web_contents_impl.h"
+#include "content/browser/renderer_host/render_view_host_impl.h"
+#include "content/browser/renderer_host/render_widget_host_view_base.h"
#include "content/public/browser/web_contents.h"
#include "content/public/common/content_paths.h"
#include "content/public/common/content_switches.h"
@@ -58,10 +59,10 @@
waiter.WaitForNotification();
// Get the BrowserAccessibilityManager.
- WebContentsImpl* web_contents =
- static_cast<WebContentsImpl*>(shell()->web_contents());
+ RenderWidgetHostViewBase* host_view = static_cast<RenderWidgetHostViewBase*>(
+ shell()->web_contents()->GetRenderWidgetHostView());
BrowserAccessibilityManager* manager =
- web_contents->GetRootBrowserAccessibilityManager();
+ host_view->GetBrowserAccessibilityManager();
// Send a hit test request, and wait for the hover event in response.
AccessibilityNotificationWaiter hover_waiter(

Powered by Google App Engine
This is Rietveld 408576698