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

Unified Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp

Issue 2839993002: [Android] Adding Smart GO/NEXT feature in Chrome (Closed)
Patch Set: Fixed the build break by replacing WebViewImpl object with WebViewBase Created 3 years, 7 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: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
index d52034415f655c8f04992fd214c97c203ddecdbf..d3c896c1226900387bc6105f2e4d28f1fa7a73bd 100644
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
@@ -2600,6 +2600,22 @@ void WebLocalFrameImpl::ExtractSmartClipData(WebRect rect_in_viewport,
}
}
+void WebLocalFrameImpl::AdvanceFocusInForm(WebFocusType focus_type) {
+ DCHECK(GetFrame()->GetDocument());
+ Element* element = GetFrame()->GetDocument()->FocusedElement();
+ if (!element)
+ return;
+
+ Element* next_element =
+ GetFrame()->GetPage()->GetFocusController().NextFocusableElementInForm(
+ element, focus_type);
+ if (!next_element)
+ return;
+
+ next_element->scrollIntoViewIfNeeded(true /*centerIfNeeded*/);
+ next_element->focus();
+}
+
TextCheckerClient& WebLocalFrameImpl::GetTextCheckerClient() const {
return *text_checker_client_;
}
« no previous file with comments | « third_party/WebKit/Source/web/WebLocalFrameImpl.h ('k') | third_party/WebKit/Source/web/tests/WebViewTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698