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

Side by Side 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 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 | « third_party/WebKit/Source/web/WebAXObject.cpp ('k') | ui/accessibility/ax_enums.idl » ('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 16 matching lines...) Expand all
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef WebAXObject_h 31 #ifndef WebAXObject_h
32 #define WebAXObject_h 32 #define WebAXObject_h
33 33
34 #include "../platform/WebCommon.h" 34 #include "../platform/WebCommon.h"
35 #include "../platform/WebPoint.h" 35 #include "../platform/WebPoint.h"
36 #include "../platform/WebPrivatePtr.h" 36 #include "../platform/WebPrivatePtr.h"
37 #include "../platform/WebSize.h"
37 #include "../platform/WebVector.h" 38 #include "../platform/WebVector.h"
38 #include "WebAXEnums.h" 39 #include "WebAXEnums.h"
39 #include <memory> 40 #include <memory>
40 41
41 #if BLINK_IMPLEMENTATION 42 #if BLINK_IMPLEMENTATION
42 namespace WTF { 43 namespace WTF {
43 template <typename T> 44 template <typename T>
44 class PassRefPtr; 45 class PassRefPtr;
45 } 46 }
46 #endif 47 #endif
47 48
48 class SkMatrix44; 49 class SkMatrix44;
49 50
50 namespace blink { 51 namespace blink {
51 52
52 class AXObject; 53 class AXObject;
53 class ScopedAXObjectCache; 54 class ScopedAXObjectCache;
54 class WebAXObject; 55 class WebAXObject;
55 class WebNode; 56 class WebNode;
56 class WebDocument; 57 class WebDocument;
57 class WebString; 58 class WebString;
58 class WebURL; 59 class WebURL;
59 struct WebFloatRect; 60 struct WebFloatRect;
60 struct WebPoint; 61 struct WebPoint;
61 struct WebRect; 62 struct WebRect;
63 struct WebSize;
62 64
63 // An instance of this class, while kept alive, indicates that accessibility 65 // An instance of this class, while kept alive, indicates that accessibility
64 // should be temporarily enabled. If accessibility was enabled globally 66 // should be temporarily enabled. If accessibility was enabled globally
65 // (WebSettings::setAccessibilityEnabled), this will have no effect. 67 // (WebSettings::setAccessibilityEnabled), this will have no effect.
66 class WebScopedAXContext { 68 class WebScopedAXContext {
67 public: 69 public:
68 BLINK_EXPORT WebScopedAXContext(WebDocument& rootDocument); 70 BLINK_EXPORT WebScopedAXContext(WebDocument& rootDocument);
69 BLINK_EXPORT ~WebScopedAXContext(); 71 BLINK_EXPORT ~WebScopedAXContext();
70 72
71 BLINK_EXPORT WebAXObject root() const; 73 BLINK_EXPORT WebAXObject root() const;
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 BLINK_EXPORT WebAXAriaCurrentState ariaCurrentState() const; 151 BLINK_EXPORT WebAXAriaCurrentState ariaCurrentState() const;
150 BLINK_EXPORT bool ariaFlowTo(WebVector<WebAXObject>& flowToElements) const; 152 BLINK_EXPORT bool ariaFlowTo(WebVector<WebAXObject>& flowToElements) const;
151 BLINK_EXPORT bool ariaHasPopup() const; 153 BLINK_EXPORT bool ariaHasPopup() const;
152 BLINK_EXPORT bool isEditable() const; 154 BLINK_EXPORT bool isEditable() const;
153 BLINK_EXPORT bool isMultiline() const; 155 BLINK_EXPORT bool isMultiline() const;
154 BLINK_EXPORT bool isRichlyEditable() const; 156 BLINK_EXPORT bool isRichlyEditable() const;
155 BLINK_EXPORT bool ariaOwns(WebVector<WebAXObject>& ownsElements) const; 157 BLINK_EXPORT bool ariaOwns(WebVector<WebAXObject>& ownsElements) const;
156 BLINK_EXPORT WebString fontFamily() const; 158 BLINK_EXPORT WebString fontFamily() const;
157 BLINK_EXPORT float fontSize() const; 159 BLINK_EXPORT float fontSize() const;
158 BLINK_EXPORT bool canvasHasFallbackContent() const; 160 BLINK_EXPORT bool canvasHasFallbackContent() const;
161 // If this is an image, returns the image (scaled to maxSize) as a data url.
162 BLINK_EXPORT WebString imageDataUrl(const WebSize& maxSize) const;
159 BLINK_EXPORT WebAXInvalidState invalidState() const; 163 BLINK_EXPORT WebAXInvalidState invalidState() const;
160 // Only used when invalidState() returns WebAXInvalidStateOther. 164 // Only used when invalidState() returns WebAXInvalidStateOther.
161 BLINK_EXPORT WebString ariaInvalidValue() const; 165 BLINK_EXPORT WebString ariaInvalidValue() const;
162 BLINK_EXPORT double estimatedLoadingProgress() const; 166 BLINK_EXPORT double estimatedLoadingProgress() const;
163 BLINK_EXPORT int headingLevel() const; 167 BLINK_EXPORT int headingLevel() const;
164 BLINK_EXPORT int hierarchicalLevel() const; 168 BLINK_EXPORT int hierarchicalLevel() const;
165 BLINK_EXPORT WebAXObject hitTest(const WebPoint&) const; 169 BLINK_EXPORT WebAXObject hitTest(const WebPoint&) const;
166 BLINK_EXPORT WebString keyboardShortcut() const; 170 BLINK_EXPORT WebString keyboardShortcut() const;
167 BLINK_EXPORT WebString language() const; 171 BLINK_EXPORT WebString language() const;
168 BLINK_EXPORT WebAXOrientation orientation() const; 172 BLINK_EXPORT WebAXOrientation orientation() const;
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 operator AXObject*() const; 344 operator AXObject*() const;
341 #endif 345 #endif
342 346
343 private: 347 private:
344 WebPrivatePtr<AXObject> m_private; 348 WebPrivatePtr<AXObject> m_private;
345 }; 349 };
346 350
347 } // namespace blink 351 } // namespace blink
348 352
349 #endif 353 #endif
OLDNEW
« 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