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

Unified Diff: third_party/WebKit/public/web/WebAXObject.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
« no previous file with comments | « third_party/WebKit/Source/web/WebAXObject.cpp ('k') | ui/accessibility/ax_enums.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/web/WebAXObject.h
diff --git a/third_party/WebKit/public/web/WebAXObject.h b/third_party/WebKit/public/web/WebAXObject.h
index 0a0b9d91b55a51f7e818244731391ea0ed5eab95..3e4d70255d71c5a121a19c90432cee029e0afd94 100644
--- a/third_party/WebKit/public/web/WebAXObject.h
+++ b/third_party/WebKit/public/web/WebAXObject.h
@@ -34,6 +34,7 @@
#include "../platform/WebCommon.h"
#include "../platform/WebPoint.h"
#include "../platform/WebPrivatePtr.h"
+#include "../platform/WebSize.h"
#include "../platform/WebVector.h"
#include "WebAXEnums.h"
#include <memory>
@@ -59,6 +60,7 @@ class WebURL;
struct WebFloatRect;
struct WebPoint;
struct WebRect;
+struct WebSize;
// An instance of this class, while kept alive, indicates that accessibility
// should be temporarily enabled. If accessibility was enabled globally
@@ -156,6 +158,8 @@ class WebAXObject {
BLINK_EXPORT WebString fontFamily() const;
BLINK_EXPORT float fontSize() const;
BLINK_EXPORT bool canvasHasFallbackContent() const;
+ // If this is an image, returns the image (scaled to maxSize) as a data url.
+ BLINK_EXPORT WebString imageDataUrl(const WebSize& maxSize) const;
BLINK_EXPORT WebAXInvalidState invalidState() const;
// Only used when invalidState() returns WebAXInvalidStateOther.
BLINK_EXPORT WebString ariaInvalidValue() const;
« no previous file with comments | « third_party/WebKit/Source/web/WebAXObject.cpp ('k') | ui/accessibility/ax_enums.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698