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

Unified Diff: Source/core/editing/Editor.cpp

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, 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
« no previous file with comments | « Source/core/editing/Editor.h ('k') | Source/core/editing/FrameSelection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/Editor.cpp
diff --git a/Source/core/editing/Editor.cpp b/Source/core/editing/Editor.cpp
index b5cfacb099035de9db51a7cd15b04ffdc49f0472..fa3f00f2283f922688df9e1880e691829517b51f 100644
--- a/Source/core/editing/Editor.cpp
+++ b/Source/core/editing/Editor.cpp
@@ -2357,4 +2357,10 @@ bool Editor::unifiedTextCheckerEnabled() const
return WebCore::unifiedTextCheckerEnabled(m_frame);
}
+void Editor::toggleOverwriteModeEnabled()
+{
+ m_overwriteModeEnabled = !m_overwriteModeEnabled;
+ frame()->selection()->setShouldShowBlockCursor(m_overwriteModeEnabled);
+};
+
} // namespace WebCore
« no previous file with comments | « Source/core/editing/Editor.h ('k') | Source/core/editing/FrameSelection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698