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

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

Issue 2690473002: Android/a11y: Add string for a11y "feed" role. (Closed)
Patch Set: Remove spelling fixes Created 3 years, 10 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
« no previous file with comments | « content/app/strings/content_strings.grd ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 612 matching lines...) Expand 10 before | Expand all | Expand 10 after
623 case ui::AX_ROLE_DIV: 623 case ui::AX_ROLE_DIV:
624 // No role description. 624 // No role description.
625 break; 625 break;
626 case ui::AX_ROLE_DOCUMENT: 626 case ui::AX_ROLE_DOCUMENT:
627 message_id = IDS_AX_ROLE_DOCUMENT; 627 message_id = IDS_AX_ROLE_DOCUMENT;
628 break; 628 break;
629 case ui::AX_ROLE_EMBEDDED_OBJECT: 629 case ui::AX_ROLE_EMBEDDED_OBJECT:
630 message_id = IDS_AX_ROLE_EMBEDDED_OBJECT; 630 message_id = IDS_AX_ROLE_EMBEDDED_OBJECT;
631 break; 631 break;
632 case ui::AX_ROLE_FEED: 632 case ui::AX_ROLE_FEED:
633 // TODO(patricialor): Add a string for this role. 633 message_id = IDS_AX_ROLE_FEED;
634 break; 634 break;
635 case ui::AX_ROLE_FIGCAPTION: 635 case ui::AX_ROLE_FIGCAPTION:
636 // No role description. 636 // No role description.
637 break; 637 break;
638 case ui::AX_ROLE_FIGURE: 638 case ui::AX_ROLE_FIGURE:
639 message_id = IDS_AX_ROLE_GRAPHIC; 639 message_id = IDS_AX_ROLE_GRAPHIC;
640 break; 640 break;
641 case ui::AX_ROLE_FOOTER: 641 case ui::AX_ROLE_FOOTER:
642 message_id = IDS_AX_ROLE_FOOTER; 642 message_id = IDS_AX_ROLE_FOOTER;
643 break; 643 break;
(...skipping 854 matching lines...) Expand 10 before | Expand all | Expand 10 after
1498 int BrowserAccessibilityAndroid::CountChildrenWithRole(ui::AXRole role) const { 1498 int BrowserAccessibilityAndroid::CountChildrenWithRole(ui::AXRole role) const {
1499 int count = 0; 1499 int count = 0;
1500 for (uint32_t i = 0; i < PlatformChildCount(); i++) { 1500 for (uint32_t i = 0; i < PlatformChildCount(); i++) {
1501 if (PlatformGetChild(i)->GetRole() == role) 1501 if (PlatformGetChild(i)->GetRole() == role)
1502 count++; 1502 count++;
1503 } 1503 }
1504 return count; 1504 return count;
1505 } 1505 }
1506 1506
1507 } // namespace content 1507 } // namespace content
OLDNEW
« no previous file with comments | « content/app/strings/content_strings.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698