Index: third_party/WebKit/public/web/WebLocalFrame.h |
diff --git a/third_party/WebKit/public/web/WebLocalFrame.h b/third_party/WebKit/public/web/WebLocalFrame.h |
index cdf3ab5c5a8323c8e1a8deefa86d42f96438e67b..c742d601f74817bb1a9cc3b438f41ef449729bec 100644 |
--- a/third_party/WebKit/public/web/WebLocalFrame.h |
+++ b/third_party/WebKit/public/web/WebLocalFrame.h |
@@ -11,6 +11,7 @@ |
#include "WebFrameLoadType.h" |
#include "WebHistoryItem.h" |
#include "public/platform/WebCachePolicy.h" |
+#include "public/platform/WebFocusType.h" |
#include "public/platform/WebURLError.h" |
#include "public/platform/WebURLRequest.h" |
#include "public/platform/site_engagement.mojom-shared.h" |
@@ -558,6 +559,13 @@ class WebLocalFrame : public WebFrame { |
// frame is attached to a document. |
virtual std::unique_ptr<WebURLLoader> CreateURLLoader() = 0; |
+ // 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) = 0; |
+ |
protected: |
explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) {} |