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

Side by Side Diff: third_party/WebKit/Source/modules/accessibility/AXLayoutObject.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 Apple Inc. All rights reserved. 2 * Copyright (C) 2008 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 IgnoredReasons* = nullptr) const override; 95 IgnoredReasons* = nullptr) const override;
96 bool computeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override; 96 bool computeAccessibilityIsIgnored(IgnoredReasons* = nullptr) const override;
97 97
98 // Properties of static elements. 98 // Properties of static elements.
99 const AtomicString& accessKey() const override; 99 const AtomicString& accessKey() const override;
100 RGBA32 computeBackgroundColor() const final; 100 RGBA32 computeBackgroundColor() const final;
101 RGBA32 color() const final; 101 RGBA32 color() const final;
102 String fontFamily() const final; 102 String fontFamily() const final;
103 // Font size is in pixels. 103 // Font size is in pixels.
104 float fontSize() const final; 104 float fontSize() const final;
105 String imageDataUrl(const IntSize& maxSize) const final;
105 String text() const override; 106 String text() const override;
106 AccessibilityTextDirection textDirection() const final; 107 AccessibilityTextDirection textDirection() const final;
107 int textLength() const override; 108 int textLength() const override;
108 TextStyle getTextStyle() const final; 109 TextStyle getTextStyle() const final;
109 KURL url() const override; 110 KURL url() const override;
110 111
111 // Inline text boxes. 112 // Inline text boxes.
112 void loadInlineTextBoxes() override; 113 void loadInlineTextBoxes() override;
113 AXObject* nextOnLine() const override; 114 AXObject* nextOnLine() const override;
114 AXObject* previousOnLine() const override; 115 AXObject* previousOnLine() const override;
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 AXRange textControlSelection() const; 218 AXRange textControlSelection() const;
218 int indexForVisiblePosition(const VisiblePosition&) const; 219 int indexForVisiblePosition(const VisiblePosition&) const;
219 AXLayoutObject* getUnignoredObjectFromNode(Node&) const; 220 AXLayoutObject* getUnignoredObjectFromNode(Node&) const;
220 }; 221 };
221 222
222 DEFINE_AX_OBJECT_TYPE_CASTS(AXLayoutObject, isAXLayoutObject()); 223 DEFINE_AX_OBJECT_TYPE_CASTS(AXLayoutObject, isAXLayoutObject());
223 224
224 } // namespace blink 225 } // namespace blink
225 226
226 #endif // AXLayoutObject_h 227 #endif // AXLayoutObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698