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

Unified Diff: third_party/WebKit/Source/modules/accessibility/AXObject.h

Issue 2522543004: Add support for retrieving image thumbnails as part of the accessibility tree. (Closed)
Patch Set: Clarified maxSize Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/accessibility/AXObject.h
diff --git a/third_party/WebKit/Source/modules/accessibility/AXObject.h b/third_party/WebKit/Source/modules/accessibility/AXObject.h
index 69ebc35548aaca9bff168e5b0dc3ece4718ee0fc..184058b9bb597fbce153cd6e1dda52fcefb222af 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXObject.h
+++ b/third_party/WebKit/Source/modules/accessibility/AXObject.h
@@ -765,6 +765,10 @@ class MODULES_EXPORT AXObject : public GarbageCollectedFinalized<AXObject> {
virtual int headingLevel() const { return 0; }
// Value should be 1-based. 0 means not supported.
virtual unsigned hierarchicalLevel() const { return 0; }
+ // Return the content of an image or canvas as an image data url in
+ // PNG format. If |maxSize| is not empty and if the image is larger than
+ // those dimensions, the image will be resized proportionally first to fit.
+ virtual String imageDataUrl(const IntSize& maxSize) const { return nullAtom; }
virtual AccessibilityOrientation orientation() const;
virtual String text() const { return String(); }
virtual AccessibilityTextDirection textDirection() const {
« no previous file with comments | « third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp ('k') | third_party/WebKit/Source/web/WebAXObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698