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

Unified Diff: public/web/WebView.h

Issue 939603002: Adding support for Smart GO NEXT feature in Android Chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed unit test breaks due to one element skip. Created 5 years, 4 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 | « public/web/WebTextInputType.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebView.h
diff --git a/public/web/WebView.h b/public/web/WebView.h
index 9f564ecebeb970cb39c705fa73652de7aeffb902..5fe1ae1cbc09f34edbf65d81ac5429c56bf57435 100644
--- a/public/web/WebView.h
+++ b/public/web/WebView.h
@@ -33,6 +33,7 @@
#include "../platform/WebColor.h"
#include "../platform/WebDisplayMode.h"
+#include "../platform/WebFocusType.h"
#include "../platform/WebPageVisibilityState.h"
#include "../platform/WebString.h"
#include "../platform/WebVector.h"
@@ -179,6 +180,12 @@ public:
// Smooth scroll the root layer to |targetX|, |targetY| in |durationMs|.
virtual void smoothScroll(int targetX, int targetY, long durationMs) { }
+ // Advance the focus of the WebView to next text input element from current
+ // input field wrt sequential navigation with TAB or Shift + TAB
+ // WebFocusTypeForward simulates TAB and WebFocusTypeBackward simulates
+ // Shift + TAB. (Will be extended to other form Controls like Select element, Checkbox, Radio etc.)
+ virtual void advanceFocusInForm(WebFocusType focusType) {}
+
// Advance the focus of the WebView forward to the next element or to the
// previous element in the tab sequence (if reverse is true).
virtual void advanceFocus(bool reverse) { }
« no previous file with comments | « public/web/WebTextInputType.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698