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

Side by Side Diff: ui/views/accessibility/native_view_accessibility_win_unittest.cc

Issue 2746813002: Hide AXPlatformNode on ChromeOS. (Closed)
Patch Set: has_native_accessibility Created 3 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
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ui/views/accessibility/native_view_accessibility_win.cc ('k') | ui/views/controls/tabbed_pane/tabbed_pane_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698