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

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

Issue 652663003: Adding MeterRole in blink to support MSAA+IA2 and AX roles for meter tag in Chromium. (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 | « Source/core/accessibility/AXObject.h ('k') | Source/web/AssertMatchingEnums.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) 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2008 Apple 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 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 375
376 if (isHTMLParagraphElement(node)) 376 if (isHTMLParagraphElement(node))
377 return ParagraphRole; 377 return ParagraphRole;
378 378
379 if (isHTMLLabelElement(node)) 379 if (isHTMLLabelElement(node))
380 return LabelRole; 380 return LabelRole;
381 381
382 if (isHTMLDivElement(node)) 382 if (isHTMLDivElement(node))
383 return DivRole; 383 return DivRole;
384 384
385 if (isHTMLMeterElement(node))
386 return MeterRole;
387
385 if (isHTMLFormElement(node)) 388 if (isHTMLFormElement(node))
386 return FormRole; 389 return FormRole;
387 390
388 if (node && node->hasTagName(articleTag)) 391 if (node && node->hasTagName(articleTag))
389 return ArticleRole; 392 return ArticleRole;
390 393
391 if (node && node->hasTagName(mainTag)) 394 if (node && node->hasTagName(mainTag))
392 return MainRole; 395 return MainRole;
393 396
394 if (node && node->hasTagName(navTag)) 397 if (node && node->hasTagName(navTag))
(...skipping 1979 matching lines...) Expand 10 before | Expand all | Expand 10 after
2374 if (label && label->renderer()) { 2377 if (label && label->renderer()) {
2375 LayoutRect labelRect = axObjectCache()->getOrCreate(label)->elementR ect(); 2378 LayoutRect labelRect = axObjectCache()->getOrCreate(label)->elementR ect();
2376 result.unite(labelRect); 2379 result.unite(labelRect);
2377 } 2380 }
2378 } 2381 }
2379 2382
2380 return result; 2383 return result;
2381 } 2384 }
2382 2385
2383 } // namespace blink 2386 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/accessibility/AXObject.h ('k') | Source/web/AssertMatchingEnums.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698