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

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

Issue 533893004: Adds accessibility role for figcaption tag (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
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(figcaptionTag))
225 return FigcaptionRole;
224 if (node()->isElementNode() && node()->hasTagName(figureTag)) 226 if (node()->isElementNode() && node()->hasTagName(figureTag))
225 return FigureRole; 227 return FigureRole;
226 if (node()->isElementNode() && toElement(node())->isFocusable()) 228 if (node()->isElementNode() && toElement(node())->isFocusable())
227 return GroupRole; 229 return GroupRole;
228 if (isHTMLAnchorElement(*node()) && isClickable()) 230 if (isHTMLAnchorElement(*node()) && isClickable())
229 return LinkRole; 231 return LinkRole;
230 if (isHTMLIFrameElement(*node())) 232 if (isHTMLIFrameElement(*node()))
231 return IframeRole; 233 return IframeRole;
232 if (isEmbeddedObject()) 234 if (isEmbeddedObject())
233 return EmbeddedObjectRole; 235 return EmbeddedObjectRole;
(...skipping 1463 matching lines...) Expand 10 before | Expand all | Expand 10 after
1697 float range = maxValueForRange() - minValueForRange(); 1699 float range = maxValueForRange() - minValueForRange();
1698 float value = valueForRange(); 1700 float value = valueForRange();
1699 1701
1700 value += range * (percentChange / 100); 1702 value += range * (percentChange / 100);
1701 setValue(String::number(value)); 1703 setValue(String::number(value));
1702 1704
1703 axObjectCache()->postNotification(node(), AXObjectCache::AXValueChanged, tru e); 1705 axObjectCache()->postNotification(node(), AXObjectCache::AXValueChanged, tru e);
1704 } 1706 }
1705 1707
1706 } // namespace blink 1708 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | Source/core/accessibility/AXObject.h » ('j') | Source/core/accessibility/AXRenderObject.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698