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 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
522 switch (GetRole()) { | 522 switch (GetRole()) { |
523 case ui::AX_ROLE_ABBR: | 523 case ui::AX_ROLE_ABBR: |
524 // No role description. | 524 // No role description. |
525 break; | 525 break; |
526 case ui::AX_ROLE_ALERT_DIALOG: | 526 case ui::AX_ROLE_ALERT_DIALOG: |
527 message_id = IDS_AX_ROLE_ALERT_DIALOG; | 527 message_id = IDS_AX_ROLE_ALERT_DIALOG; |
528 break; | 528 break; |
529 case ui::AX_ROLE_ALERT: | 529 case ui::AX_ROLE_ALERT: |
530 message_id = IDS_AX_ROLE_ALERT; | 530 message_id = IDS_AX_ROLE_ALERT; |
531 break; | 531 break; |
| 532 case ui::AX_ROLE_ANCHOR: |
| 533 // No role description. |
| 534 break; |
532 case ui::AX_ROLE_ANNOTATION: | 535 case ui::AX_ROLE_ANNOTATION: |
533 // No role description. | 536 // No role description. |
534 break; | 537 break; |
535 case ui::AX_ROLE_APPLICATION: | 538 case ui::AX_ROLE_APPLICATION: |
536 message_id = IDS_AX_ROLE_APPLICATION; | 539 message_id = IDS_AX_ROLE_APPLICATION; |
537 break; | 540 break; |
538 case ui::AX_ROLE_ARTICLE: | 541 case ui::AX_ROLE_ARTICLE: |
539 message_id = IDS_AX_ROLE_ARTICLE; | 542 message_id = IDS_AX_ROLE_ARTICLE; |
540 break; | 543 break; |
541 case ui::AX_ROLE_AUDIO: | 544 case ui::AX_ROLE_AUDIO: |
(...skipping 958 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1500 int BrowserAccessibilityAndroid::CountChildrenWithRole(ui::AXRole role) const { | 1503 int BrowserAccessibilityAndroid::CountChildrenWithRole(ui::AXRole role) const { |
1501 int count = 0; | 1504 int count = 0; |
1502 for (uint32_t i = 0; i < PlatformChildCount(); i++) { | 1505 for (uint32_t i = 0; i < PlatformChildCount(); i++) { |
1503 if (PlatformGetChild(i)->GetRole() == role) | 1506 if (PlatformGetChild(i)->GetRole() == role) |
1504 count++; | 1507 count++; |
1505 } | 1508 } |
1506 return count; | 1509 return count; |
1507 } | 1510 } |
1508 | 1511 |
1509 } // namespace content | 1512 } // namespace content |
OLD | NEW |