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

Side by Side Diff: views/widget/native_widget_win.cc

Issue 6995126: Make web content accessibility tree a descendant of main window's tree again (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « views/view_win.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "views/widget/native_widget_win.h" 5 #include "views/widget/native_widget_win.h"
6 6
7 #include <dwmapi.h> 7 #include <dwmapi.h>
8 #include <shellapi.h> 8 #include <shellapi.h>
9 9
10 #include "base/string_util.h" 10 #include "base/string_util.h"
(...skipping 1237 matching lines...) Expand 10 before | Expand all | Expand 10 after
1248 1248
1249 LRESULT NativeWidgetWin::OnGetObject(UINT uMsg, 1249 LRESULT NativeWidgetWin::OnGetObject(UINT uMsg,
1250 WPARAM w_param, 1250 WPARAM w_param,
1251 LPARAM l_param) { 1251 LPARAM l_param) {
1252 LRESULT reference_result = static_cast<LRESULT>(0L); 1252 LRESULT reference_result = static_cast<LRESULT>(0L);
1253 1253
1254 // Accessibility readers will send an OBJID_CLIENT message 1254 // Accessibility readers will send an OBJID_CLIENT message
1255 if (OBJID_CLIENT == l_param) { 1255 if (OBJID_CLIENT == l_param) {
1256 // Retrieve MSAA dispatch object for the root view. 1256 // Retrieve MSAA dispatch object for the root view.
1257 base::win::ScopedComPtr<IAccessible> root( 1257 base::win::ScopedComPtr<IAccessible> root(
1258 NativeViewAccessibilityWin::GetAccessibleForView( 1258 GetWidget()->GetRootView()->GetNativeViewAccessible());
1259 GetWidget()->GetRootView()));
1260 1259
1261 // Create a reference that MSAA will marshall to the client. 1260 // Create a reference that MSAA will marshall to the client.
1262 reference_result = LresultFromObject(IID_IAccessible, w_param, 1261 reference_result = LresultFromObject(IID_IAccessible, w_param,
1263 static_cast<IAccessible*>(root.Detach())); 1262 static_cast<IAccessible*>(root.Detach()));
1264 } 1263 }
1265 1264
1266 if (kCustomObjectID == l_param) { 1265 if (kCustomObjectID == l_param) {
1267 // An MSAA client requestes our custom id. Assume that we have detected an 1266 // An MSAA client requestes our custom id. Assume that we have detected an
1268 // active windows screen reader. 1267 // active windows screen reader.
1269 OnScreenReaderDetected(); 1268 OnScreenReaderDetected();
(...skipping 1210 matching lines...) Expand 10 before | Expand all | Expand 10 after
2480 2479
2481 // And now, notify them that they have a brand new parent. 2480 // And now, notify them that they have a brand new parent.
2482 for (NativeWidgets::iterator it = widgets.begin(); 2481 for (NativeWidgets::iterator it = widgets.begin();
2483 it != widgets.end(); ++it) { 2482 it != widgets.end(); ++it) {
2484 (*it)->GetWidget()->NotifyNativeViewHierarchyChanged(true, 2483 (*it)->GetWidget()->NotifyNativeViewHierarchyChanged(true,
2485 new_parent); 2484 new_parent);
2486 } 2485 }
2487 } 2486 }
2488 2487
2489 } // namespace views 2488 } // namespace views
OLDNEW
« no previous file with comments | « views/view_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698