| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |