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

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, 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/Editor.cpp
diff --git a/Source/core/editing/Editor.cpp b/Source/core/editing/Editor.cpp
index 9b088b228ddfc35b76372abff0a8ce1006fb0213..e3003dc81516e8b8489b77c7211d9cb12f4312a0 100644
--- a/Source/core/editing/Editor.cpp
+++ b/Source/core/editing/Editor.cpp
@@ -2913,4 +2913,10 @@ void Editor::applyDictationAlternativelternative(const String& alternativeString
m_alternativeTextController->applyDictationAlternative(alternativeString);
}
+void Editor::toggleOverwriteModeEnabled()
+{
+ m_overwriteModeEnabled = !m_overwriteModeEnabled;
esprehn 2013/06/12 19:25:30 I'd prefer we didn't store the overwrite mode stat
svillar 2013/06/13 08:53:06 So there is a reason for having these two states w
+ frame()->selection()->setShouldShowBlockCursor(m_overwriteModeEnabled);
+};
+
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698