| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "content/browser/accessibility/browser_accessibility_auralinux.h" | 5 #include "content/browser/accessibility/browser_accessibility_auralinux.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 #include <string.h> | 8 #include <string.h> |
| 9 | 9 |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| (...skipping 932 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 943 break; | 943 break; |
| 944 case ui::AX_ROLE_TEXT_FIELD: | 944 case ui::AX_ROLE_TEXT_FIELD: |
| 945 atk_role_ = ATK_ROLE_ENTRY; | 945 atk_role_ = ATK_ROLE_ENTRY; |
| 946 break; | 946 break; |
| 947 case ui::AX_ROLE_TREE: | 947 case ui::AX_ROLE_TREE: |
| 948 atk_role_ = ATK_ROLE_TREE; | 948 atk_role_ = ATK_ROLE_TREE; |
| 949 break; | 949 break; |
| 950 case ui::AX_ROLE_TREE_ITEM: | 950 case ui::AX_ROLE_TREE_ITEM: |
| 951 atk_role_ = ATK_ROLE_TREE_ITEM; | 951 atk_role_ = ATK_ROLE_TREE_ITEM; |
| 952 break; | 952 break; |
| 953 case ui::AX_ROLE_TREE_GRID: |
| 954 atk_role_ = ATK_ROLE_TREE_TABLE; |
| 955 break; |
| 953 case ui::AX_ROLE_VIDEO: | 956 case ui::AX_ROLE_VIDEO: |
| 954 #if defined(ATK_CHECK_VERSION) | 957 #if defined(ATK_CHECK_VERSION) |
| 955 #if ATK_CHECK_VERSION(2, 12, 0) | 958 #if ATK_CHECK_VERSION(2, 12, 0) |
| 956 atk_role_ = ATK_ROLE_VIDEO; | 959 atk_role_ = ATK_ROLE_VIDEO; |
| 957 #else | 960 #else |
| 958 atk_role_ = ATK_ROLE_SECTION; | 961 atk_role_ = ATK_ROLE_SECTION; |
| 959 #endif | 962 #endif |
| 960 #else | 963 #else |
| 961 atk_role_ = ATK_ROLE_SECTION; | 964 atk_role_ = ATK_ROLE_SECTION; |
| 962 #endif | 965 #endif |
| 963 break; | 966 break; |
| 964 default: | 967 default: |
| 965 atk_role_ = ATK_ROLE_UNKNOWN; | 968 atk_role_ = ATK_ROLE_UNKNOWN; |
| 966 break; | 969 break; |
| 967 } | 970 } |
| 968 } | 971 } |
| 969 | 972 |
| 970 } // namespace content | 973 } // namespace content |
| OLD | NEW |