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

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

Issue 1236823002: Move DragCaretController class to its own file (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-07-13T15:55:28 --similarity=30 Created 5 years, 5 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/Caret.h
diff --git a/Source/core/editing/Caret.h b/Source/core/editing/Caret.h
index 4331e54b6b613db145f7e9c449ee19db9bf73e02..3890514c30aec4efd6f6ba59baf42d56bbe053c2 100644
--- a/Source/core/editing/Caret.h
+++ b/Source/core/editing/Caret.h
@@ -74,34 +74,6 @@ private:
CaretVisibility m_caretVisibility;
};
-class DragCaretController final : public NoBaseWillBeGarbageCollected<DragCaretController>, private CaretBase {
- WTF_MAKE_NONCOPYABLE(DragCaretController);
- WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(DragCaretController);
-public:
- static PassOwnPtrWillBeRawPtr<DragCaretController> create();
-
- LayoutBlock* caretLayoutObject() const { return CaretBase::caretPainter(); }
- void paintDragCaret(LocalFrame*, GraphicsContext*, const LayoutPoint&, const LayoutRect& clipRect) const;
-
- bool isContentEditable() const { return m_position.rootEditableElement(); }
- bool isContentRichlyEditable() const;
-
- bool hasCaret() const { return m_position.isNotNull(); }
- const VisiblePosition& caretPosition() { return m_position; }
- void setCaretPosition(const VisiblePosition&);
- void clear() { setCaretPosition(VisiblePosition()); }
-
- void nodeWillBeRemoved(Node&);
-
- DECLARE_TRACE();
-
-private:
- DragCaretController();
-
- VisiblePosition m_position;
-};
-
} // namespace blink
-
#endif // Caret_h

Powered by Google App Engine
This is Rietveld 408576698