From 9d1a77b5be56a6a1dade613573eaeea63070969f Mon Sep 17 00:00:00 2001 From: Stephan Binner Date: Wed, 4 Mar 2015 12:39:29 +0100 Subject: Enable building Qt WebEngine without accessiblity enabled. This adds guards that for QT_NO_ACCESSIBILITY being not defined around the code that uses accessibility types. It disables the quicknanobrowser and quicktestbrowser examples which need Qt QuickControls, which has a hard dependency to accessibility being enabled. Backport of d95b9295c970401939d2779cbdc9e2a8c7965277 from 5.5 Change-Id: I2a2a0a6196fcb3baa39603d9c929183b454f39ed Reviewed-by: Andras Becsi --- src/core/browser_accessibility_qt.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/core/browser_accessibility_qt.cpp') diff --git a/src/core/browser_accessibility_qt.cpp b/src/core/browser_accessibility_qt.cpp index b5cd26f2f..4b8e97a3f 100644 --- a/src/core/browser_accessibility_qt.cpp +++ b/src/core/browser_accessibility_qt.cpp @@ -40,6 +40,8 @@ #include "browser_accessibility_qt.h" +#ifndef QT_NO_ACCESSIBILITY + #include "third_party/WebKit/public/web/WebAXEnums.h" #include "ui/accessibility/ax_node_data.h" @@ -898,3 +900,5 @@ void BrowserAccessibilityQt::modelChange(QAccessibleTableModelChangeEvent *) } } // namespace content + +#endif // QT_NO_ACCESSIBILITY -- cgit v1.2.3