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

Unified Diff: Source/web/WebViewImpl.cpp

Issue 179013002: Add WebDocument::clearFocusedElement (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 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/WebViewImpl.h ('k') | Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebViewImpl.cpp
diff --git a/Source/web/WebViewImpl.cpp b/Source/web/WebViewImpl.cpp
index e951dea957d7a6ee4cc9f66335e3adb66e4af824..3c3377d4b74fc251cfa1391c699ae2fbf5e73f2c 100644
--- a/Source/web/WebViewImpl.cpp
+++ b/Source/web/WebViewImpl.cpp
@@ -2512,6 +2512,12 @@ void WebViewImpl::setInitialFocus(bool reverse)
void WebViewImpl::clearFocusedNode()
{
+ // Deprecated API. Use clearFocusedElement instead.
+ clearFocusedElement();
+}
+
+void WebViewImpl::clearFocusedElement()
+{
RefPtr<Frame> frame = focusedWebCoreFrame();
if (!frame)
return;
« no previous file with comments | « Source/web/WebViewImpl.h ('k') | Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698