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

Side by Side Diff: Source/modules/accessibility/AXLayoutObject.h

Issue 1121473004: Expose scroll containers via accessibility APIs. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Move scrolling logic from ScrollView to WebArea Created 5 years, 7 months 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 virtual FrameView* documentFrameView() const override; 173 virtual FrameView* documentFrameView() const override;
174 virtual Element* anchorElement() const override; 174 virtual Element* anchorElement() const override;
175 virtual Widget* widgetForAttachmentView() const override; 175 virtual Widget* widgetForAttachmentView() const override;
176 176
177 // Selected text. 177 // Selected text.
178 virtual PlainTextRange selectedTextRange() const override; 178 virtual PlainTextRange selectedTextRange() const override;
179 179
180 // Modify or take an action on an object. 180 // Modify or take an action on an object.
181 virtual void setSelectedTextRange(const PlainTextRange&) override; 181 virtual void setSelectedTextRange(const PlainTextRange&) override;
182 virtual void setValue(const String&) override; 182 virtual void setValue(const String&) override;
183 virtual void scrollTo(const IntPoint&) const override;
184 183
185 // Notifications that this object may have changed. 184 // Notifications that this object may have changed.
186 virtual void handleActiveDescendantChanged() override; 185 virtual void handleActiveDescendantChanged() override;
187 virtual void handleAriaExpandedChanged() override; 186 virtual void handleAriaExpandedChanged() override;
188 virtual void textChanged() override; 187 virtual void textChanged() override;
189 188
190 // Text metrics. Most of these should be deprecated, needs major cleanup. 189 // Text metrics. Most of these should be deprecated, needs major cleanup.
191 virtual int index(const VisiblePosition&) const override; 190 virtual int index(const VisiblePosition&) const override;
192 virtual VisiblePosition visiblePositionForIndex(int) const override; 191 virtual VisiblePosition visiblePositionForIndex(int) const override;
193 virtual void lineBreaks(Vector<int>&) const override; 192 virtual void lineBreaks(Vector<int>&) const override;
(...skipping 26 matching lines...) Expand all
220 VisibleSelection selection() const; 219 VisibleSelection selection() const;
221 int indexForVisiblePosition(const VisiblePosition&) const; 220 int indexForVisiblePosition(const VisiblePosition&) const;
222 void accessibilityChildrenFromAttribute(QualifiedName attr, AccessibilityChi ldrenVector&) const; 221 void accessibilityChildrenFromAttribute(QualifiedName attr, AccessibilityChi ldrenVector&) const;
223 }; 222 };
224 223
225 DEFINE_AX_OBJECT_TYPE_CASTS(AXLayoutObject, isAXLayoutObject()); 224 DEFINE_AX_OBJECT_TYPE_CASTS(AXLayoutObject, isAXLayoutObject());
226 225
227 } // namespace blink 226 } // namespace blink
228 227
229 #endif // AXLayoutObject_h 228 #endif // AXLayoutObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698