| OLD | NEW |
| 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 <vector> | 5 #include <vector> |
| 6 | 6 |
| 7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
| 8 #include "base/strings/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.h" |
| 9 #include "base/strings/sys_string_conversions.h" | 9 #include "base/strings/sys_string_conversions.h" |
| 10 #include "base/win/scoped_bstr.h" | 10 #include "base/win/scoped_bstr.h" |
| (...skipping 853 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 864 | 864 |
| 865 bool found = false; | 865 bool found = false; |
| 866 FindNodeInAccessibilityTree( | 866 FindNodeInAccessibilityTree( |
| 867 browser_accessible.get(), ROLE_SYSTEM_DOCUMENT, L"MyDocument", 0, &found); | 867 browser_accessible.get(), ROLE_SYSTEM_DOCUMENT, L"MyDocument", 0, &found); |
| 868 ASSERT_EQ(found, true); | 868 ASSERT_EQ(found, true); |
| 869 } | 869 } |
| 870 | 870 |
| 871 IN_PROC_BROWSER_TEST_F(AccessibilityWinBrowserTest, | 871 IN_PROC_BROWSER_TEST_F(AccessibilityWinBrowserTest, |
| 872 SupportsISimpleDOM) { | 872 SupportsISimpleDOM) { |
| 873 LoadInitialAccessibilityTreeFromHtml( | 873 LoadInitialAccessibilityTreeFromHtml( |
| 874 "<body><input type='checkbox' /></body>"); | 874 "<body><input type='checkbox'></body>"); |
| 875 | 875 |
| 876 // Get the IAccessible object for the document. | 876 // Get the IAccessible object for the document. |
| 877 base::win::ScopedComPtr<IAccessible> document_accessible( | 877 base::win::ScopedComPtr<IAccessible> document_accessible( |
| 878 GetRendererAccessible()); | 878 GetRendererAccessible()); |
| 879 ASSERT_NE(document_accessible.get(), reinterpret_cast<IAccessible*>(NULL)); | 879 ASSERT_NE(document_accessible.get(), reinterpret_cast<IAccessible*>(NULL)); |
| 880 | 880 |
| 881 // Get the ISimpleDOM object for the document. | 881 // Get the ISimpleDOM object for the document. |
| 882 base::win::ScopedComPtr<IServiceProvider> service_provider; | 882 base::win::ScopedComPtr<IServiceProvider> service_provider; |
| 883 HRESULT hr = static_cast<IAccessible*>(document_accessible.get()) | 883 HRESULT hr = static_cast<IAccessible*>(document_accessible.get()) |
| 884 ->QueryInterface(service_provider.Receive()); | 884 ->QueryInterface(service_provider.Receive()); |
| (...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1461 IN_PROC_BROWSER_TEST_F(AccessibilityWinBrowserTest, | 1461 IN_PROC_BROWSER_TEST_F(AccessibilityWinBrowserTest, |
| 1462 TestMultiLineTextAtOffsetWithBoundaryAll) { | 1462 TestMultiLineTextAtOffsetWithBoundaryAll) { |
| 1463 base::win::ScopedComPtr<IAccessibleText> textarea_text; | 1463 base::win::ScopedComPtr<IAccessibleText> textarea_text; |
| 1464 SetUpTextareaField(&textarea_text); | 1464 SetUpTextareaField(&textarea_text); |
| 1465 | 1465 |
| 1466 CheckTextAtOffset(textarea_text, CONTENTS_LENGTH - 1, IA2_TEXT_BOUNDARY_ALL, | 1466 CheckTextAtOffset(textarea_text, CONTENTS_LENGTH - 1, IA2_TEXT_BOUNDARY_ALL, |
| 1467 0, CONTENTS_LENGTH, base::SysUTF8ToWide(TEXTAREA_CONTENTS)); | 1467 0, CONTENTS_LENGTH, base::SysUTF8ToWide(TEXTAREA_CONTENTS)); |
| 1468 } | 1468 } |
| 1469 | 1469 |
| 1470 } // namespace content | 1470 } // namespace content |
| OLD | NEW |