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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 1080693002: Implementation of Smart GO NEXT feature in Android Chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated based on blink side reviews. Created 5 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: content/browser/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index 05f980664b463b1a958203d03c01e31495ab56ac..dc73063b540f38f94cd6327815f714fe09154bbb 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -2121,6 +2121,14 @@ void WebContentsImpl::Unselect() {
RecordAction(base::UserMetricsAction("Unselect"));
}
+void WebContentsImpl::AdvanceFocusInForm(bool forward) {
+ RenderViewHost* render_view_host = GetRenderViewHost();
+ if (!render_view_host)
+ return;
+ render_view_host->Send(new InputMsg_AdvanceFocusInForm(
+ render_view_host->GetRoutingID(), forward));
+}
+
void WebContentsImpl::Replace(const base::string16& word) {
RenderFrameHost* focused_frame = GetFocusedFrame();
if (!focused_frame)

Powered by Google App Engine
This is Rietveld 408576698