| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2009, 2011 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 { "listitem", ListItemRole }, | 84 { "listitem", ListItemRole }, |
| 85 { "listbox", ListBoxRole }, | 85 { "listbox", ListBoxRole }, |
| 86 { "log", LogRole }, | 86 { "log", LogRole }, |
| 87 // "option" isn't here because it may map to different roles depending o
n the parent element's role | 87 // "option" isn't here because it may map to different roles depending o
n the parent element's role |
| 88 { "main", MainRole }, | 88 { "main", MainRole }, |
| 89 { "marquee", MarqueeRole }, | 89 { "marquee", MarqueeRole }, |
| 90 { "math", MathRole }, | 90 { "math", MathRole }, |
| 91 { "menu", MenuRole }, | 91 { "menu", MenuRole }, |
| 92 { "menubar", MenuBarRole }, | 92 { "menubar", MenuBarRole }, |
| 93 { "menuitem", MenuItemRole }, | 93 { "menuitem", MenuItemRole }, |
| 94 { "menuitemcheckbox", MenuItemRole }, | 94 { "menuitemcheckbox", MenuItemCheckBoxRole }, |
| 95 { "menuitemradio", MenuItemRole }, | 95 { "menuitemradio", MenuItemRadioRole }, |
| 96 { "note", NoteRole }, | 96 { "note", NoteRole }, |
| 97 { "navigation", NavigationRole }, | 97 { "navigation", NavigationRole }, |
| 98 { "none", NoneRole }, | 98 { "none", NoneRole }, |
| 99 { "option", ListBoxOptionRole }, | 99 { "option", ListBoxOptionRole }, |
| 100 { "presentation", PresentationalRole }, | 100 { "presentation", PresentationalRole }, |
| 101 { "progressbar", ProgressIndicatorRole }, | 101 { "progressbar", ProgressIndicatorRole }, |
| 102 { "radio", RadioButtonRole }, | 102 { "radio", RadioButtonRole }, |
| 103 { "radiogroup", RadioGroupRole }, | 103 { "radiogroup", RadioGroupRole }, |
| 104 { "region", RegionRole }, | 104 { "region", RegionRole }, |
| 105 { "row", RowRole }, | 105 { "row", RowRole }, |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 } | 195 } |
| 196 } | 196 } |
| 197 | 197 |
| 198 bool AXObject::isMenuRelated() const | 198 bool AXObject::isMenuRelated() const |
| 199 { | 199 { |
| 200 switch (roleValue()) { | 200 switch (roleValue()) { |
| 201 case MenuRole: | 201 case MenuRole: |
| 202 case MenuBarRole: | 202 case MenuBarRole: |
| 203 case MenuButtonRole: | 203 case MenuButtonRole: |
| 204 case MenuItemRole: | 204 case MenuItemRole: |
| 205 case MenuItemCheckBoxRole: |
| 206 case MenuItemRadioRole: |
| 205 return true; | 207 return true; |
| 206 default: | 208 default: |
| 207 return false; | 209 return false; |
| 208 } | 210 } |
| 209 } | 211 } |
| 210 | 212 |
| 211 bool AXObject::isTextControl() const | 213 bool AXObject::isTextControl() const |
| 212 { | 214 { |
| 213 switch (roleValue()) { | 215 switch (roleValue()) { |
| 214 case TextAreaRole: | 216 case TextAreaRole: |
| (...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 894 return ToggleButtonRole; | 896 return ToggleButtonRole; |
| 895 if (ariaHasPopup()) | 897 if (ariaHasPopup()) |
| 896 return PopUpButtonRole; | 898 return PopUpButtonRole; |
| 897 // We don't contemplate RadioButtonRole, as it depends on the input | 899 // We don't contemplate RadioButtonRole, as it depends on the input |
| 898 // type. | 900 // type. |
| 899 | 901 |
| 900 return ButtonRole; | 902 return ButtonRole; |
| 901 } | 903 } |
| 902 | 904 |
| 903 } // namespace blink | 905 } // namespace blink |
| OLD | NEW |