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

Side by Side Diff: ui/accessibility/platform/test_ax_node_wrapper.h

Issue 2119413004: a11y: Exclude children of nested keyboard accessible controls from a11y tree. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile error and final test in NativeWidgetMacTest. Created 4 years, 2 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef UI_ACCESSIBILITY_PLATFORM_TEST_AX_NODE_WRAPPER_H_ 5 #ifndef UI_ACCESSIBILITY_PLATFORM_TEST_AX_NODE_WRAPPER_H_
6 #define UI_ACCESSIBILITY_PLATFORM_TEST_AX_NODE_WRAPPER_H_ 6 #define UI_ACCESSIBILITY_PLATFORM_TEST_AX_NODE_WRAPPER_H_
7 7
8 #include "ui/accessibility/ax_node.h" 8 #include "ui/accessibility/ax_node.h"
9 #include "ui/accessibility/ax_tree.h" 9 #include "ui/accessibility/ax_tree.h"
10 #include "ui/accessibility/platform/ax_platform_node.h" 10 #include "ui/accessibility/platform/ax_platform_node.h"
(...skipping 19 matching lines...) Expand all
30 30
31 // AXPlatformNodeDelegate. 31 // AXPlatformNodeDelegate.
32 const AXNodeData& GetData() override; 32 const AXNodeData& GetData() override;
33 gfx::NativeWindow GetTopLevelWidget() override; 33 gfx::NativeWindow GetTopLevelWidget() override;
34 gfx::NativeViewAccessible GetParent() override; 34 gfx::NativeViewAccessible GetParent() override;
35 int GetChildCount() override; 35 int GetChildCount() override;
36 gfx::NativeViewAccessible ChildAtIndex(int index) override; 36 gfx::NativeViewAccessible ChildAtIndex(int index) override;
37 gfx::Vector2d GetGlobalCoordinateOffset() override; 37 gfx::Vector2d GetGlobalCoordinateOffset() override;
38 gfx::NativeViewAccessible HitTestSync(int x, int y) override; 38 gfx::NativeViewAccessible HitTestSync(int x, int y) override;
39 gfx::NativeViewAccessible GetFocus() override; 39 gfx::NativeViewAccessible GetFocus() override;
40 bool IsIgnored() override;
40 gfx::AcceleratedWidget GetTargetForNativeAccessibilityEvent() override; 41 gfx::AcceleratedWidget GetTargetForNativeAccessibilityEvent() override;
41 void DoDefaultAction() override; 42 void DoDefaultAction() override;
42 bool SetStringValue(const base::string16& new_value) override; 43 bool SetStringValue(const base::string16& new_value) override;
43 bool CanSetStringValue() override; 44 bool CanSetStringValue() override;
44 45
45 private: 46 private:
46 TestAXNodeWrapper(AXTree* tree, AXNode* node); 47 TestAXNodeWrapper(AXTree* tree, AXNode* node);
47 48
48 AXTree* tree_; 49 AXTree* tree_;
49 AXNode* node_; 50 AXNode* node_;
50 AXPlatformNode* platform_node_; 51 AXPlatformNode* platform_node_;
51 }; 52 };
52 53
53 } // namespace ui 54 } // namespace ui
54 55
55 #endif // UI_ACCESSIBILITY_PLATFORM_TEST_AX_NODE_WRAPPER_H_ 56 #endif // UI_ACCESSIBILITY_PLATFORM_TEST_AX_NODE_WRAPPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698