OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012, Google Inc. All rights reserved. | 2 * Copyright (C) 2012, Google 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 15 matching lines...) Expand all Loading... |
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 */ | 27 */ |
28 | 28 |
29 #include "config.h" | 29 #include "config.h" |
30 #include "core/accessibility/AXNodeObject.h" | 30 #include "core/accessibility/AXNodeObject.h" |
31 | 31 |
32 #include "core/InputTypeNames.h" | 32 #include "core/InputTypeNames.h" |
33 #include "core/accessibility/AXObjectCache.h" | 33 #include "core/accessibility/AXObjectCache.h" |
34 #include "core/dom/NodeTraversal.h" | 34 #include "core/dom/NodeTraversal.h" |
35 #include "core/dom/Text.h" | 35 #include "core/dom/Text.h" |
| 36 #include "core/html/HTMLDListElement.h" |
36 #include "core/html/HTMLFieldSetElement.h" | 37 #include "core/html/HTMLFieldSetElement.h" |
37 #include "core/html/HTMLFrameElementBase.h" | 38 #include "core/html/HTMLFrameElementBase.h" |
38 #include "core/html/HTMLInputElement.h" | 39 #include "core/html/HTMLInputElement.h" |
39 #include "core/html/HTMLLabelElement.h" | 40 #include "core/html/HTMLLabelElement.h" |
40 #include "core/html/HTMLLegendElement.h" | 41 #include "core/html/HTMLLegendElement.h" |
41 #include "core/html/HTMLPlugInElement.h" | 42 #include "core/html/HTMLPlugInElement.h" |
42 #include "core/html/HTMLSelectElement.h" | 43 #include "core/html/HTMLSelectElement.h" |
43 #include "core/html/HTMLTextAreaElement.h" | 44 #include "core/html/HTMLTextAreaElement.h" |
44 #include "core/rendering/RenderObject.h" | 45 #include "core/rendering/RenderObject.h" |
45 #include "platform/UserGestureIndicator.h" | 46 #include "platform/UserGestureIndicator.h" |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 if (isHTMLTextAreaElement(*node())) | 239 if (isHTMLTextAreaElement(*node())) |
239 return TextAreaRole; | 240 return TextAreaRole; |
240 if (headingLevel()) | 241 if (headingLevel()) |
241 return HeadingRole; | 242 return HeadingRole; |
242 if (isHTMLDivElement(*node())) | 243 if (isHTMLDivElement(*node())) |
243 return DivRole; | 244 return DivRole; |
244 if (isHTMLParagraphElement(*node())) | 245 if (isHTMLParagraphElement(*node())) |
245 return ParagraphRole; | 246 return ParagraphRole; |
246 if (isHTMLLabelElement(*node())) | 247 if (isHTMLLabelElement(*node())) |
247 return LabelRole; | 248 return LabelRole; |
| 249 if (isHTMLDListElement(*node())) |
| 250 return DescriptionListRole; |
248 if (node()->isElementNode() && node()->hasTagName(figcaptionTag)) | 251 if (node()->isElementNode() && node()->hasTagName(figcaptionTag)) |
249 return FigcaptionRole; | 252 return FigcaptionRole; |
250 if (node()->isElementNode() && node()->hasTagName(figureTag)) | 253 if (node()->isElementNode() && node()->hasTagName(figureTag)) |
251 return FigureRole; | 254 return FigureRole; |
252 if (node()->isElementNode() && toElement(node())->isFocusable()) | 255 if (node()->isElementNode() && toElement(node())->isFocusable()) |
253 return GroupRole; | 256 return GroupRole; |
254 if (isHTMLAnchorElement(*node()) && isClickable()) | 257 if (isHTMLAnchorElement(*node()) && isClickable()) |
255 return LinkRole; | 258 return LinkRole; |
256 if (isHTMLIFrameElement(*node())) | 259 if (isHTMLIFrameElement(*node())) |
257 return IframeRole; | 260 return IframeRole; |
(...skipping 1463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1721 float range = maxValueForRange() - minValueForRange(); | 1724 float range = maxValueForRange() - minValueForRange(); |
1722 float value = valueForRange(); | 1725 float value = valueForRange(); |
1723 | 1726 |
1724 value += range * (percentChange / 100); | 1727 value += range * (percentChange / 100); |
1725 setValue(String::number(value)); | 1728 setValue(String::number(value)); |
1726 | 1729 |
1727 axObjectCache()->postNotification(node(), AXObjectCache::AXValueChanged, tru
e); | 1730 axObjectCache()->postNotification(node(), AXObjectCache::AXValueChanged, tru
e); |
1728 } | 1731 } |
1729 | 1732 |
1730 } // namespace blink | 1733 } // namespace blink |
OLD | NEW |