| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_android.h" | 5 #include "content/browser/accessibility/browser_accessibility_android.h" |
| 6 | 6 |
| 7 #include "base/i18n/break_iterator.h" | 7 #include "base/i18n/break_iterator.h" |
| 8 #include "base/strings/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.h" |
| 9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
| 10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
| (...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 558 break; | 558 break; |
| 559 case ui::AX_ROLE_BUTTON_DROP_DOWN: | 559 case ui::AX_ROLE_BUTTON_DROP_DOWN: |
| 560 message_id = IDS_AX_ROLE_BUTTON_DROP_DOWN; | 560 message_id = IDS_AX_ROLE_BUTTON_DROP_DOWN; |
| 561 break; | 561 break; |
| 562 case ui::AX_ROLE_CANVAS: | 562 case ui::AX_ROLE_CANVAS: |
| 563 // No role description. | 563 // No role description. |
| 564 break; | 564 break; |
| 565 case ui::AX_ROLE_CAPTION: | 565 case ui::AX_ROLE_CAPTION: |
| 566 // No role description. | 566 // No role description. |
| 567 break; | 567 break; |
| 568 case ui::AX_ROLE_CARET: |
| 569 // No role description. |
| 570 break; |
| 568 case ui::AX_ROLE_CELL: | 571 case ui::AX_ROLE_CELL: |
| 569 message_id = IDS_AX_ROLE_CELL; | 572 message_id = IDS_AX_ROLE_CELL; |
| 570 break; | 573 break; |
| 571 case ui::AX_ROLE_CHECK_BOX: | 574 case ui::AX_ROLE_CHECK_BOX: |
| 572 message_id = IDS_AX_ROLE_CHECK_BOX; | 575 message_id = IDS_AX_ROLE_CHECK_BOX; |
| 573 break; | 576 break; |
| 574 case ui::AX_ROLE_CLIENT: | 577 case ui::AX_ROLE_CLIENT: |
| 575 // No role description. | 578 // No role description. |
| 576 break; | 579 break; |
| 577 case ui::AX_ROLE_COLOR_WELL: | 580 case ui::AX_ROLE_COLOR_WELL: |
| (...skipping 925 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1503 int BrowserAccessibilityAndroid::CountChildrenWithRole(ui::AXRole role) const { | 1506 int BrowserAccessibilityAndroid::CountChildrenWithRole(ui::AXRole role) const { |
| 1504 int count = 0; | 1507 int count = 0; |
| 1505 for (uint32_t i = 0; i < PlatformChildCount(); i++) { | 1508 for (uint32_t i = 0; i < PlatformChildCount(); i++) { |
| 1506 if (PlatformGetChild(i)->GetRole() == role) | 1509 if (PlatformGetChild(i)->GetRole() == role) |
| 1507 count++; | 1510 count++; |
| 1508 } | 1511 } |
| 1509 return count; | 1512 return count; |
| 1510 } | 1513 } |
| 1511 | 1514 |
| 1512 } // namespace content | 1515 } // namespace content |
| OLD | NEW |