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: | |
dmazzoni
2017/05/01 16:00:34
Same - revert this change
| |
569 // No role description. | |
570 break; | |
571 case ui::AX_ROLE_CELL: | 568 case ui::AX_ROLE_CELL: |
572 message_id = IDS_AX_ROLE_CELL; | 569 message_id = IDS_AX_ROLE_CELL; |
573 break; | 570 break; |
574 case ui::AX_ROLE_CHECK_BOX: | 571 case ui::AX_ROLE_CHECK_BOX: |
575 message_id = IDS_AX_ROLE_CHECK_BOX; | 572 message_id = IDS_AX_ROLE_CHECK_BOX; |
576 break; | 573 break; |
577 case ui::AX_ROLE_CLIENT: | 574 case ui::AX_ROLE_CLIENT: |
578 // No role description. | 575 // No role description. |
579 break; | 576 break; |
580 case ui::AX_ROLE_COLOR_WELL: | 577 case ui::AX_ROLE_COLOR_WELL: |
(...skipping 925 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1506 int BrowserAccessibilityAndroid::CountChildrenWithRole(ui::AXRole role) const { | 1503 int BrowserAccessibilityAndroid::CountChildrenWithRole(ui::AXRole role) const { |
1507 int count = 0; | 1504 int count = 0; |
1508 for (uint32_t i = 0; i < PlatformChildCount(); i++) { | 1505 for (uint32_t i = 0; i < PlatformChildCount(); i++) { |
1509 if (PlatformGetChild(i)->GetRole() == role) | 1506 if (PlatformGetChild(i)->GetRole() == role) |
1510 count++; | 1507 count++; |
1511 } | 1508 } |
1512 return count; | 1509 return count; |
1513 } | 1510 } |
1514 | 1511 |
1515 } // namespace content | 1512 } // namespace content |
OLD | NEW |