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

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

Issue 1182253004: Templatize FrameSelection::contains function (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-06-18T14:44:59 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/core/editing/VisibleSelection.h
diff --git a/Source/core/editing/VisibleSelection.h b/Source/core/editing/VisibleSelection.h
index 45a4d61281c2dd28cfe8003893ee4d131b11df7e..939fbc62a1263341a0ddede9710b0bbbe466ecc4 100644
--- a/Source/core/editing/VisibleSelection.h
+++ b/Source/core/editing/VisibleSelection.h
@@ -51,6 +51,9 @@ public:
static PositionType selectionExtent(const VisibleSelection& selection) { return selection.extent(); }
static PositionType selectionStart(const VisibleSelection& selection) { return selection.start(); }
static PositionType selectionEnd(const VisibleSelection& selection) { return selection.end(); }
+ static VisiblePosition selectionVisibleStart(const VisibleSelection& selection) { return selection.visibleStart(); }
+ static VisiblePosition selectionVisibleEnd(const VisibleSelection& selection) { return selection.visibleEnd(); }
+ static PositionType toPositionType(const Position& position) { return position; }
};
VisibleSelection();
« Source/core/editing/FrameSelection.cpp ('K') | « Source/core/editing/FrameSelection.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698