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

Unified Diff: Source/modules/accessibility/AXLayoutObject.h

Issue 1185343003: Implements the ability to get and set the caret position and the current selection from anywhere in… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed some compiler errors. Created 5 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 side-by-side diff with in-line comments
Download patch
Index: Source/modules/accessibility/AXLayoutObject.h
diff --git a/Source/modules/accessibility/AXLayoutObject.h b/Source/modules/accessibility/AXLayoutObject.h
index d9f6af988cf90d2254ad4561ed8bc5392b3d99b1..746ce57ed8a6d59371796dee717a44db64813b85 100644
--- a/Source/modules/accessibility/AXLayoutObject.h
+++ b/Source/modules/accessibility/AXLayoutObject.h
@@ -182,12 +182,11 @@ protected:
virtual FrameView* documentFrameView() const override;
virtual Element* anchorElement() const override;
virtual Widget* widgetForAttachmentView() const override;
-
- // Selected text.
- virtual PlainTextRange selectedTextRange() const override;
+ virtual AXRange selection() const override;
dmazzoni 2015/06/22 17:13:35 Put this in its own section, not grouped next to t
+ virtual AXRange selectionUnderObject() const override;
// Modify or take an action on an object.
- virtual void setSelectedTextRange(const PlainTextRange&) override;
+ virtual void setSelection(const AXRange&) override;
virtual void setValue(const String&) override;
// Notifications that this object may have changed.
@@ -203,7 +202,6 @@ protected:
private:
AXObject* treeAncestorDisallowingChild() const;
void ariaListboxSelectedChildren(AccessibilityChildrenVector&);
- PlainTextRange visibleSelectionUnderObject() const;
bool nodeIsTextControl(const Node*) const;
bool isTabItemSelected() const;
AXObject* accessibilityImageMapHitTest(HTMLAreaElement*, const IntPoint&) const;
@@ -225,7 +223,8 @@ private:
void ariaSelectedRows(AccessibilityChildrenVector&);
bool elementAttributeValue(const QualifiedName&) const;
LayoutRect computeElementRect() const;
- VisibleSelection selection() const;
+ AXRange textControlSelection() const;
+ VisibleSelection visibleSelection() const;
int indexForVisiblePosition(const VisiblePosition&) const;
};

Powered by Google App Engine
This is Rietveld 408576698