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

Unified Diff: third_party/WebKit/Source/core/editing/DragCaretController.h

Issue 2388703002: Make DragCaretController store PositionWithAffinity instead of VisiblePosition (Closed)
Patch Set: Created 4 years, 2 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 | « no previous file | third_party/WebKit/Source/core/editing/DragCaretController.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/editing/DragCaretController.h
diff --git a/third_party/WebKit/Source/core/editing/DragCaretController.h b/third_party/WebKit/Source/core/editing/DragCaretController.h
index 5daa044781811e2bf67a624bb5bcde73830e04ea..f6a48e750f3391f8dbcbd7aeee24bd1bf5be50c4 100644
--- a/third_party/WebKit/Source/core/editing/DragCaretController.h
+++ b/third_party/WebKit/Source/core/editing/DragCaretController.h
@@ -43,7 +43,7 @@ class DragCaretController final
bool isContentRichlyEditable() const;
bool hasCaret() const { return m_position.isNotNull(); }
- const VisiblePosition& caretPosition() { return m_position; }
+ const PositionWithAffinity& caretPosition() { return m_position; }
void setCaretPosition(const PositionWithAffinity&);
void clear() { setCaretPosition(PositionWithAffinity()); }
@@ -54,7 +54,7 @@ class DragCaretController final
private:
DragCaretController();
- VisiblePosition m_position;
+ PositionWithAffinity m_position;
const Member<CaretBase> m_caretBase;
};
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/DragCaretController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698