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

Side by Side 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 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) 2008, 2009, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Nuanti Ltd. 3 * Copyright (C) 2008 Nuanti Ltd.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after
758 // Used by objects of role ColorWellRole. 758 // Used by objects of role ColorWellRole.
759 virtual RGBA32 colorValue() const { return Color::transparent; } 759 virtual RGBA32 colorValue() const { return Color::transparent; }
760 virtual bool canvasHasFallbackContent() const { return false; } 760 virtual bool canvasHasFallbackContent() const { return false; }
761 virtual String fontFamily() const { return nullAtom; } 761 virtual String fontFamily() const { return nullAtom; }
762 // Font size is in pixels. 762 // Font size is in pixels.
763 virtual float fontSize() const { return 0.0f; } 763 virtual float fontSize() const { return 0.0f; }
764 // Value should be 1-based. 0 means not supported. 764 // Value should be 1-based. 0 means not supported.
765 virtual int headingLevel() const { return 0; } 765 virtual int headingLevel() const { return 0; }
766 // Value should be 1-based. 0 means not supported. 766 // Value should be 1-based. 0 means not supported.
767 virtual unsigned hierarchicalLevel() const { return 0; } 767 virtual unsigned hierarchicalLevel() const { return 0; }
768 // Return the content of an image or canvas as an image data url in
769 // PNG format. If |maxSize| is not empty and if the image is larger than
770 // those dimensions, the image will be resized proportionally first to fit.
771 virtual String imageDataUrl(const IntSize& maxSize) const { return nullAtom; }
768 virtual AccessibilityOrientation orientation() const; 772 virtual AccessibilityOrientation orientation() const;
769 virtual String text() const { return String(); } 773 virtual String text() const { return String(); }
770 virtual AccessibilityTextDirection textDirection() const { 774 virtual AccessibilityTextDirection textDirection() const {
771 return AccessibilityTextDirectionLTR; 775 return AccessibilityTextDirectionLTR;
772 } 776 }
773 virtual int textLength() const { return 0; } 777 virtual int textLength() const { return 0; }
774 virtual TextStyle getTextStyle() const { return TextStyleNone; } 778 virtual TextStyle getTextStyle() const { return TextStyleNone; }
775 virtual KURL url() const { return KURL(); } 779 virtual KURL url() const { return KURL(); }
776 780
777 // Load inline text boxes for just this node, even if 781 // Load inline text boxes for just this node, even if
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
1064 static unsigned s_numberOfLiveAXObjects; 1068 static unsigned s_numberOfLiveAXObjects;
1065 }; 1069 };
1066 1070
1067 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ 1071 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \
1068 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, \ 1072 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, \
1069 object.predicate) 1073 object.predicate)
1070 1074
1071 } // namespace blink 1075 } // namespace blink
1072 1076
1073 #endif // AXObject_h 1077 #endif // AXObject_h
OLDNEW
« 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