| 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();
|
| }
|
|
|