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

Unified Diff: chrome/browser/renderer_host/render_view_host.cc

Issue 1637018: Reimplement web content accessibility by caching in browser process (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 7 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: chrome/browser/renderer_host/render_view_host.cc
===================================================================
--- chrome/browser/renderer_host/render_view_host.cc (revision 46908)
+++ chrome/browser/renderer_host/render_view_host.cc (working copy)
@@ -676,6 +676,10 @@
return sudden_termination_allowed_ || process()->sudden_termination_allowed();
}
+void RenderViewHost::RequestAccessibilityTree() {
+ Send(new ViewMsg_GetAccessibilityTree(routing_id()));
+}
+
///////////////////////////////////////////////////////////////////////////////
// RenderViewHost, IPC message handlers:
@@ -828,6 +832,7 @@
IPC_MESSAGE_HANDLER(ViewHostMsg_PageContents, OnPageContents)
IPC_MESSAGE_HANDLER(ViewHostMsg_PageTranslated, OnPageTranslated)
IPC_MESSAGE_HANDLER(ViewHostMsg_ContentBlocked, OnContentBlocked)
+ IPC_MESSAGE_HANDLER(ViewHostMsg_AccessibilityTree, OnAccessibilityTree)
// Have the super handle all other messages.
IPC_MESSAGE_UNHANDLED(RenderWidgetHost::OnMessageReceived(msg))
IPC_END_MESSAGE_MAP_EX()
@@ -1826,23 +1831,18 @@
}
void RenderViewHost::OnAccessibilityFocusChange(int acc_obj_id) {
-#if defined(OS_WIN)
- BrowserAccessibilityManager::GetInstance()->ChangeAccessibilityFocus(
- acc_obj_id, process()->id(), routing_id());
-#else
- // TODO(port): accessibility not yet implemented. See http://crbug.com/8288.
-#endif
+ view()->OnAccessibilityFocusChange(acc_obj_id);
}
void RenderViewHost::OnAccessibilityObjectStateChange(int acc_obj_id) {
-#if defined(OS_WIN)
- BrowserAccessibilityManager::GetInstance()->OnAccessibilityObjectStateChange(
- acc_obj_id, process()->id(), routing_id());
-#else
- // TODO(port): accessibility not yet implemented. See http://crbug.com/8288.
-#endif
+ view()->OnAccessibilityObjectStateChange(acc_obj_id);
}
+void RenderViewHost::OnAccessibilityTree(
+ const webkit_glue::WebAccessibility& tree) {
+ view()->UpdateAccessibilityTree(tree);
+}
+
void RenderViewHost::OnCSSInserted() {
delegate_->DidInsertCSS();
}
« no previous file with comments | « chrome/browser/renderer_host/render_view_host.h ('k') | chrome/browser/renderer_host/render_widget_host_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698