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

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: Rebase 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 virtual FrameView* documentFrameView() const override; 181 virtual FrameView* documentFrameView() const override;
182 virtual Element* anchorElement() const override; 182 virtual Element* anchorElement() const override;
183 virtual Widget* widgetForAttachmentView() const override; 183 virtual Widget* widgetForAttachmentView() const override;
184 184
185 // Selected text. 185 // Selected text.
186 virtual PlainTextRange selectedTextRange() const override; 186 virtual PlainTextRange selectedTextRange() const override;
187 187
188 // Modify or take an action on an object. 188 // Modify or take an action on an object.
189 virtual void setSelectedTextRange(const PlainTextRange&) override; 189 virtual void setSelectedTextRange(const PlainTextRange&) override;
190 virtual void setValue(const String&) override; 190 virtual void setValue(const String&) override;
191 virtual void scrollTo(const IntPoint&) const override;
192 191
193 // Notifications that this object may have changed. 192 // Notifications that this object may have changed.
194 virtual void handleActiveDescendantChanged() override; 193 virtual void handleActiveDescendantChanged() override;
195 virtual void handleAriaExpandedChanged() override; 194 virtual void handleAriaExpandedChanged() override;
196 virtual void textChanged() override; 195 virtual void textChanged() override;
197 196
198 // Text metrics. Most of these should be deprecated, needs major cleanup. 197 // Text metrics. Most of these should be deprecated, needs major cleanup.
199 virtual int index(const VisiblePosition&) const override; 198 virtual int index(const VisiblePosition&) const override;
200 virtual VisiblePosition visiblePositionForIndex(int) const override; 199 virtual VisiblePosition visiblePositionForIndex(int) const override;
201 virtual void lineBreaks(Vector<int>&) const override; 200 virtual void lineBreaks(Vector<int>&) const override;
(...skipping 26 matching lines...) Expand all
228 VisibleSelection selection() const; 227 VisibleSelection selection() const;
229 int indexForVisiblePosition(const VisiblePosition&) const; 228 int indexForVisiblePosition(const VisiblePosition&) const;
230 void accessibilityChildrenFromAttribute(QualifiedName attr, AccessibilityChi ldrenVector&) const; 229 void accessibilityChildrenFromAttribute(QualifiedName attr, AccessibilityChi ldrenVector&) const;
231 }; 230 };
232 231
233 DEFINE_AX_OBJECT_TYPE_CASTS(AXLayoutObject, isAXLayoutObject()); 232 DEFINE_AX_OBJECT_TYPE_CASTS(AXLayoutObject, isAXLayoutObject());
234 233
235 } // namespace blink 234 } // namespace blink
236 235
237 #endif // AXLayoutObject_h 236 #endif // AXLayoutObject_h
OLDNEW
« no previous file with comments | « LayoutTests/accessibility/scroll-containers.html ('k') | Source/modules/accessibility/AXLayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698