From 76688d321702c9b822fa192f1ba419afc9a244b7 Mon Sep 17 00:00:00 2001 From: Martin Jansa Date: Thu, 5 Mar 2015 15:00:32 +0100 Subject: [PATCH] qtwebengine: Fix build with accessibility enabled (From meta-qt5 rev: 936d70288fd30f4df42bc382fec886a6495ef582) Signed-off-by: Martin Jansa Signed-off-by: Mauro Carvalho Chehab --- ...ilding-Qt-WebEngine-without-accessiblity-en.patch | 20 +++++++++----------- meta-qt5/recipes-qt/qt5/qtwebengine_git.bb | 2 +- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/meta-qt5/recipes-qt/qt5/qtwebengine/0004-Enable-building-Qt-WebEngine-without-accessiblity-en.patch b/meta-qt5/recipes-qt/qt5/qtwebengine/0004-Enable-building-Qt-WebEngine-without-accessiblity-en.patch index 7dfad9a..63387c7 100644 --- a/meta-qt5/recipes-qt/qt5/qtwebengine/0004-Enable-building-Qt-WebEngine-without-accessiblity-en.patch +++ b/meta-qt5/recipes-qt/qt5/qtwebengine/0004-Enable-building-Qt-WebEngine-without-accessiblity-en.patch @@ -1,4 +1,4 @@ -From dca162bbe2e0356596bdc4469fb0754be27e0b7d Mon Sep 17 00:00:00 2001 +From 6ba64ed2e7136c5a9067d7e1793c0db15e762403 Mon Sep 17 00:00:00 2001 From: Stephan Binner Date: Wed, 4 Mar 2015 12:39:29 +0100 Subject: [PATCH 4/4] Enable building Qt WebEngine without accessiblity @@ -24,7 +24,7 @@ Reviewed-by: Andras Becsi src/core/browser_accessibility_manager_qt.h | 2 ++ src/core/browser_accessibility_qt.cpp | 4 ++++ src/core/browser_accessibility_qt.h | 3 +++ - src/core/render_widget_host_view_qt.cpp | 13 ++++++++++++- + src/core/render_widget_host_view_qt.cpp | 11 ++++++++++- src/core/render_widget_host_view_qt.h | 6 +++++- src/core/web_contents_adapter.cpp | 2 ++ src/core/web_contents_adapter_client.h | 2 ++ @@ -37,7 +37,7 @@ Reviewed-by: Andras Becsi src/webenginewidgets/api/qwebengineview.cpp | 7 ++++++- src/webenginewidgets/api/qwebengineview_p.h | 3 ++- tests/quicktestbrowser/quicktestbrowser.pro | 2 ++ - 18 files changed, 73 insertions(+), 5 deletions(-) + 18 files changed, 71 insertions(+), 5 deletions(-) diff --git a/examples/webengine/quicknanobrowser/quicknanobrowser.pro b/examples/webengine/quicknanobrowser/quicknanobrowser.pro index 3628b81..a8e57b0 100644 @@ -132,7 +132,7 @@ index db190ff..e87b5d8 100644 +#endif // QT_NO_ACCESSIBILITY #endif diff --git a/src/core/render_widget_host_view_qt.cpp b/src/core/render_widget_host_view_qt.cpp -index c221e94..18d64e8 100644 +index c221e94..4c8a2c1 100644 --- a/src/core/render_widget_host_view_qt.cpp +++ b/src/core/render_widget_host_view_qt.cpp @@ -198,15 +198,18 @@ RenderWidgetHostViewQt::RenderWidgetHostViewQt(content::RenderWidgetHost* widget @@ -163,17 +163,15 @@ index c221e94..18d64e8 100644 if (GetBrowserAccessibilityManager()) return; -@@ -303,6 +307,9 @@ void RenderWidgetHostViewQt::CreateBrowserAccessibilityManagerIfNeeded() +@@ -303,6 +307,7 @@ void RenderWidgetHostViewQt::CreateBrowserAccessibilityManagerIfNeeded() m_adapterClient->accessibilityParentObject(), content::BrowserAccessibilityManagerQt::GetEmptyDocument(), this)); -+#else -+ return 0; +#endif // QT_NO_ACCESSIBILITY } // Set focus to the associated View component. -@@ -953,6 +960,7 @@ void RenderWidgetHostViewQt::AccessibilityFatalError() +@@ -953,6 +958,7 @@ void RenderWidgetHostViewQt::AccessibilityFatalError() SetBrowserAccessibilityManager(NULL); } @@ -181,7 +179,7 @@ index c221e94..18d64e8 100644 void RenderWidgetHostViewQt::accessibilityActiveChanged(bool active) { if (active) -@@ -960,6 +968,7 @@ void RenderWidgetHostViewQt::accessibilityActiveChanged(bool active) +@@ -960,6 +966,7 @@ void RenderWidgetHostViewQt::accessibilityActiveChanged(bool active) else content::BrowserAccessibilityStateImpl::GetInstance()->DisableAccessibility(); } @@ -189,7 +187,7 @@ index c221e94..18d64e8 100644 void RenderWidgetHostViewQt::handleWheelEvent(QWheelEvent *ev) { -@@ -1042,6 +1051,7 @@ void RenderWidgetHostViewQt::handleFocusEvent(QFocusEvent *ev) +@@ -1042,6 +1049,7 @@ void RenderWidgetHostViewQt::handleFocusEvent(QFocusEvent *ev) } } @@ -197,7 +195,7 @@ index c221e94..18d64e8 100644 QAccessibleInterface *RenderWidgetHostViewQt::GetQtAccessible() { // Assume we have a screen reader doing stuff -@@ -1051,6 +1061,7 @@ QAccessibleInterface *RenderWidgetHostViewQt::GetQtAccessible() +@@ -1051,6 +1059,7 @@ QAccessibleInterface *RenderWidgetHostViewQt::GetQtAccessible() content::BrowserAccessibilityQt *accQt = static_cast(acc); return accQt; } diff --git a/meta-qt5/recipes-qt/qt5/qtwebengine_git.bb b/meta-qt5/recipes-qt/qt5/qtwebengine_git.bb index 89a83d4..45b1d8c 100644 --- a/meta-qt5/recipes-qt/qt5/qtwebengine_git.bb +++ b/meta-qt5/recipes-qt/qt5/qtwebengine_git.bb @@ -11,7 +11,7 @@ SRC_URI += " \ file://0003-functions.prf-allow-build-for-linux-oe-g-platform.patch \ file://0001-chromium-base.gypi-include-atomicops_internals_x86_g.patch \ " -SRCREV_qtwebengine = "9d1a77b5be56a6a1dade613573eaeea63070969f" +SRCREV_qtwebengine = "8b2cb3b6b4546d333ff7d265d3875d2ed46c2c0a" SRCREV_chromium = "f9c03801de86b5e9da2b915a9e490c2f2254fecf" SRCREV = "${SRCREV_qtwebengine}" -- 2.7.4