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

Unified Diff: Source/web/WebLocalFrameImpl.cpp

Issue 330613002: Copying text closes the keyboard and the text input gets unfocused, forcing virtual keyboard is get… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed review comments Created 6 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/web/WebLocalFrameImpl.h ('k') | Source/web/WebRemoteFrameImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebLocalFrameImpl.cpp
diff --git a/Source/web/WebLocalFrameImpl.cpp b/Source/web/WebLocalFrameImpl.cpp
index f08b9a1da0a82a5ea5579543efd56a4c40184424..1bbd935e0976cb0e577d9fe26b24389d5df35be7 100644
--- a/Source/web/WebLocalFrameImpl.cpp
+++ b/Source/web/WebLocalFrameImpl.cpp
@@ -1834,6 +1834,16 @@ void WebLocalFrameImpl::setFindEndstateFocusAndSelection()
}
}
+bool WebLocalFrameImpl::setCaretSelectionFromRangeSelection()
+{
+ if (!hasSelection())
yosin_UTC9 2014/06/17 01:16:59 Q: Why do we need to call |hasSelection|? It seems
AKVT 2014/06/17 06:35:46 Done.
+ return false;
+
+ // Collapse the selection to end of Range Selection.
+ FrameSelection& selection = frame()->selection();
+ return selection.collapseToEnd();
+}
+
void WebLocalFrameImpl::didFail(const ResourceError& error, bool wasProvisional)
{
if (!client())
« no previous file with comments | « Source/web/WebLocalFrameImpl.h ('k') | Source/web/WebRemoteFrameImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698