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 25 matching lines...) Expand all Loading... |
36 #include "core/frame/LocalFrame.h" | 36 #include "core/frame/LocalFrame.h" |
37 #include "core/rendering/RenderListItem.h" | 37 #include "core/rendering/RenderListItem.h" |
38 #include "core/rendering/RenderTheme.h" | 38 #include "core/rendering/RenderTheme.h" |
39 #include "core/rendering/RenderView.h" | 39 #include "core/rendering/RenderView.h" |
40 #include "platform/UserGestureIndicator.h" | 40 #include "platform/UserGestureIndicator.h" |
41 #include "platform/text/PlatformLocale.h" | 41 #include "platform/text/PlatformLocale.h" |
42 #include "wtf/StdLibExtras.h" | 42 #include "wtf/StdLibExtras.h" |
43 #include "wtf/text/WTFString.h" | 43 #include "wtf/text/WTFString.h" |
44 | 44 |
45 using blink::WebLocalizedString; | 45 using blink::WebLocalizedString; |
46 using namespace std; | |
47 | 46 |
48 namespace WebCore { | 47 namespace WebCore { |
49 | 48 |
50 using namespace HTMLNames; | 49 using namespace HTMLNames; |
51 | 50 |
52 typedef HashMap<String, AccessibilityRole, CaseFoldingHash> ARIARoleMap; | 51 typedef HashMap<String, AccessibilityRole, CaseFoldingHash> ARIARoleMap; |
53 | 52 |
54 struct RoleEntry { | 53 struct RoleEntry { |
55 String ariaRole; | 54 String ariaRole; |
56 AccessibilityRole webcoreRole; | 55 AccessibilityRole webcoreRole; |
(...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
917 return ToggleButtonRole; | 916 return ToggleButtonRole; |
918 if (ariaHasPopup()) | 917 if (ariaHasPopup()) |
919 return PopUpButtonRole; | 918 return PopUpButtonRole; |
920 // We don't contemplate RadioButtonRole, as it depends on the input | 919 // We don't contemplate RadioButtonRole, as it depends on the input |
921 // type. | 920 // type. |
922 | 921 |
923 return ButtonRole; | 922 return ButtonRole; |
924 } | 923 } |
925 | 924 |
926 } // namespace WebCore | 925 } // namespace WebCore |
OLD | NEW |