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

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

Issue 710663002: Adding role 'RubyRole' in blink to expose HTML Ruby tag. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
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())) 250 if (isHTMLOutputElement(*node()))
251 return StatusRole; 251 return StatusRole;
252 if (isHTMLParagraphElement(*node())) 252 if (isHTMLParagraphElement(*node()))
253 return ParagraphRole; 253 return ParagraphRole;
254 if (isHTMLLabelElement(*node())) 254 if (isHTMLLabelElement(*node()))
255 return LabelRole; 255 return LabelRole;
256 if (isHTMLRubyElement(*node()))
257 return RubyRole;
256 if (isHTMLDListElement(*node())) 258 if (isHTMLDListElement(*node()))
257 return DescriptionListRole; 259 return DescriptionListRole;
258 if (node()->isElementNode() && node()->hasTagName(blockquoteTag)) 260 if (node()->isElementNode() && node()->hasTagName(blockquoteTag))
259 return BlockquoteRole; 261 return BlockquoteRole;
260 if (node()->isElementNode() && node()->hasTagName(figcaptionTag)) 262 if (node()->isElementNode() && node()->hasTagName(figcaptionTag))
261 return FigcaptionRole; 263 return FigcaptionRole;
262 if (node()->isElementNode() && node()->hasTagName(figureTag)) 264 if (node()->isElementNode() && node()->hasTagName(figureTag))
263 return FigureRole; 265 return FigureRole;
264 if (node()->isElementNode() && toElement(node())->isFocusable()) 266 if (node()->isElementNode() && toElement(node())->isFocusable())
265 return GroupRole; 267 return GroupRole;
(...skipping 1506 matching lines...) Expand 10 before | Expand all | Expand 10 after
1772 float range = maxValueForRange() - minValueForRange(); 1774 float range = maxValueForRange() - minValueForRange();
1773 float value = valueForRange(); 1775 float value = valueForRange();
1774 1776
1775 value += range * (percentChange / 100); 1777 value += range * (percentChange / 100);
1776 setValue(String::number(value)); 1778 setValue(String::number(value));
1777 1779
1778 axObjectCache()->postNotification(node(), AXObjectCacheImpl::AXValueChanged, true); 1780 axObjectCache()->postNotification(node(), AXObjectCacheImpl::AXValueChanged, true);
1779 } 1781 }
1780 1782
1781 } // namespace blink 1783 } // 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