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

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

Issue 2839993002: [Android] Adding Smart GO/NEXT feature in Chrome (Closed)
Patch Set: Fixed WebViewTest build issues after restructure. 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/WebFrame.h
diff --git a/third_party/WebKit/public/web/WebFrame.h b/third_party/WebKit/public/web/WebFrame.h
index 1be0587e0a5a6182400299102705af18891eca38..52915ce4d77896f1ab36beda87c97ad0c4298559 100644
--- a/third_party/WebKit/public/web/WebFrame.h
+++ b/third_party/WebKit/public/web/WebFrame.h
@@ -31,6 +31,7 @@
#ifndef WebFrame_h
#define WebFrame_h
+#include "../platform/WebFocusType.h"
#include "WebIconURL.h"
#include "WebNode.h"
#include "public/platform/WebCanvas.h"
@@ -420,6 +421,13 @@ class WebFrame {
return const_cast<WebFrame*>(this)->toImplBase();
}
+ // 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;
EhsanK 2017/04/26 21:31:59 I suggest removing this to WebLocalFrame. I don't
AKVT 2017/04/27 15:07:02 Done.
+
// Returns the frame inside a given frame or iframe element. Returns 0 if
// the given element is not a frame, iframe or if the frame is empty.
BLINK_EXPORT static WebFrame* fromFrameOwnerElement(const WebElement&);

Powered by Google App Engine
This is Rietveld 408576698