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

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

Issue 273423004: Migrate accessibility from RenderView to RenderFrame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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: content/browser/accessibility/dump_accessibility_tree_browsertest.cc
diff --git a/content/browser/accessibility/dump_accessibility_tree_browsertest.cc b/content/browser/accessibility/dump_accessibility_tree_browsertest.cc
index de73995a11c5e54caaa9da621e4ff508e1a358e4..4b461be793f76878499552428976e4e8c42b9b9a 100644
--- a/content/browser/accessibility/dump_accessibility_tree_browsertest.cc
+++ b/content/browser/accessibility/dump_accessibility_tree_browsertest.cc
@@ -19,6 +19,7 @@
#include "content/browser/accessibility/browser_accessibility_manager.h"
#include "content/browser/renderer_host/render_view_host_impl.h"
#include "content/browser/renderer_host/render_widget_host_view_base.h"
+#include "content/browser/web_contents/web_contents_impl.h"
#include "content/public/browser/web_contents.h"
#include "content/public/common/content_paths.h"
#include "content/public/common/content_switches.h"
@@ -223,14 +224,14 @@ void DumpAccessibilityTreeTest::RunTest(
// Wait for notifications. If there's a @WAIT-FOR directive, break when
// the text we're waiting for appears in the dump, otherwise break after
// the first notification, which will be a load complete.
- RenderWidgetHostViewBase* host_view = static_cast<RenderWidgetHostViewBase*>(
- shell()->web_contents()->GetRenderWidgetHostView());
+ WebContentsImpl* web_contents = static_cast<WebContentsImpl*>(
+ shell()->web_contents());
std::string actual_contents;
do {
waiter->WaitForNotification();
base::string16 actual_contents_utf16;
AccessibilityTreeFormatter formatter(
- host_view->GetBrowserAccessibilityManager()->GetRoot());
+ web_contents->GetRootBrowserAccessibilityManager()->GetRoot());
formatter.SetFilters(filters);
formatter.FormatAccessibilityTree(&actual_contents_utf16);
actual_contents = base::UTF16ToUTF8(actual_contents_utf16);
« no previous file with comments | « content/browser/accessibility/browser_accessibility_state_impl.cc ('k') | content/browser/android/content_view_core_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698