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

Unified Diff: third_party/WebKit/Source/core/editing/InputMethodController.cpp

Issue 2926023002: [TRY-BOT-CHECK] Adding support for Smart GO NEXT feature in Android Chrome (Closed)
Patch Set: Adding support for Smart GO NEXT feature in Android Chrome Created 3 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/editing/InputMethodController.cpp
diff --git a/third_party/WebKit/Source/core/editing/InputMethodController.cpp b/third_party/WebKit/Source/core/editing/InputMethodController.cpp
index c4e039d5220e16740a7d5bc8ae5457bf5c888c2d..e56c67de63910f5bf856edb1afe1602bfdc1c621 100644
--- a/third_party/WebKit/Source/core/editing/InputMethodController.cpp
+++ b/third_party/WebKit/Source/core/editing/InputMethodController.cpp
@@ -45,6 +45,8 @@
#include "core/layout/LayoutObject.h"
#include "core/layout/LayoutTheme.h"
#include "core/page/ChromeClient.h"
+#include "core/page/FocusController.h"
+#include "core/page/Page.h"
namespace blink {
@@ -1134,6 +1136,19 @@ int InputMethodController::TextInputFlags() const {
}
}
+ if (IsHTMLFormControlElement(element)) {
+ if (GetDocument()
+ .GetPage()
+ ->GetFocusController()
+ .NextFocusableElementInForm(element, kWebFocusTypeForward))
+ flags |= kWebTextInputFlagHaveNextFocusableElement;
+ if (GetDocument()
+ .GetPage()
+ ->GetFocusController()
+ .NextFocusableElementInForm(element, kWebFocusTypeBackward))
+ flags |= kWebTextInputFlagHavePreviousFocusableElement;
+ }
+
return flags;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698