Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(487)

Side by Side Diff: content/browser/accessibility/browser_accessibility_android.cc

Issue 2918483002: Add an accessibility description for notification (Closed)
Patch Set: Fixed build failure Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 658 matching lines...) Expand 10 before | Expand all | Expand 10 after
669 break; 669 break;
670 case ui::AX_ROLE_METER: 670 case ui::AX_ROLE_METER:
671 message_id = IDS_AX_ROLE_METER; 671 message_id = IDS_AX_ROLE_METER;
672 break; 672 break;
673 case ui::AX_ROLE_NAVIGATION: 673 case ui::AX_ROLE_NAVIGATION:
674 message_id = IDS_AX_ROLE_NAVIGATIONAL_LINK; 674 message_id = IDS_AX_ROLE_NAVIGATIONAL_LINK;
675 break; 675 break;
676 case ui::AX_ROLE_NOTE: 676 case ui::AX_ROLE_NOTE:
677 message_id = IDS_AX_ROLE_NOTE; 677 message_id = IDS_AX_ROLE_NOTE;
678 break; 678 break;
679 case ui::AX_ROLE_NOTIFICATION:
680 // No role description.
681 break;
679 case ui::AX_ROLE_OUTLINE: 682 case ui::AX_ROLE_OUTLINE:
680 message_id = IDS_AX_ROLE_OUTLINE; 683 message_id = IDS_AX_ROLE_OUTLINE;
681 break; 684 break;
682 case ui::AX_ROLE_PANE: 685 case ui::AX_ROLE_PANE:
683 // No role description. 686 // No role description.
684 break; 687 break;
685 case ui::AX_ROLE_PARAGRAPH: 688 case ui::AX_ROLE_PARAGRAPH:
686 // No role description. 689 // No role description.
687 break; 690 break;
688 case ui::AX_ROLE_POP_UP_BUTTON: 691 case ui::AX_ROLE_POP_UP_BUTTON:
(...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after
1416 int BrowserAccessibilityAndroid::CountChildrenWithRole(ui::AXRole role) const { 1419 int BrowserAccessibilityAndroid::CountChildrenWithRole(ui::AXRole role) const {
1417 int count = 0; 1420 int count = 0;
1418 for (uint32_t i = 0; i < PlatformChildCount(); i++) { 1421 for (uint32_t i = 0; i < PlatformChildCount(); i++) {
1419 if (PlatformGetChild(i)->GetRole() == role) 1422 if (PlatformGetChild(i)->GetRole() == role)
1420 count++; 1423 count++;
1421 } 1424 }
1422 return count; 1425 return count;
1423 } 1426 }
1424 1427
1425 } // namespace content 1428 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698