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

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

Issue 1086253002: Revert of Made content editables report the caret and text selection by treating them as text controls. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 AccessibilityRole determineAccessibilityRoleUtil(); 63 AccessibilityRole determineAccessibilityRoleUtil();
64 String accessibilityDescriptionForElements(WillBeHeapVector<RawPtrWillBeMemb er<Element>> &elements) const; 64 String accessibilityDescriptionForElements(WillBeHeapVector<RawPtrWillBeMemb er<Element>> &elements) const;
65 void alterSliderValue(bool increase); 65 void alterSliderValue(bool increase);
66 String ariaAccessibilityDescription() const; 66 String ariaAccessibilityDescription() const;
67 String ariaAutoComplete() const; 67 String ariaAutoComplete() const;
68 void ariaLabeledByElements(WillBeHeapVector<RawPtrWillBeMember<Element>>& el ements) const; 68 void ariaLabeledByElements(WillBeHeapVector<RawPtrWillBeMember<Element>>& el ements) const;
69 void changeValueByStep(bool increase); 69 void changeValueByStep(bool increase);
70 AccessibilityRole determineAriaRoleAttribute() const; 70 AccessibilityRole determineAriaRoleAttribute() const;
71 void elementsFromAttribute(WillBeHeapVector<RawPtrWillBeMember<Element>>& el ements, const QualifiedName&) const; 71 void elementsFromAttribute(WillBeHeapVector<RawPtrWillBeMember<Element>>& el ements, const QualifiedName&) const;
72 bool hasContentEditableAttributeSet() const; 72 bool hasContentEditableAttributeSet() const;
73 bool isTextControl() const override;
74 bool allowsTextRanges() const { return isTextControl(); }
75 // This returns true if it's focusable but it's not content editable and it' s not a control or ARIA control. 73 // This returns true if it's focusable but it's not content editable and it' s not a control or ARIA control.
76 bool isGenericFocusableElement() const; 74 bool isGenericFocusableElement() const;
77 HTMLLabelElement* labelForElement(Element*) const; 75 HTMLLabelElement* labelForElement(Element*) const;
78 AXObject* menuButtonForMenu() const; 76 AXObject* menuButtonForMenu() const;
79 Element* menuItemElementForMenu() const; 77 Element* menuItemElementForMenu() const;
80 Element* mouseButtonListener() const; 78 Element* mouseButtonListener() const;
81 String deprecatedPlaceholder() const; 79 String deprecatedPlaceholder() const;
82 AccessibilityRole remapAriaRoleDueToParent(AccessibilityRole) const; 80 AccessibilityRole remapAriaRoleDueToParent(AccessibilityRole) const;
83 bool isNativeCheckboxOrRadio() const; 81 bool isNativeCheckboxOrRadio() const;
84 void setNode(Node*); 82 void setNode(Node*);
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 float stepValueForRange() const; 206 float stepValueForRange() const;
209 AXObject* findChildWithTagName(const HTMLQualifiedName&) const; 207 AXObject* findChildWithTagName(const HTMLQualifiedName&) const;
210 bool isDescendantOfElementType(const HTMLQualifiedName& tagName) const; 208 bool isDescendantOfElementType(const HTMLQualifiedName& tagName) const;
211 }; 209 };
212 210
213 DEFINE_AX_OBJECT_TYPE_CASTS(AXNodeObject, isAXNodeObject()); 211 DEFINE_AX_OBJECT_TYPE_CASTS(AXNodeObject, isAXNodeObject());
214 212
215 } // namespace blink 213 } // namespace blink
216 214
217 #endif // AXNodeObject_h 215 #endif // AXNodeObject_h
OLDNEW
« no previous file with comments | « Source/modules/accessibility/AXLayoutObject.cpp ('k') | Source/modules/accessibility/AXNodeObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698