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

Side by Side Diff: chrome/browser/accessibility/accessibility_win_browsertest.cc

Issue 9473001: Extract minimal RenderViewHost interface for embedders, leaving (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to LKGR. Created 8 years, 9 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 | « no previous file | chrome/browser/autocomplete/autocomplete_edit.cc » ('j') | 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <atlbase.h> 5 #include <atlbase.h>
6 #include <vector> 6 #include <vector>
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "base/win/scoped_comptr.h" 10 #include "base/win/scoped_comptr.h"
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 if (*found) 188 if (*found)
189 return; 189 return;
190 } 190 }
191 } 191 }
192 } 192 }
193 193
194 // Retrieve the MSAA client accessibility object for the Render Widget Host View 194 // Retrieve the MSAA client accessibility object for the Render Widget Host View
195 // of the selected tab. 195 // of the selected tab.
196 IAccessible* 196 IAccessible*
197 AccessibilityWinBrowserTest::GetRendererAccessible() { 197 AccessibilityWinBrowserTest::GetRendererAccessible() {
198 browser()->GetSelectedWebContents()->GetRenderViewHost()-> 198 // TODO(joi): Remove this dependency.
199 static_cast<RenderViewHostImpl*>(
200 browser()->GetSelectedWebContents()->GetRenderViewHost())->
199 set_send_accessibility_updated_notifications(true); 201 set_send_accessibility_updated_notifications(true);
200 202
201 HWND hwnd_render_widget_host_view = 203 HWND hwnd_render_widget_host_view =
202 browser()->GetSelectedWebContents()->GetRenderWidgetHostView()-> 204 browser()->GetSelectedWebContents()->GetRenderWidgetHostView()->
203 GetNativeView(); 205 GetNativeView();
204 206
205 // Invoke windows screen reader detection by sending the WM_GETOBJECT message 207 // Invoke windows screen reader detection by sending the WM_GETOBJECT message
206 // with kIdCustom as the LPARAM. 208 // with kIdCustom as the LPARAM.
207 const int32 kIdCustom = 1; 209 const int32 kIdCustom = 1;
208 SendMessage( 210 SendMessage(
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after
756 758
757 // Check the browser's copy of the renderer accessibility tree. 759 // Check the browser's copy of the renderer accessibility tree.
758 AccessibleChecker grouping1_checker(L"", ROLE_SYSTEM_GROUPING, L""); 760 AccessibleChecker grouping1_checker(L"", ROLE_SYSTEM_GROUPING, L"");
759 AccessibleChecker grouping2_checker(L"", ROLE_SYSTEM_GROUPING, L""); 761 AccessibleChecker grouping2_checker(L"", ROLE_SYSTEM_GROUPING, L"");
760 AccessibleChecker document_checker(L"", ROLE_SYSTEM_DOCUMENT, L""); 762 AccessibleChecker document_checker(L"", ROLE_SYSTEM_DOCUMENT, L"");
761 document_checker.AppendExpectedChild(&grouping1_checker); 763 document_checker.AppendExpectedChild(&grouping1_checker);
762 document_checker.AppendExpectedChild(&grouping2_checker); 764 document_checker.AppendExpectedChild(&grouping2_checker);
763 document_checker.CheckAccessible(GetRendererAccessible()); 765 document_checker.CheckAccessible(GetRendererAccessible());
764 } 766 }
765 } // namespace. 767 } // namespace.
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/autocomplete/autocomplete_edit.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698