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

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

Issue 10538039: Renamed BrowserWindow::GetNativeHandle() to GetNativeWindow() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update copyrights Created 8 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 | « no previous file | chrome/browser/app_controller_mac.mm » ('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/stringprintf.h" 9 #include "base/stringprintf.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after
718 content::NotificationService::AllSources()); 718 content::NotificationService::AllSources());
719 GURL tree_url("data:text/html,<html><head><title>MyDocument</title></head>" 719 GURL tree_url("data:text/html,<html><head><title>MyDocument</title></head>"
720 "<body>Content</body></html>"); 720 "<body>Content</body></html>");
721 browser()->OpenURL(OpenURLParams( 721 browser()->OpenURL(OpenURLParams(
722 tree_url, Referrer(), CURRENT_TAB, content::PAGE_TRANSITION_TYPED, 722 tree_url, Referrer(), CURRENT_TAB, content::PAGE_TRANSITION_TYPED,
723 false)); 723 false));
724 GetRendererAccessible(); 724 GetRendererAccessible();
725 tree_updated_observer1.Wait(); 725 tree_updated_observer1.Wait();
726 726
727 // Get the accessibility object for the browser window. 727 // Get the accessibility object for the browser window.
728 HWND browser_hwnd = browser()->window()->GetNativeHandle(); 728 HWND browser_hwnd = browser()->window()->GetNativeWindow();
729 base::win::ScopedComPtr<IAccessible> browser_accessible; 729 base::win::ScopedComPtr<IAccessible> browser_accessible;
730 HRESULT hr = AccessibleObjectFromWindow( 730 HRESULT hr = AccessibleObjectFromWindow(
731 browser_hwnd, 731 browser_hwnd,
732 OBJID_WINDOW, 732 OBJID_WINDOW,
733 IID_IAccessible, 733 IID_IAccessible,
734 reinterpret_cast<void**>(browser_accessible.Receive())); 734 reinterpret_cast<void**>(browser_accessible.Receive()));
735 ASSERT_EQ(S_OK, hr); 735 ASSERT_EQ(S_OK, hr);
736 736
737 bool found = false; 737 bool found = false;
738 RecursiveFindNodeInAccessibilityTree( 738 RecursiveFindNodeInAccessibilityTree(
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
902 902
903 // Check the browser's copy of the renderer accessibility tree. 903 // Check the browser's copy of the renderer accessibility tree.
904 AccessibleChecker grouping1_checker(L"", ROLE_SYSTEM_GROUPING, L""); 904 AccessibleChecker grouping1_checker(L"", ROLE_SYSTEM_GROUPING, L"");
905 AccessibleChecker grouping2_checker(L"", ROLE_SYSTEM_GROUPING, L""); 905 AccessibleChecker grouping2_checker(L"", ROLE_SYSTEM_GROUPING, L"");
906 AccessibleChecker document_checker(L"", ROLE_SYSTEM_DOCUMENT, L""); 906 AccessibleChecker document_checker(L"", ROLE_SYSTEM_DOCUMENT, L"");
907 document_checker.AppendExpectedChild(&grouping1_checker); 907 document_checker.AppendExpectedChild(&grouping1_checker);
908 document_checker.AppendExpectedChild(&grouping2_checker); 908 document_checker.AppendExpectedChild(&grouping2_checker);
909 document_checker.CheckAccessible(GetRendererAccessible()); 909 document_checker.CheckAccessible(GetRendererAccessible());
910 } 910 }
911 } // namespace. 911 } // namespace.
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/app_controller_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698