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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 if (isHTMLSelectElement(*node())) { | 235 if (isHTMLSelectElement(*node())) { |
236 HTMLSelectElement& selectElement = toHTMLSelectElement(*node()); | 236 HTMLSelectElement& selectElement = toHTMLSelectElement(*node()); |
237 return selectElement.multiple() ? ListBoxRole : PopUpButtonRole; | 237 return selectElement.multiple() ? ListBoxRole : PopUpButtonRole; |
238 } | 238 } |
239 if (isHTMLTextAreaElement(*node())) | 239 if (isHTMLTextAreaElement(*node())) |
240 return TextAreaRole; | 240 return TextAreaRole; |
241 if (headingLevel()) | 241 if (headingLevel()) |
242 return HeadingRole; | 242 return HeadingRole; |
243 if (isHTMLDivElement(*node())) | 243 if (isHTMLDivElement(*node())) |
244 return DivRole; | 244 return DivRole; |
| 245 if (isHTMLMeterElement(*node())) |
| 246 return MeterRole; |
245 if (isHTMLParagraphElement(*node())) | 247 if (isHTMLParagraphElement(*node())) |
246 return ParagraphRole; | 248 return ParagraphRole; |
247 if (isHTMLLabelElement(*node())) | 249 if (isHTMLLabelElement(*node())) |
248 return LabelRole; | 250 return LabelRole; |
249 if (isHTMLDListElement(*node())) | 251 if (isHTMLDListElement(*node())) |
250 return DescriptionListRole; | 252 return DescriptionListRole; |
251 if (node()->isElementNode() && node()->hasTagName(figcaptionTag)) | 253 if (node()->isElementNode() && node()->hasTagName(figcaptionTag)) |
252 return FigcaptionRole; | 254 return FigcaptionRole; |
253 if (node()->isElementNode() && node()->hasTagName(figureTag)) | 255 if (node()->isElementNode() && node()->hasTagName(figureTag)) |
254 return FigureRole; | 256 return FigureRole; |
(...skipping 1488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1743 float range = maxValueForRange() - minValueForRange(); | 1745 float range = maxValueForRange() - minValueForRange(); |
1744 float value = valueForRange(); | 1746 float value = valueForRange(); |
1745 | 1747 |
1746 value += range * (percentChange / 100); | 1748 value += range * (percentChange / 100); |
1747 setValue(String::number(value)); | 1749 setValue(String::number(value)); |
1748 | 1750 |
1749 axObjectCache()->postNotification(node(), AXObjectCache::AXValueChanged, tru
e); | 1751 axObjectCache()->postNotification(node(), AXObjectCache::AXValueChanged, tru
e); |
1750 } | 1752 } |
1751 | 1753 |
1752 } // namespace blink | 1754 } // namespace blink |
OLD | NEW |