| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 <oleacc.h> | 5 #include <oleacc.h> |
| 6 | 6 |
| 7 #include "base/win/scoped_bstr.h" | 7 #include "base/win/scoped_bstr.h" |
| 8 #include "base/win/scoped_comptr.h" | 8 #include "base/win/scoped_comptr.h" |
| 9 #include "base/win/scoped_variant.h" | 9 #include "base/win/scoped_variant.h" |
| 10 #include "third_party/iaccessible2/ia2_api_all.h" | 10 #include "third_party/iaccessible2/ia2_api_all.h" |
| 11 #include "ui/views/accessibility/native_view_accessibility.h" | 11 #include "ui/views/accessibility/native_view_accessibility_base.h" |
| 12 #include "ui/views/controls/textfield/textfield.h" | 12 #include "ui/views/controls/textfield/textfield.h" |
| 13 #include "ui/views/test/views_test_base.h" | 13 #include "ui/views/test/views_test_base.h" |
| 14 | 14 |
| 15 using base::win::ScopedBstr; | 15 using base::win::ScopedBstr; |
| 16 using base::win::ScopedComPtr; | 16 using base::win::ScopedComPtr; |
| 17 using base::win::ScopedVariant; | 17 using base::win::ScopedVariant; |
| 18 | 18 |
| 19 namespace views { | 19 namespace views { |
| 20 namespace test { | 20 namespace test { |
| 21 | 21 |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 | 219 |
| 220 LONG child_count = 0; | 220 LONG child_count = 0; |
| 221 ScopedComPtr<IAccessible> content_accessible( | 221 ScopedComPtr<IAccessible> content_accessible( |
| 222 widget.GetRootView()->GetNativeViewAccessible()); | 222 widget.GetRootView()->GetNativeViewAccessible()); |
| 223 EXPECT_EQ(S_OK, content_accessible->get_accChildCount(&child_count)); | 223 EXPECT_EQ(S_OK, content_accessible->get_accChildCount(&child_count)); |
| 224 EXPECT_EQ(1L, child_count); | 224 EXPECT_EQ(1L, child_count); |
| 225 } | 225 } |
| 226 | 226 |
| 227 } // namespace test | 227 } // namespace test |
| 228 } // namespace views | 228 } // namespace views |
| OLD | NEW |