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

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

Issue 2781613003: Added a class acting as a fake caret for accessibility. (Closed)
Patch Set: Fixed compilation error due to rebase. Created 3 years, 7 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 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 break; 473 break;
474 case ui::AX_ROLE_BUTTON_DROP_DOWN: 474 case ui::AX_ROLE_BUTTON_DROP_DOWN:
475 message_id = IDS_AX_ROLE_BUTTON_DROP_DOWN; 475 message_id = IDS_AX_ROLE_BUTTON_DROP_DOWN;
476 break; 476 break;
477 case ui::AX_ROLE_CANVAS: 477 case ui::AX_ROLE_CANVAS:
478 // No role description. 478 // No role description.
479 break; 479 break;
480 case ui::AX_ROLE_CAPTION: 480 case ui::AX_ROLE_CAPTION:
481 // No role description. 481 // No role description.
482 break; 482 break;
483 case ui::AX_ROLE_CARET:
484 // No role description.
485 break;
483 case ui::AX_ROLE_CELL: 486 case ui::AX_ROLE_CELL:
484 message_id = IDS_AX_ROLE_CELL; 487 message_id = IDS_AX_ROLE_CELL;
485 break; 488 break;
486 case ui::AX_ROLE_CHECK_BOX: 489 case ui::AX_ROLE_CHECK_BOX:
487 message_id = IDS_AX_ROLE_CHECK_BOX; 490 message_id = IDS_AX_ROLE_CHECK_BOX;
488 break; 491 break;
489 case ui::AX_ROLE_CLIENT: 492 case ui::AX_ROLE_CLIENT:
490 // No role description. 493 // No role description.
491 break; 494 break;
492 case ui::AX_ROLE_COLOR_WELL: 495 case ui::AX_ROLE_COLOR_WELL:
(...skipping 923 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
« no previous file with comments | « chrome/common/extensions/api/automation.idl ('k') | content/browser/accessibility/browser_accessibility_manager_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698