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/accessibility/ax_enums.h" |
11 #include "ui/views/accessibility/native_view_accessibility.h" | 12 #include "ui/views/accessibility/native_view_accessibility.h" |
12 #include "ui/views/controls/textfield/textfield.h" | 13 #include "ui/views/controls/textfield/textfield.h" |
13 #include "ui/views/test/views_test_base.h" | 14 #include "ui/views/test/views_test_base.h" |
14 | 15 |
15 using base::win::ScopedBstr; | 16 using base::win::ScopedBstr; |
16 using base::win::ScopedComPtr; | 17 using base::win::ScopedComPtr; |
17 using base::win::ScopedVariant; | 18 using base::win::ScopedVariant; |
18 | 19 |
19 namespace views { | 20 namespace views { |
20 namespace test { | 21 namespace test { |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 delete infobar; | 204 delete infobar; |
204 ASSERT_EQ(S_OK, root_view_accessible->get_relationTargetsOfType( | 205 ASSERT_EQ(S_OK, root_view_accessible->get_relationTargetsOfType( |
205 alerts_bstr, 0, &targets, &n_targets)); | 206 alerts_bstr, 0, &targets, &n_targets)); |
206 ASSERT_EQ(1, n_targets); | 207 ASSERT_EQ(1, n_targets); |
207 ASSERT_TRUE(infobar2_accessible.IsSameObject(targets[0])); | 208 ASSERT_TRUE(infobar2_accessible.IsSameObject(targets[0])); |
208 CoTaskMemFree(targets); | 209 CoTaskMemFree(targets); |
209 } | 210 } |
210 | 211 |
211 } // namespace test | 212 } // namespace test |
212 } // namespace views | 213 } // namespace views |
OLD | NEW |