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

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

Issue 2522543004: Add support for retrieving image thumbnails as part of the accessibility tree. (Closed)
Patch Set: Clarified maxSize Created 4 years 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) 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 590 matching lines...) Expand 10 before | Expand all | Expand 10 after
601 return m_private->fontSize(); 601 return m_private->fontSize();
602 } 602 }
603 603
604 bool WebAXObject::canvasHasFallbackContent() const { 604 bool WebAXObject::canvasHasFallbackContent() const {
605 if (isDetached()) 605 if (isDetached())
606 return false; 606 return false;
607 607
608 return m_private->canvasHasFallbackContent(); 608 return m_private->canvasHasFallbackContent();
609 } 609 }
610 610
611 WebString WebAXObject::imageDataUrl(const WebSize& maxSize) const {
612 if (isDetached())
613 return WebString();
614
615 return m_private->imageDataUrl(maxSize);
616 }
617
611 WebAXInvalidState WebAXObject::invalidState() const { 618 WebAXInvalidState WebAXObject::invalidState() const {
612 if (isDetached()) 619 if (isDetached())
613 return WebAXInvalidStateUndefined; 620 return WebAXInvalidStateUndefined;
614 621
615 return static_cast<WebAXInvalidState>(m_private->getInvalidState()); 622 return static_cast<WebAXInvalidState>(m_private->getInvalidState());
616 } 623 }
617 624
618 // Only used when invalidState() returns WebAXInvalidStateOther. 625 // Only used when invalidState() returns WebAXInvalidStateOther.
619 WebString WebAXObject::ariaInvalidValue() const { 626 WebString WebAXObject::ariaInvalidValue() const {
620 if (isDetached()) 627 if (isDetached())
(...skipping 842 matching lines...) Expand 10 before | Expand all | Expand 10 after
1463 WebAXObject& WebAXObject::operator=(AXObject* object) { 1470 WebAXObject& WebAXObject::operator=(AXObject* object) {
1464 m_private = object; 1471 m_private = object;
1465 return *this; 1472 return *this;
1466 } 1473 }
1467 1474
1468 WebAXObject::operator AXObject*() const { 1475 WebAXObject::operator AXObject*() const {
1469 return m_private.get(); 1476 return m_private.get();
1470 } 1477 }
1471 1478
1472 } // namespace blink 1479 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/accessibility/AXObject.h ('k') | third_party/WebKit/public/web/WebAXObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698