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

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

Issue 1057923002: Revert of Expose multiline attribute from blink (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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/web/AssertMatchingEnums.cpp ('k') | public/web/WebAXEnums.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 510 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 m_private->ariaLabelledbyElements(labelledby); 521 m_private->ariaLabelledbyElements(labelledby);
522 522
523 WebVector<WebAXObject> result(labelledby.size()); 523 WebVector<WebAXObject> result(labelledby.size());
524 for (size_t i = 0; i < labelledby.size(); i++) 524 for (size_t i = 0; i < labelledby.size(); i++)
525 result[i] = WebAXObject(labelledby[i]); 525 result[i] = WebAXObject(labelledby[i]);
526 labelledbyElements.swap(result); 526 labelledbyElements.swap(result);
527 527
528 return true; 528 return true;
529 } 529 }
530 530
531 bool WebAXObject::isMultiline() const
532 {
533 if (isDetached())
534 return false;
535
536 return m_private->isMultiline();
537 }
538
539 bool WebAXObject::isInLiveRegion() const 531 bool WebAXObject::isInLiveRegion() const
540 { 532 {
541 if (isDetached()) 533 if (isDetached())
542 return false; 534 return false;
543 535
544 return 0 != m_private->liveRegionRoot(); 536 return 0 != m_private->liveRegionRoot();
545 } 537 }
546 538
547 bool WebAXObject::liveRegionAtomic() const 539 bool WebAXObject::liveRegionAtomic() const
548 { 540 {
(...skipping 792 matching lines...) Expand 10 before | Expand all | Expand 10 after
1341 m_private = object; 1333 m_private = object;
1342 return *this; 1334 return *this;
1343 } 1335 }
1344 1336
1345 WebAXObject::operator WTF::PassRefPtr<AXObject>() const 1337 WebAXObject::operator WTF::PassRefPtr<AXObject>() const
1346 { 1338 {
1347 return m_private.get(); 1339 return m_private.get();
1348 } 1340 }
1349 1341
1350 } // namespace blink 1342 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/AssertMatchingEnums.cpp ('k') | public/web/WebAXEnums.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698