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

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

Issue 663783002: ADD AX role for Output 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 | « no previous file | Source/core/accessibility/AXRenderObject.cpp » ('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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 return selectElement.multiple() ? ListBoxRole : PopUpButtonRole; 240 return selectElement.multiple() ? ListBoxRole : PopUpButtonRole;
241 } 241 }
242 if (isHTMLTextAreaElement(*node())) 242 if (isHTMLTextAreaElement(*node()))
243 return TextAreaRole; 243 return TextAreaRole;
244 if (headingLevel()) 244 if (headingLevel())
245 return HeadingRole; 245 return HeadingRole;
246 if (isHTMLDivElement(*node())) 246 if (isHTMLDivElement(*node()))
247 return DivRole; 247 return DivRole;
248 if (isHTMLMeterElement(*node())) 248 if (isHTMLMeterElement(*node()))
249 return MeterRole; 249 return MeterRole;
250 if (isHTMLOutputElement(*node()))
251 return StatusRole;
250 if (isHTMLParagraphElement(*node())) 252 if (isHTMLParagraphElement(*node()))
251 return ParagraphRole; 253 return ParagraphRole;
252 if (isHTMLLabelElement(*node())) 254 if (isHTMLLabelElement(*node()))
253 return LabelRole; 255 return LabelRole;
254 if (isHTMLDListElement(*node())) 256 if (isHTMLDListElement(*node()))
255 return DescriptionListRole; 257 return DescriptionListRole;
256 if (node()->isElementNode() && node()->hasTagName(figcaptionTag)) 258 if (node()->isElementNode() && node()->hasTagName(figcaptionTag))
257 return FigcaptionRole; 259 return FigcaptionRole;
258 if (node()->isElementNode() && node()->hasTagName(figureTag)) 260 if (node()->isElementNode() && node()->hasTagName(figureTag))
259 return FigureRole; 261 return FigureRole;
(...skipping 1488 matching lines...) Expand 10 before | Expand all | Expand 10 after
1748 float range = maxValueForRange() - minValueForRange(); 1750 float range = maxValueForRange() - minValueForRange();
1749 float value = valueForRange(); 1751 float value = valueForRange();
1750 1752
1751 value += range * (percentChange / 100); 1753 value += range * (percentChange / 100);
1752 setValue(String::number(value)); 1754 setValue(String::number(value));
1753 1755
1754 axObjectCache()->postNotification(node(), AXObjectCache::AXValueChanged, tru e); 1756 axObjectCache()->postNotification(node(), AXObjectCache::AXValueChanged, tru e);
1755 } 1757 }
1756 1758
1757 } // namespace blink 1759 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | Source/core/accessibility/AXRenderObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698