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

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

Issue 2745713002: WIP: Modified AXPosition to work with objects with both embedded object characters and text. (Closed)
Patch Set: Simplified and cleaned up selection code in Blink > Accessibility. Created 3 years, 6 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) 2012, Google Inc. All rights reserved. 2 * Copyright (C) 2012, Google 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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 String Description(AXNameFrom, 177 String Description(AXNameFrom,
178 AXDescriptionFrom&, 178 AXDescriptionFrom&,
179 AXObjectVector* description_objects) const override; 179 AXObjectVector* description_objects) const override;
180 String Description(AXNameFrom, 180 String Description(AXNameFrom,
181 AXDescriptionFrom&, 181 AXDescriptionFrom&,
182 DescriptionSources*, 182 DescriptionSources*,
183 AXRelatedObjectVector*) const override; 183 AXRelatedObjectVector*) const override;
184 String Placeholder(AXNameFrom) const override; 184 String Placeholder(AXNameFrom) const override;
185 bool NameFromLabelElement() const override; 185 bool NameFromLabelElement() const override;
186 186
187 // Selection.
188 AXRange Selection() const override;
189
187 // Location 190 // Location
188 void GetRelativeBounds(AXObjectImpl** out_container, 191 void GetRelativeBounds(AXObjectImpl** out_container,
189 FloatRect& out_bounds_in_container, 192 FloatRect& out_bounds_in_container,
190 SkMatrix44& out_container_transform) const override; 193 SkMatrix44& out_container_transform) const override;
191 194
192 // High-level accessibility tree access. 195 // High-level accessibility tree access.
193 AXObjectImpl* ComputeParent() const override; 196 AXObjectImpl* ComputeParent() const override;
194 AXObjectImpl* ComputeParentIfExists() const override; 197 AXObjectImpl* ComputeParentIfExists() const override;
195 198
196 // Low-level accessibility tree exploration. 199 // Low-level accessibility tree exploration.
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 NameSources*, 242 NameSources*,
240 bool* found_text_alternative) const; 243 bool* found_text_alternative) const;
241 float StepValueForRange() const; 244 float StepValueForRange() const;
242 bool IsDescendantOfElementType(HashSet<QualifiedName>& tag_names) const; 245 bool IsDescendantOfElementType(HashSet<QualifiedName>& tag_names) const;
243 String PlaceholderFromNativeAttribute() const; 246 String PlaceholderFromNativeAttribute() const;
244 }; 247 };
245 248
246 } // namespace blink 249 } // namespace blink
247 250
248 #endif // AXNodeObject_h 251 #endif // AXNodeObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698