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

Unified Diff: Source/core/layout/PendingSelection.h

Issue 1189963003: Templatize PendingSelection class (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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/layout/PendingSelection.h
diff --git a/Source/core/layout/PendingSelection.h b/Source/core/layout/PendingSelection.h
index 7b93a1068ad31dbb02c859928454dd133a2c39b0..8f6f75f0c8493631da08997dbcfe0c6908fd27a4 100644
--- a/Source/core/layout/PendingSelection.h
+++ b/Source/core/layout/PendingSelection.h
@@ -50,6 +50,12 @@ public:
private:
PendingSelection();
+ template <typename Strategy>
+ bool isInDocumentAlgorithm(const Document&) const;
+
+ template <typename Strategy>
+ VisibleSelection calcVisibleSelectionAlgorithm() const;
+
VisibleSelection m_selection;
bool m_hasPendingSelection : 1;
bool m_shouldShowBlockCursor : 1;

Powered by Google App Engine
This is Rietveld 408576698