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

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

Issue 2121004: Windows accessibility improvements: 1. All WebKit roles are now passed to the... (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
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host_view_win.h ('k') | chrome/common/render_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/render_widget_host_view_win.cc
===================================================================
--- chrome/browser/renderer_host/render_widget_host_view_win.cc (revision 47913)
+++ chrome/browser/renderer_host/render_widget_host_view_win.cc (working copy)
@@ -1480,7 +1480,7 @@
void RenderWidgetHostViewWin::UpdateAccessibilityTree(
const webkit_glue::WebAccessibility& tree) {
browser_accessibility_manager_.reset(
- new BrowserAccessibilityManager(m_hWnd, tree));
+ new BrowserAccessibilityManager(m_hWnd, tree, this));
}
void RenderWidgetHostViewWin::OnAccessibilityFocusChange(int acc_obj_id) {
@@ -1516,6 +1516,28 @@
browser_accessibility_manager_.reset(NULL);
}
+void RenderWidgetHostViewWin::SetAccessibilityFocus(int acc_obj_id) {
+ if (!browser_accessibility_manager_.get() ||
+ !render_widget_host_ ||
+ !render_widget_host_->process() ||
+ !render_widget_host_->process()->HasConnection()) {
+ return;
+ }
+
+ render_widget_host_->SetAccessibilityFocus(acc_obj_id);
+}
+
+void RenderWidgetHostViewWin::AccessibilityDoDefaultAction(int acc_obj_id) {
+ if (!browser_accessibility_manager_.get() ||
+ !render_widget_host_ ||
+ !render_widget_host_->process() ||
+ !render_widget_host_->process()->HasConnection()) {
+ return;
+ }
+
+ render_widget_host_->AccessibilityDoDefaultAction(acc_obj_id);
+}
+
LRESULT RenderWidgetHostViewWin::OnGetObject(UINT message, WPARAM wparam,
LPARAM lparam, BOOL& handled) {
// TODO(dmazzoni): http://crbug.com/25564 Disabling accessibility in the
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host_view_win.h ('k') | chrome/common/render_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698