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

Unified Diff: third_party/WebKit/public/web/WebView.h

Issue 2839993002: [Android] Adding Smart GO/NEXT feature in Chrome (Closed)
Patch Set: Created 3 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: third_party/WebKit/public/web/WebView.h
diff --git a/third_party/WebKit/public/web/WebView.h b/third_party/WebKit/public/web/WebView.h
index b4b742e0ad74270332f44caeb38c57b4d5b979b1..235b22c66a260be9ac7b8aff559ba778a4e057cd 100644
--- a/third_party/WebKit/public/web/WebView.h
+++ b/third_party/WebKit/public/web/WebView.h
@@ -216,6 +216,13 @@ class WebView : protected WebWidget {
// previous element in the tab sequence (if reverse is true).
virtual void advanceFocus(bool reverse) {}
+ // 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) {}
nasko 2017/04/25 21:32:45 Please move this API to WebFrame. Forms are specif
AKVT 2017/04/26 10:33:04 Done.
+
// Advance the focus from the frame |from| to the next in sequence
// (determined by WebFocusType) focusable element in frame |to|. Used when
// focus needs to advance to/from a cross-process frame.

Powered by Google App Engine
This is Rietveld 408576698