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

Side by Side Diff: Source/modules/accessibility/AXLayoutObject.cpp

Issue 1022673003: Implementation of new roles added in ARIA 1.1 draft. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebasing change to latest Created 5 years, 9 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 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2008 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 891 matching lines...) Expand 10 before | Expand all | Expand 10 after
902 switch (roleValue()) { 902 switch (roleValue()) {
903 case ButtonRole: 903 case ButtonRole:
904 case ToggleButtonRole: 904 case ToggleButtonRole:
905 return queryString(WebLocalizedString::AXButtonActionVerb); 905 return queryString(WebLocalizedString::AXButtonActionVerb);
906 case TextFieldRole: 906 case TextFieldRole:
907 case TextAreaRole: 907 case TextAreaRole:
908 return queryString(WebLocalizedString::AXTextFieldActionVerb); 908 return queryString(WebLocalizedString::AXTextFieldActionVerb);
909 case RadioButtonRole: 909 case RadioButtonRole:
910 return queryString(WebLocalizedString::AXRadioButtonActionVerb); 910 return queryString(WebLocalizedString::AXRadioButtonActionVerb);
911 case CheckBoxRole: 911 case CheckBoxRole:
912 case SwitchRole:
912 return queryString(isChecked() ? WebLocalizedString::AXCheckedCheckBoxAc tionVerb : WebLocalizedString::AXUncheckedCheckBoxActionVerb); 913 return queryString(isChecked() ? WebLocalizedString::AXCheckedCheckBoxAc tionVerb : WebLocalizedString::AXUncheckedCheckBoxActionVerb);
913 case LinkRole: 914 case LinkRole:
914 return queryString(WebLocalizedString::AXLinkActionVerb); 915 return queryString(WebLocalizedString::AXLinkActionVerb);
915 default: 916 default:
916 return emptyString(); 917 return emptyString();
917 } 918 }
918 } 919 }
919 920
920 String AXLayoutObject::stringValue() const 921 String AXLayoutObject::stringValue() const
921 { 922 {
(...skipping 1473 matching lines...) Expand 10 before | Expand all | Expand 10 after
2395 if (label && label->layoutObject()) { 2396 if (label && label->layoutObject()) {
2396 LayoutRect labelRect = axObjectCache()->getOrCreate(label)->elementR ect(); 2397 LayoutRect labelRect = axObjectCache()->getOrCreate(label)->elementR ect();
2397 result.unite(labelRect); 2398 result.unite(labelRect);
2398 } 2399 }
2399 } 2400 }
2400 2401
2401 return result; 2402 return result;
2402 } 2403 }
2403 2404
2404 } // namespace blink 2405 } // namespace blink
OLDNEW
« no previous file with comments | « LayoutTests/accessibility/aria-fallback-roles.html ('k') | Source/modules/accessibility/AXNodeObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698