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

Unified Diff: views/accessibility/view_accessibility.cc

Issue 287007: Ensure that accessibility information from native views like the autocomplete... (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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/accessibility/view_accessibility.cc
===================================================================
--- views/accessibility/view_accessibility.cc (revision 28958)
+++ views/accessibility/view_accessibility.cc (working copy)
@@ -774,12 +774,15 @@
return E_INVALIDARG;
}
- HWND render_view_window =
+ HWND native_view_window =
static_cast<HWND>(GetProp(native_host->native_view(),
kViewsNativeHostPropForAccessibility));
+ if (!IsWindow(native_view_window)) {
+ native_view_window = native_host->native_view();
+ }
- if (IsWindow(render_view_window)) {
- LRESULT ret = SendMessage(render_view_window, WM_GETOBJECT, 0,
+ if (IsWindow(native_view_window)) {
+ LRESULT ret = SendMessage(native_view_window, WM_GETOBJECT, 0,
OBJID_CLIENT);
return ObjectFromLresult(ret, IID_IDispatch, 0,
reinterpret_cast<void**>(disp_child));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698