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

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 the review comments and reused FocusController function for Navigation. 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
« Source/core/page/FocusController.cpp ('K') | « 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 7c9c9b82d328d7ded64228da45a8f36ed5b713dc..72a5c1272b77b630c09fd2bad48c3f55c0c3aa62 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"
@@ -182,6 +183,12 @@ public:
// viewport space. Returns true if an animation was started.
virtual bool scrollFocusedNodeIntoRect(const WebRect&) { return false; }
+ // 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.
+ virtual void advanceFocusToNextInputField(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) { }
« Source/core/page/FocusController.cpp ('K') | « public/web/WebTextInputType.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698