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

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

Issue 1905263002: Correctly finds line boundaries in objects with rich text on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed standard text fields in unit test. Created 4 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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 void setValue(const String&) override; 182 void setValue(const String&) override;
183 183
184 // Notifications that this object may have changed. 184 // Notifications that this object may have changed.
185 void handleActiveDescendantChanged() override; 185 void handleActiveDescendantChanged() override;
186 void handleAriaExpandedChanged() override; 186 void handleAriaExpandedChanged() override;
187 void textChanged() override; 187 void textChanged() override;
188 188
189 // Text metrics. Most of these should be deprecated, needs major cleanup. 189 // Text metrics. Most of these should be deprecated, needs major cleanup.
190 int index(const VisiblePosition&) const override; 190 int index(const VisiblePosition&) const override;
191 VisiblePosition visiblePositionForIndex(int) const override; 191 VisiblePosition visiblePositionForIndex(int) const override;
192 void lineBreaks(Vector<int>&) const override; 192 void lineBreaks(Vector<int>&) const final;
193 193
194 private: 194 private:
195 AXObject* treeAncestorDisallowingChild() const; 195 AXObject* treeAncestorDisallowingChild() const;
196 bool isTabItemSelected() const; 196 bool isTabItemSelected() const;
197 bool isValidSelectionBound(const AXObject*) const; 197 bool isValidSelectionBound(const AXObject*) const;
198 AXObject* accessibilityImageMapHitTest(HTMLAreaElement*, const IntPoint&) co nst; 198 AXObject* accessibilityImageMapHitTest(HTMLAreaElement*, const IntPoint&) co nst;
199 LayoutObject* layoutParentObject() const; 199 LayoutObject* layoutParentObject() const;
200 bool isSVGImage() const; 200 bool isSVGImage() const;
201 void detachRemoteSVGRoot(); 201 void detachRemoteSVGRoot();
202 AXSVGRoot* remoteSVGRootElement() const; 202 AXSVGRoot* remoteSVGRootElement() const;
(...skipping 12 matching lines...) Expand all
215 AXRange textControlSelection() const; 215 AXRange textControlSelection() const;
216 int indexForVisiblePosition(const VisiblePosition&) const; 216 int indexForVisiblePosition(const VisiblePosition&) const;
217 AXLayoutObject* getUnignoredObjectFromNode(Node&) const; 217 AXLayoutObject* getUnignoredObjectFromNode(Node&) const;
218 }; 218 };
219 219
220 DEFINE_AX_OBJECT_TYPE_CASTS(AXLayoutObject, isAXLayoutObject()); 220 DEFINE_AX_OBJECT_TYPE_CASTS(AXLayoutObject, isAXLayoutObject());
221 221
222 } // namespace blink 222 } // namespace blink
223 223
224 #endif // AXLayoutObject_h 224 #endif // AXLayoutObject_h
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/accessibility/inline-text-box-next-on-line.html ('k') | ui/accessibility/ax_enums.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698