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

Unified Diff: Source/web/WebFrameImpl.cpp

Issue 22746004: Add API to WebFrame to enable/disable caret. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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/web/WebFrameImpl.h ('k') | public/web/WebFrame.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebFrameImpl.cpp
diff --git a/Source/web/WebFrameImpl.cpp b/Source/web/WebFrameImpl.cpp
index 0d69563f87d877860196d43002d219f0a2b0c2b2..639a06a2ed3d6a72f9c4a8c24ee1cd8df6b03878 100644
--- a/Source/web/WebFrameImpl.cpp
+++ b/Source/web/WebFrameImpl.cpp
@@ -1366,6 +1366,11 @@ void WebFrameImpl::moveCaretSelection(const WebPoint& point)
frame()->selection()->moveTo(position, UserTriggered);
}
+void WebFrameImpl::setCaretEnabled(bool enable)
+{
+ frame()->selection()->setCaretVisible(enable);
abarth-chromium 2013/08/12 18:40:34 Is there a reason to use a different name in the A
varunjain 2013/08/12 21:43:40 No particular reason. Changed.
+}
+
VisiblePosition WebFrameImpl::visiblePositionForWindowPoint(const WebPoint& point)
{
FloatPoint unscaledPoint(point);
« no previous file with comments | « Source/web/WebFrameImpl.h ('k') | public/web/WebFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698