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

Side by Side Diff: ui/accessibility/platform/ax_platform_node_win.cc

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: Linting & review comments. Created 3 years, 6 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 #include <atlbase.h> 5 #include <atlbase.h>
6 #include <atlcom.h> 6 #include <atlcom.h>
7 #include <limits.h> 7 #include <limits.h>
8 #include <oleacc.h> 8 #include <oleacc.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 1100 matching lines...) Expand 10 before | Expand all | Expand 10 after
1111 if (state & (1 << ui::AX_STATE_DEFAULT)) 1111 if (state & (1 << ui::AX_STATE_DEFAULT))
1112 msaa_state |= STATE_SYSTEM_DEFAULT; 1112 msaa_state |= STATE_SYSTEM_DEFAULT;
1113 if (state & (1 << ui::AX_STATE_EXPANDED)) 1113 if (state & (1 << ui::AX_STATE_EXPANDED))
1114 msaa_state |= STATE_SYSTEM_EXPANDED; 1114 msaa_state |= STATE_SYSTEM_EXPANDED;
1115 if (state & (1 << ui::AX_STATE_FOCUSABLE)) 1115 if (state & (1 << ui::AX_STATE_FOCUSABLE))
1116 msaa_state |= STATE_SYSTEM_FOCUSABLE; 1116 msaa_state |= STATE_SYSTEM_FOCUSABLE;
1117 if (state & (1 << ui::AX_STATE_HASPOPUP)) 1117 if (state & (1 << ui::AX_STATE_HASPOPUP))
1118 msaa_state |= STATE_SYSTEM_HASPOPUP; 1118 msaa_state |= STATE_SYSTEM_HASPOPUP;
1119 if (state & (1 << ui::AX_STATE_HOVERED)) 1119 if (state & (1 << ui::AX_STATE_HOVERED))
1120 msaa_state |= STATE_SYSTEM_HOTTRACKED; 1120 msaa_state |= STATE_SYSTEM_HOTTRACKED;
1121 if (state & (1 << ui::AX_STATE_INVISIBLE)) 1121 if (state & (1 << ui::AX_STATE_INVISIBLE) ||
1122 GetData().role == ui::AX_ROLE_IGNORED) {
1122 msaa_state |= STATE_SYSTEM_INVISIBLE; 1123 msaa_state |= STATE_SYSTEM_INVISIBLE;
1124 }
1123 if (state & (1 << ui::AX_STATE_LINKED)) 1125 if (state & (1 << ui::AX_STATE_LINKED))
1124 msaa_state |= STATE_SYSTEM_LINKED; 1126 msaa_state |= STATE_SYSTEM_LINKED;
1125 if (state & (1 << ui::AX_STATE_OFFSCREEN)) 1127 if (state & (1 << ui::AX_STATE_OFFSCREEN))
1126 msaa_state |= STATE_SYSTEM_OFFSCREEN; 1128 msaa_state |= STATE_SYSTEM_OFFSCREEN;
1127 if (state & (1 << ui::AX_STATE_PRESSED)) 1129 if (state & (1 << ui::AX_STATE_PRESSED))
1128 msaa_state |= STATE_SYSTEM_PRESSED; 1130 msaa_state |= STATE_SYSTEM_PRESSED;
1129 if (state & (1 << ui::AX_STATE_PROTECTED)) 1131 if (state & (1 << ui::AX_STATE_PROTECTED))
1130 msaa_state |= STATE_SYSTEM_PROTECTED; 1132 msaa_state |= STATE_SYSTEM_PROTECTED;
1131 if (state & (1 << ui::AX_STATE_READ_ONLY)) 1133 if (state & (1 << ui::AX_STATE_READ_ONLY))
1132 msaa_state |= STATE_SYSTEM_READONLY; 1134 msaa_state |= STATE_SYSTEM_READONLY;
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
1290 1292
1291 AXPlatformNodeBase* base = 1293 AXPlatformNodeBase* base =
1292 FromNativeViewAccessible(node->GetNativeViewAccessible()); 1294 FromNativeViewAccessible(node->GetNativeViewAccessible());
1293 if (base && !IsDescendant(base)) 1295 if (base && !IsDescendant(base))
1294 base = nullptr; 1296 base = nullptr;
1295 1297
1296 return static_cast<AXPlatformNodeWin*>(base); 1298 return static_cast<AXPlatformNodeWin*>(base);
1297 } 1299 }
1298 1300
1299 } // namespace ui 1301 } // namespace ui
OLDNEW
« no previous file with comments | « ui/accessibility/platform/ax_platform_node_mac.mm ('k') | ui/views/accessibility/native_view_accessibility_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698