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

Side by Side Diff: Source/web/WebAXObject.cpp

Issue 659563006: Add live region root to the cached properties of an AXObject. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address feedback 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/accessibility/AXScrollView.cpp ('k') | public/web/WebAXObject.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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 m_private->ariaLabelledbyElements(labelledby); 491 m_private->ariaLabelledbyElements(labelledby);
492 492
493 WebVector<WebAXObject> result(labelledby.size()); 493 WebVector<WebAXObject> result(labelledby.size());
494 for (size_t i = 0; i < labelledby.size(); i++) 494 for (size_t i = 0; i < labelledby.size(); i++)
495 result[i] = WebAXObject(labelledby[i]); 495 result[i] = WebAXObject(labelledby[i]);
496 labelledbyElements.swap(result); 496 labelledbyElements.swap(result);
497 497
498 return true; 498 return true;
499 } 499 }
500 500
501 bool WebAXObject::ariaLiveRegionAtomic() const 501 bool WebAXObject::isInLiveRegion() const
502 {
503 if (isDetached())
504 return false;
505
506 return 0 != m_private->liveRegionRoot();
507 }
508
509 bool WebAXObject::liveRegionAtomic() const
502 { 510 {
503 if (isDetached()) 511 if (isDetached())
504 return 0; 512 return 0;
505 513
506 return m_private->ariaLiveRegionAtomic(); 514 return m_private->liveRegionAtomic();
507 } 515 }
508 516
509 bool WebAXObject::ariaLiveRegionBusy() const 517 bool WebAXObject::liveRegionBusy() const
510 { 518 {
511 if (isDetached()) 519 if (isDetached())
512 return 0; 520 return 0;
513 521
514 return m_private->ariaLiveRegionBusy(); 522 return m_private->liveRegionBusy();
515 } 523 }
516 524
517 WebString WebAXObject::ariaLiveRegionRelevant() const 525 WebString WebAXObject::liveRegionRelevant() const
518 { 526 {
519 if (isDetached()) 527 if (isDetached())
520 return WebString(); 528 return WebString();
521 529
522 return m_private->ariaLiveRegionRelevant(); 530 return m_private->liveRegionRelevant();
523 } 531 }
524 532
525 WebString WebAXObject::ariaLiveRegionStatus() const 533 WebString WebAXObject::liveRegionStatus() const
526 { 534 {
527 if (isDetached()) 535 if (isDetached())
528 return WebString(); 536 return WebString();
529 537
530 return m_private->ariaLiveRegionStatus(); 538 return m_private->liveRegionStatus();
539 }
540
541 bool WebAXObject::containerLiveRegionAtomic() const
542 {
543 if (isDetached())
544 return false;
545
546 return m_private->containerLiveRegionAtomic();
547 }
548
549 bool WebAXObject::containerLiveRegionBusy() const
550 {
551 if (isDetached())
552 return false;
553
554 return m_private->containerLiveRegionBusy();
555 }
556
557 WebString WebAXObject::containerLiveRegionRelevant() const
558 {
559 if (isDetached())
560 return WebString();
561
562 return m_private->containerLiveRegionRelevant();
563 }
564
565 WebString WebAXObject::containerLiveRegionStatus() const
566 {
567 if (isDetached())
568 return WebString();
569
570 return m_private->containerLiveRegionStatus();
531 } 571 }
532 572
533 bool WebAXObject::ariaOwns(WebVector<WebAXObject>& ownsElements) const 573 bool WebAXObject::ariaOwns(WebVector<WebAXObject>& ownsElements) const
534 { 574 {
535 if (isDetached()) 575 if (isDetached())
536 return false; 576 return false;
537 577
538 AXObject::AccessibilityChildrenVector owns; 578 AXObject::AccessibilityChildrenVector owns;
539 m_private->ariaOwnsElements(owns); 579 m_private->ariaOwnsElements(owns);
540 580
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after
1171 m_private = object; 1211 m_private = object;
1172 return *this; 1212 return *this;
1173 } 1213 }
1174 1214
1175 WebAXObject::operator WTF::PassRefPtr<AXObject>() const 1215 WebAXObject::operator WTF::PassRefPtr<AXObject>() const
1176 { 1216 {
1177 return m_private.get(); 1217 return m_private.get();
1178 } 1218 }
1179 1219
1180 } // namespace blink 1220 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/accessibility/AXScrollView.cpp ('k') | public/web/WebAXObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698