diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2015-03-05 15:00:32 +0100 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2015-03-06 11:04:22 +0100 |
commit | 936d70288fd30f4df42bc382fec886a6495ef582 (patch) | |
tree | 84ac3dd67310c8428a8d47be22c40cdbcc4762eb /recipes-qt/qt5/qtwebengine | |
parent | b6c10d7c7ef6010e79d58227615045c84c118c43 (diff) | |
download | meta-qt5-936d70288fd30f4df42bc382fec886a6495ef582.tar.gz |
qtwebengine: Fix build with accessibility enabled
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'recipes-qt/qt5/qtwebengine')
-rw-r--r-- | recipes-qt/qt5/qtwebengine/0004-Enable-building-Qt-WebEngine-without-accessiblity-en.patch | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/recipes-qt/qt5/qtwebengine/0004-Enable-building-Qt-WebEngine-without-accessiblity-en.patch b/recipes-qt/qt5/qtwebengine/0004-Enable-building-Qt-WebEngine-without-accessiblity-en.patch index 7dfad9ac..63387c75 100644 --- a/recipes-qt/qt5/qtwebengine/0004-Enable-building-Qt-WebEngine-without-accessiblity-en.patch +++ b/recipes-qt/qt5/qtwebengine/0004-Enable-building-Qt-WebEngine-without-accessiblity-en.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From dca162bbe2e0356596bdc4469fb0754be27e0b7d Mon Sep 17 00:00:00 2001 | 1 | From 6ba64ed2e7136c5a9067d7e1793c0db15e762403 Mon Sep 17 00:00:00 2001 |
2 | From: Stephan Binner <stephan.binner@basyskom.com> | 2 | From: Stephan Binner <stephan.binner@basyskom.com> |
3 | Date: Wed, 4 Mar 2015 12:39:29 +0100 | 3 | Date: Wed, 4 Mar 2015 12:39:29 +0100 |
4 | Subject: [PATCH 4/4] Enable building Qt WebEngine without accessiblity | 4 | Subject: [PATCH 4/4] Enable building Qt WebEngine without accessiblity |
@@ -24,7 +24,7 @@ Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com> | |||
24 | src/core/browser_accessibility_manager_qt.h | 2 ++ | 24 | src/core/browser_accessibility_manager_qt.h | 2 ++ |
25 | src/core/browser_accessibility_qt.cpp | 4 ++++ | 25 | src/core/browser_accessibility_qt.cpp | 4 ++++ |
26 | src/core/browser_accessibility_qt.h | 3 +++ | 26 | src/core/browser_accessibility_qt.h | 3 +++ |
27 | src/core/render_widget_host_view_qt.cpp | 13 ++++++++++++- | 27 | src/core/render_widget_host_view_qt.cpp | 11 ++++++++++- |
28 | src/core/render_widget_host_view_qt.h | 6 +++++- | 28 | src/core/render_widget_host_view_qt.h | 6 +++++- |
29 | src/core/web_contents_adapter.cpp | 2 ++ | 29 | src/core/web_contents_adapter.cpp | 2 ++ |
30 | src/core/web_contents_adapter_client.h | 2 ++ | 30 | src/core/web_contents_adapter_client.h | 2 ++ |
@@ -37,7 +37,7 @@ Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com> | |||
37 | src/webenginewidgets/api/qwebengineview.cpp | 7 ++++++- | 37 | src/webenginewidgets/api/qwebengineview.cpp | 7 ++++++- |
38 | src/webenginewidgets/api/qwebengineview_p.h | 3 ++- | 38 | src/webenginewidgets/api/qwebengineview_p.h | 3 ++- |
39 | tests/quicktestbrowser/quicktestbrowser.pro | 2 ++ | 39 | tests/quicktestbrowser/quicktestbrowser.pro | 2 ++ |
40 | 18 files changed, 73 insertions(+), 5 deletions(-) | 40 | 18 files changed, 71 insertions(+), 5 deletions(-) |
41 | 41 | ||
42 | diff --git a/examples/webengine/quicknanobrowser/quicknanobrowser.pro b/examples/webengine/quicknanobrowser/quicknanobrowser.pro | 42 | diff --git a/examples/webengine/quicknanobrowser/quicknanobrowser.pro b/examples/webengine/quicknanobrowser/quicknanobrowser.pro |
43 | index 3628b81..a8e57b0 100644 | 43 | index 3628b81..a8e57b0 100644 |
@@ -132,7 +132,7 @@ index db190ff..e87b5d8 100644 | |||
132 | +#endif // QT_NO_ACCESSIBILITY | 132 | +#endif // QT_NO_ACCESSIBILITY |
133 | #endif | 133 | #endif |
134 | diff --git a/src/core/render_widget_host_view_qt.cpp b/src/core/render_widget_host_view_qt.cpp | 134 | diff --git a/src/core/render_widget_host_view_qt.cpp b/src/core/render_widget_host_view_qt.cpp |
135 | index c221e94..18d64e8 100644 | 135 | index c221e94..4c8a2c1 100644 |
136 | --- a/src/core/render_widget_host_view_qt.cpp | 136 | --- a/src/core/render_widget_host_view_qt.cpp |
137 | +++ b/src/core/render_widget_host_view_qt.cpp | 137 | +++ b/src/core/render_widget_host_view_qt.cpp |
138 | @@ -198,15 +198,18 @@ RenderWidgetHostViewQt::RenderWidgetHostViewQt(content::RenderWidgetHost* widget | 138 | @@ -198,15 +198,18 @@ RenderWidgetHostViewQt::RenderWidgetHostViewQt(content::RenderWidgetHost* widget |
@@ -163,17 +163,15 @@ index c221e94..18d64e8 100644 | |||
163 | if (GetBrowserAccessibilityManager()) | 163 | if (GetBrowserAccessibilityManager()) |
164 | return; | 164 | return; |
165 | 165 | ||
166 | @@ -303,6 +307,9 @@ void RenderWidgetHostViewQt::CreateBrowserAccessibilityManagerIfNeeded() | 166 | @@ -303,6 +307,7 @@ void RenderWidgetHostViewQt::CreateBrowserAccessibilityManagerIfNeeded() |
167 | m_adapterClient->accessibilityParentObject(), | 167 | m_adapterClient->accessibilityParentObject(), |
168 | content::BrowserAccessibilityManagerQt::GetEmptyDocument(), | 168 | content::BrowserAccessibilityManagerQt::GetEmptyDocument(), |
169 | this)); | 169 | this)); |
170 | +#else | ||
171 | + return 0; | ||
172 | +#endif // QT_NO_ACCESSIBILITY | 170 | +#endif // QT_NO_ACCESSIBILITY |
173 | } | 171 | } |
174 | 172 | ||
175 | // Set focus to the associated View component. | 173 | // Set focus to the associated View component. |
176 | @@ -953,6 +960,7 @@ void RenderWidgetHostViewQt::AccessibilityFatalError() | 174 | @@ -953,6 +958,7 @@ void RenderWidgetHostViewQt::AccessibilityFatalError() |
177 | SetBrowserAccessibilityManager(NULL); | 175 | SetBrowserAccessibilityManager(NULL); |
178 | } | 176 | } |
179 | 177 | ||
@@ -181,7 +179,7 @@ index c221e94..18d64e8 100644 | |||
181 | void RenderWidgetHostViewQt::accessibilityActiveChanged(bool active) | 179 | void RenderWidgetHostViewQt::accessibilityActiveChanged(bool active) |
182 | { | 180 | { |
183 | if (active) | 181 | if (active) |
184 | @@ -960,6 +968,7 @@ void RenderWidgetHostViewQt::accessibilityActiveChanged(bool active) | 182 | @@ -960,6 +966,7 @@ void RenderWidgetHostViewQt::accessibilityActiveChanged(bool active) |
185 | else | 183 | else |
186 | content::BrowserAccessibilityStateImpl::GetInstance()->DisableAccessibility(); | 184 | content::BrowserAccessibilityStateImpl::GetInstance()->DisableAccessibility(); |
187 | } | 185 | } |
@@ -189,7 +187,7 @@ index c221e94..18d64e8 100644 | |||
189 | 187 | ||
190 | void RenderWidgetHostViewQt::handleWheelEvent(QWheelEvent *ev) | 188 | void RenderWidgetHostViewQt::handleWheelEvent(QWheelEvent *ev) |
191 | { | 189 | { |
192 | @@ -1042,6 +1051,7 @@ void RenderWidgetHostViewQt::handleFocusEvent(QFocusEvent *ev) | 190 | @@ -1042,6 +1049,7 @@ void RenderWidgetHostViewQt::handleFocusEvent(QFocusEvent *ev) |
193 | } | 191 | } |
194 | } | 192 | } |
195 | 193 | ||
@@ -197,7 +195,7 @@ index c221e94..18d64e8 100644 | |||
197 | QAccessibleInterface *RenderWidgetHostViewQt::GetQtAccessible() | 195 | QAccessibleInterface *RenderWidgetHostViewQt::GetQtAccessible() |
198 | { | 196 | { |
199 | // Assume we have a screen reader doing stuff | 197 | // Assume we have a screen reader doing stuff |
200 | @@ -1051,6 +1061,7 @@ QAccessibleInterface *RenderWidgetHostViewQt::GetQtAccessible() | 198 | @@ -1051,6 +1059,7 @@ QAccessibleInterface *RenderWidgetHostViewQt::GetQtAccessible() |
201 | content::BrowserAccessibilityQt *accQt = static_cast<content::BrowserAccessibilityQt*>(acc); | 199 | content::BrowserAccessibilityQt *accQt = static_cast<content::BrowserAccessibilityQt*>(acc); |
202 | return accQt; | 200 | return accQt; |
203 | } | 201 | } |