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

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

Issue 653683005: Add MarkRole in blink side to expose mark tag properly (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: reland Created 5 years, 6 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
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 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 430
431 if (isHTMLFormElement(*node())) 431 if (isHTMLFormElement(*node()))
432 return FormRole; 432 return FormRole;
433 433
434 if (node()->hasTagName(articleTag)) 434 if (node()->hasTagName(articleTag))
435 return ArticleRole; 435 return ArticleRole;
436 436
437 if (node()->hasTagName(mainTag)) 437 if (node()->hasTagName(mainTag))
438 return MainRole; 438 return MainRole;
439 439
440 if (node()->hasTagName(markTag))
441 return MarkRole;
442
440 if (node()->hasTagName(navTag)) 443 if (node()->hasTagName(navTag))
441 return NavigationRole; 444 return NavigationRole;
442 445
443 if (node()->hasTagName(asideTag)) 446 if (node()->hasTagName(asideTag))
444 return ComplementaryRole; 447 return ComplementaryRole;
445 448
446 if (node()->hasTagName(preTag)) 449 if (node()->hasTagName(preTag))
447 return PreRole; 450 return PreRole;
448 451
449 if (node()->hasTagName(sectionTag)) 452 if (node()->hasTagName(sectionTag))
(...skipping 1932 matching lines...) Expand 10 before | Expand all | Expand 10 after
2382 ariaLabeledByElements(elements); 2385 ariaLabeledByElements(elements);
2383 2386
2384 for (const auto& element : elements) { 2387 for (const auto& element : elements) {
2385 RefPtr<AXObject> axElement = axObjectCache()->getOrCreate(element); 2388 RefPtr<AXObject> axElement = axObjectCache()->getOrCreate(element);
2386 textOrder.append(AccessibilityText(ariaLabeledBy, AlternativeText, a xElement)); 2389 textOrder.append(AccessibilityText(ariaLabeledBy, AlternativeText, a xElement));
2387 } 2390 }
2388 } 2391 }
2389 } 2392 }
2390 2393
2391 } // namespace blink 2394 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/accessibility/AXLayoutObject.cpp ('k') | Source/modules/accessibility/AXObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698