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

Side by Side Diff: Source/core/accessibility/AXNodeObject.cpp

Issue 616553002: Revert of Add AX role ,'AXDescriptionList', for dl element. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « Source/core/accessibility/AXList.cpp ('k') | Source/core/accessibility/AXObject.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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"
37 #include "core/html/HTMLFieldSetElement.h" 36 #include "core/html/HTMLFieldSetElement.h"
38 #include "core/html/HTMLFrameElementBase.h" 37 #include "core/html/HTMLFrameElementBase.h"
39 #include "core/html/HTMLInputElement.h" 38 #include "core/html/HTMLInputElement.h"
40 #include "core/html/HTMLLabelElement.h" 39 #include "core/html/HTMLLabelElement.h"
41 #include "core/html/HTMLLegendElement.h" 40 #include "core/html/HTMLLegendElement.h"
42 #include "core/html/HTMLPlugInElement.h" 41 #include "core/html/HTMLPlugInElement.h"
43 #include "core/html/HTMLSelectElement.h" 42 #include "core/html/HTMLSelectElement.h"
44 #include "core/html/HTMLTextAreaElement.h" 43 #include "core/html/HTMLTextAreaElement.h"
45 #include "core/rendering/RenderObject.h" 44 #include "core/rendering/RenderObject.h"
46 #include "platform/UserGestureIndicator.h" 45 #include "platform/UserGestureIndicator.h"
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 if (isHTMLTextAreaElement(*node())) 213 if (isHTMLTextAreaElement(*node()))
215 return TextAreaRole; 214 return TextAreaRole;
216 if (headingLevel()) 215 if (headingLevel())
217 return HeadingRole; 216 return HeadingRole;
218 if (isHTMLDivElement(*node())) 217 if (isHTMLDivElement(*node()))
219 return DivRole; 218 return DivRole;
220 if (isHTMLParagraphElement(*node())) 219 if (isHTMLParagraphElement(*node()))
221 return ParagraphRole; 220 return ParagraphRole;
222 if (isHTMLLabelElement(*node())) 221 if (isHTMLLabelElement(*node()))
223 return LabelRole; 222 return LabelRole;
224 if (isHTMLDListElement(*node()))
225 return DescriptionListRole;
226 if (node()->isElementNode() && node()->hasTagName(figcaptionTag)) 223 if (node()->isElementNode() && node()->hasTagName(figcaptionTag))
227 return FigcaptionRole; 224 return FigcaptionRole;
228 if (node()->isElementNode() && node()->hasTagName(figureTag)) 225 if (node()->isElementNode() && node()->hasTagName(figureTag))
229 return FigureRole; 226 return FigureRole;
230 if (node()->isElementNode() && toElement(node())->isFocusable()) 227 if (node()->isElementNode() && toElement(node())->isFocusable())
231 return GroupRole; 228 return GroupRole;
232 if (isHTMLAnchorElement(*node()) && isClickable()) 229 if (isHTMLAnchorElement(*node()) && isClickable())
233 return LinkRole; 230 return LinkRole;
234 if (isHTMLIFrameElement(*node())) 231 if (isHTMLIFrameElement(*node()))
235 return IframeRole; 232 return IframeRole;
(...skipping 1463 matching lines...) Expand 10 before | Expand all | Expand 10 after
1699 float range = maxValueForRange() - minValueForRange(); 1696 float range = maxValueForRange() - minValueForRange();
1700 float value = valueForRange(); 1697 float value = valueForRange();
1701 1698
1702 value += range * (percentChange / 100); 1699 value += range * (percentChange / 100);
1703 setValue(String::number(value)); 1700 setValue(String::number(value));
1704 1701
1705 axObjectCache()->postNotification(node(), AXObjectCache::AXValueChanged, tru e); 1702 axObjectCache()->postNotification(node(), AXObjectCache::AXValueChanged, tru e);
1706 } 1703 }
1707 1704
1708 } // namespace blink 1705 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/accessibility/AXList.cpp ('k') | Source/core/accessibility/AXObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698