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

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

Issue 14859008: Use a block cursor in overtype mode (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 8 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/FrameSelection.h
diff --git a/Source/core/editing/FrameSelection.h b/Source/core/editing/FrameSelection.h
index 9cd0db1cb45f1b4d092352e90a8c8b8cdb79d0fc..512f7dc29b7c80437db6fd95eb3d6240d7cc21ad 100644
--- a/Source/core/editing/FrameSelection.h
+++ b/Source/core/editing/FrameSelection.h
@@ -257,6 +257,9 @@ public:
void revealSelection(const ScrollAlignment& = ScrollAlignment::alignCenterIfNeeded, RevealExtentOption = DoNotRevealExtent);
void setSelectionFromNone();
+ bool shouldShowBlockCursor() const { return m_shouldShowBlockCursor; }
+ void setShouldShowBlockCursor(bool);
+
private:
enum EPositionType { START, END, BASE, EXTENT };
@@ -312,6 +315,7 @@ private:
bool m_caretPaint : 1;
bool m_isCaretBlinkingSuspended : 1;
bool m_focused : 1;
+ bool m_shouldShowBlockCursor : 1;
};
inline EditingStyle* FrameSelection::typingStyle() const

Powered by Google App Engine
This is Rietveld 408576698