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

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

Issue 1071483002: Implement aria properties setsize and posinset. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixing nits 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/modules/accessibility/AXObject.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 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 } 494 }
495 495
496 bool WebAXObject::isMultiline() const 496 bool WebAXObject::isMultiline() const
497 { 497 {
498 if (isDetached()) 498 if (isDetached())
499 return false; 499 return false;
500 500
501 return m_private->isMultiline(); 501 return m_private->isMultiline();
502 } 502 }
503 503
504 int WebAXObject::posInSet() const
505 {
506 if (isDetached())
507 return 0;
508
509 return m_private->posInSet();
510 }
511
512 int WebAXObject::setSize() const
513 {
514 if (isDetached())
515 return 0;
516
517 return m_private->setSize();
518 }
519
504 bool WebAXObject::isInLiveRegion() const 520 bool WebAXObject::isInLiveRegion() const
505 { 521 {
506 if (isDetached()) 522 if (isDetached())
507 return false; 523 return false;
508 524
509 return 0 != m_private->liveRegionRoot(); 525 return 0 != m_private->liveRegionRoot();
510 } 526 }
511 527
512 bool WebAXObject::liveRegionAtomic() const 528 bool WebAXObject::liveRegionAtomic() const
513 { 529 {
(...skipping 921 matching lines...) Expand 10 before | Expand all | Expand 10 after
1435 m_private = object; 1451 m_private = object;
1436 return *this; 1452 return *this;
1437 } 1453 }
1438 1454
1439 WebAXObject::operator WTF::PassRefPtr<AXObject>() const 1455 WebAXObject::operator WTF::PassRefPtr<AXObject>() const
1440 { 1456 {
1441 return m_private.get(); 1457 return m_private.get();
1442 } 1458 }
1443 1459
1444 } // namespace blink 1460 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/accessibility/AXObject.cpp ('k') | public/web/WebAXObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698