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

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

Issue 515843002: Adds accessibility role for figure tag and handles its children as a group. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: added role for some case without renderer Created 6 years, 3 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 | « no previous file | 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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 if (isHTMLTextAreaElement(*node())) 214 if (isHTMLTextAreaElement(*node()))
215 return TextAreaRole; 215 return TextAreaRole;
216 if (headingLevel()) 216 if (headingLevel())
217 return HeadingRole; 217 return HeadingRole;
218 if (isHTMLDivElement(*node())) 218 if (isHTMLDivElement(*node()))
219 return DivRole; 219 return DivRole;
220 if (isHTMLParagraphElement(*node())) 220 if (isHTMLParagraphElement(*node()))
221 return ParagraphRole; 221 return ParagraphRole;
222 if (isHTMLLabelElement(*node())) 222 if (isHTMLLabelElement(*node()))
223 return LabelRole; 223 return LabelRole;
224 if (node()->isElementNode() && node()->hasTagName(figureTag))
225 return FigureRole;
224 if (node()->isElementNode() && toElement(node())->isFocusable()) 226 if (node()->isElementNode() && toElement(node())->isFocusable())
225 return GroupRole; 227 return GroupRole;
226 if (isHTMLAnchorElement(*node()) && isClickable()) 228 if (isHTMLAnchorElement(*node()) && isClickable())
227 return LinkRole; 229 return LinkRole;
228 if (isHTMLIFrameElement(*node())) 230 if (isHTMLIFrameElement(*node()))
229 return IframeRole; 231 return IframeRole;
230 if (isEmbeddedObject()) 232 if (isEmbeddedObject())
231 return EmbeddedObjectRole; 233 return EmbeddedObjectRole;
232 234
233 return UnknownRole; 235 return UnknownRole;
(...skipping 1461 matching lines...) Expand 10 before | Expand all | Expand 10 after
1695 float range = maxValueForRange() - minValueForRange(); 1697 float range = maxValueForRange() - minValueForRange();
1696 float value = valueForRange(); 1698 float value = valueForRange();
1697 1699
1698 value += range * (percentChange / 100); 1700 value += range * (percentChange / 100);
1699 setValue(String::number(value)); 1701 setValue(String::number(value));
1700 1702
1701 axObjectCache()->postNotification(node(), AXObjectCache::AXValueChanged, tru e); 1703 axObjectCache()->postNotification(node(), AXObjectCache::AXValueChanged, tru e);
1702 } 1704 }
1703 1705
1704 } // namespace blink 1706 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | Source/core/accessibility/AXObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698