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

Unified Diff: Source/core/editing/VisibleSelection.h

Issue 1313883002: Introduce firstRangeOf() as replacement of VisibleSelection::firstRange() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-08-25T17:47:14 Created 5 years, 4 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
« no previous file with comments | « Source/core/editing/SurroundingTextTest.cpp ('k') | Source/core/editing/VisibleSelection.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/VisibleSelection.h
diff --git a/Source/core/editing/VisibleSelection.h b/Source/core/editing/VisibleSelection.h
index 517023a64911d64670d2cbc36ad3e53117950f69..267368e1ec5cdeb0717589b860ced3b108395c9b 100644
--- a/Source/core/editing/VisibleSelection.h
+++ b/Source/core/editing/VisibleSelection.h
@@ -152,9 +152,6 @@ public:
bool expandUsingGranularity(TextGranularity);
bool expandUsingGranularityInComposedTree(TextGranularity);
- // We don't yet support multi-range selections, so we only ever have one range to return.
- PassRefPtrWillBeRawPtr<Range> firstRange() const;
-
bool intersectsNode(Node*) const;
// FIXME: Most callers probably don't want these functions, but
@@ -257,6 +254,10 @@ private:
bool m_isDirectional : 1; // Non-directional ignores m_baseIsFirst and selection always extends on shift + arrow key.
};
+// We don't yet support multi-range selections, so we only ever have one range
+// to return.
+CORE_EXPORT PassRefPtrWillBeRawPtr<Range> firstRangeOf(const VisibleSelection&);
+
} // namespace blink
#ifndef NDEBUG
« no previous file with comments | « Source/core/editing/SurroundingTextTest.cpp ('k') | Source/core/editing/VisibleSelection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698