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

Side by Side Diff: ui/accessibility/platform/ax_platform_node_auralinux.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
« no previous file with comments | « no previous file | ui/accessibility/platform/ax_platform_node_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "ui/accessibility/platform/ax_platform_node_auralinux.h" 5 #include "ui/accessibility/platform/ax_platform_node_auralinux.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/strings/sys_string_conversions.h" 10 #include "base/strings/sys_string_conversions.h"
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 case ui::AX_ROLE_BUTTON: 416 case ui::AX_ROLE_BUTTON:
417 return ATK_ROLE_PUSH_BUTTON; 417 return ATK_ROLE_PUSH_BUTTON;
418 case ui::AX_ROLE_CHECK_BOX: 418 case ui::AX_ROLE_CHECK_BOX:
419 return ATK_ROLE_CHECK_BOX; 419 return ATK_ROLE_CHECK_BOX;
420 case ui::AX_ROLE_COMBO_BOX: 420 case ui::AX_ROLE_COMBO_BOX:
421 return ATK_ROLE_COMBO_BOX; 421 return ATK_ROLE_COMBO_BOX;
422 case ui::AX_ROLE_DIALOG: 422 case ui::AX_ROLE_DIALOG:
423 return ATK_ROLE_DIALOG; 423 return ATK_ROLE_DIALOG;
424 case ui::AX_ROLE_GROUP: 424 case ui::AX_ROLE_GROUP:
425 return ATK_ROLE_PANEL; 425 return ATK_ROLE_PANEL;
426 case ui::AX_ROLE_IGNORED:
427 return ATK_ROLE_REDUNDANT_OBJECT;
426 case ui::AX_ROLE_IMAGE: 428 case ui::AX_ROLE_IMAGE:
427 return ATK_ROLE_IMAGE; 429 return ATK_ROLE_IMAGE;
428 case ui::AX_ROLE_MENU_ITEM: 430 case ui::AX_ROLE_MENU_ITEM:
429 return ATK_ROLE_MENU_ITEM; 431 return ATK_ROLE_MENU_ITEM;
430 case ui::AX_ROLE_SCROLL_BAR: 432 case ui::AX_ROLE_SCROLL_BAR:
431 return ATK_ROLE_SCROLL_BAR; 433 return ATK_ROLE_SCROLL_BAR;
432 case ui::AX_ROLE_SLIDER: 434 case ui::AX_ROLE_SLIDER:
433 return ATK_ROLE_SLIDER; 435 return ATK_ROLE_SLIDER;
434 case ui::AX_ROLE_SPLITTER: 436 case ui::AX_ROLE_SPLITTER:
435 return ATK_ROLE_SEPARATOR; 437 return ATK_ROLE_SEPARATOR;
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 569
568 void AXPlatformNodeAuraLinux::GetSize(gint* width, gint* height) { 570 void AXPlatformNodeAuraLinux::GetSize(gint* width, gint* height) {
569 gfx::Rect rect_size = gfx::ToEnclosingRect(GetData().location); 571 gfx::Rect rect_size = gfx::ToEnclosingRect(GetData().location);
570 if (width) 572 if (width)
571 *width = rect_size.width(); 573 *width = rect_size.width();
572 if (height) 574 if (height)
573 *height = rect_size.height(); 575 *height = rect_size.height();
574 } 576 }
575 577
576 } // namespace ui 578 } // namespace ui
OLDNEW
« no previous file with comments | « no previous file | ui/accessibility/platform/ax_platform_node_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698