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

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

Issue 813313002: TableCaptionElement is not exposed to accessibility (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebasing code Created 6 years 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/modules/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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 if (isHTMLParagraphElement(*node())) 251 if (isHTMLParagraphElement(*node()))
252 return ParagraphRole; 252 return ParagraphRole;
253 if (isHTMLLabelElement(*node())) 253 if (isHTMLLabelElement(*node()))
254 return LabelRole; 254 return LabelRole;
255 if (isHTMLRubyElement(*node())) 255 if (isHTMLRubyElement(*node()))
256 return RubyRole; 256 return RubyRole;
257 if (isHTMLDListElement(*node())) 257 if (isHTMLDListElement(*node()))
258 return DescriptionListRole; 258 return DescriptionListRole;
259 if (node()->isElementNode() && node()->hasTagName(blockquoteTag)) 259 if (node()->isElementNode() && node()->hasTagName(blockquoteTag))
260 return BlockquoteRole; 260 return BlockquoteRole;
261 if (node()->isElementNode() && node()->hasTagName(captionTag))
262 return CaptionRole;
261 if (node()->isElementNode() && node()->hasTagName(figcaptionTag)) 263 if (node()->isElementNode() && node()->hasTagName(figcaptionTag))
262 return FigcaptionRole; 264 return FigcaptionRole;
263 if (node()->isElementNode() && node()->hasTagName(figureTag)) 265 if (node()->isElementNode() && node()->hasTagName(figureTag))
264 return FigureRole; 266 return FigureRole;
265 if (isHTMLAnchorElement(*node()) && isClickable()) 267 if (isHTMLAnchorElement(*node()) && isClickable())
266 return LinkRole; 268 return LinkRole;
267 if (isHTMLIFrameElement(*node())) 269 if (isHTMLIFrameElement(*node()))
268 return IframeRole; 270 return IframeRole;
269 if (isEmbeddedObject()) 271 if (isEmbeddedObject())
270 return EmbeddedObjectRole; 272 return EmbeddedObjectRole;
(...skipping 1656 matching lines...) Expand 10 before | Expand all | Expand 10 after
1927 float range = maxValueForRange() - minValueForRange(); 1929 float range = maxValueForRange() - minValueForRange();
1928 float value = valueForRange(); 1930 float value = valueForRange();
1929 1931
1930 value += range * (percentChange / 100); 1932 value += range * (percentChange / 100);
1931 setValue(String::number(value)); 1933 setValue(String::number(value));
1932 1934
1933 axObjectCache()->postNotification(node(), AXObjectCacheImpl::AXValueChanged, true); 1935 axObjectCache()->postNotification(node(), AXObjectCacheImpl::AXValueChanged, true);
1934 } 1936 }
1935 1937
1936 } // namespace blink 1938 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | Source/modules/accessibility/AXObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698