From 331b7fa11c84107e3300b14ece5fc5991cfc35e9 Mon Sep 17 00:00:00 2001 From: Zeno Albisser Date: Fri, 31 Jan 2014 17:24:40 +0100 Subject: Add TakeFocus in WebContentsViewQt for passing on tab focus. Chromium calls RenderViewHostDelegate::TakeFocus when the last focusable item within the page was reached. We then have to move the focus on to the next/previous QQuickItem. Change-Id: Id0128053602ff1220c1bced1b218050b66fef659 Reviewed-by: Andras Becsi --- src/core/web_contents_view_qt.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/core/web_contents_view_qt.h') diff --git a/src/core/web_contents_view_qt.h b/src/core/web_contents_view_qt.h index ee81ccc81..1c9da487b 100644 --- a/src/core/web_contents_view_qt.h +++ b/src/core/web_contents_view_qt.h @@ -112,6 +112,8 @@ public: virtual void ShowContextMenu(const content::ContextMenuParams ¶ms) Q_DECL_OVERRIDE; + virtual void TakeFocus(bool reverse) Q_DECL_OVERRIDE; + #if defined(OS_MACOSX) virtual void SetAllowOverlappingViews(bool overlapping) Q_DECL_OVERRIDE { QT_NOT_YET_IMPLEMENTED } virtual void CloseTabAfterEventTracking() Q_DECL_OVERRIDE { QT_NOT_YET_IMPLEMENTED } -- cgit v1.2.3