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

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

Issue 261044: Accessibility information from the renderer was not being returned to tools l... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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 | « no previous file | views/accessibility/view_accessibility.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 28536)
+++ chrome/browser/renderer_host/render_widget_host_view_win.cc (working copy)
@@ -31,6 +31,7 @@
#include "skia/ext/skia_utils_win.h"
#include "webkit/api/public/WebInputEvent.h"
#include "webkit/api/public/win/WebInputEventFactory.h"
+#include "views/accessibility/view_accessibility.h"
#include "views/focus/focus_util_win.h"
// Included for views::kReflectedMessage - TODO(beng): move this to win_util.h!
#include "views/widget/widget_win.h"
@@ -681,6 +682,9 @@
// Marks that window as supporting mouse-wheel messages rerouting so it is
// scrolled when under the mouse pointer even if inactive.
views::SetWindowSupportsRerouteMouseWheel(m_hWnd);
+ // Save away our HWND in the parent window as a property so that the
+ // accessibility code can find it.
+ SetProp(GetParent(), kViewsNativeHostPropForAccessibility, m_hWnd);
return 0;
}
@@ -1249,7 +1253,6 @@
if (!browser_accessibility_root_) {
// No valid root found, return with failure.
- NOTREACHED();
return static_cast<LRESULT>(0L);
}
}
« no previous file with comments | « no previous file | views/accessibility/view_accessibility.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698