OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |