summaryrefslogtreecommitdiffstats
path: root/src/core/browser_accessibility_qt.h
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@digia.com>2014-07-16 15:41:20 +0200
committerFrederik Gladhorn <frederik.gladhorn@digia.com>2014-07-24 14:33:42 +0200
commitb8dee3b91412289470ed6bd62d5d3a3b27157f92 (patch)
tree36e492d5485fae63c08d22f4336d281e17595d23 /src/core/browser_accessibility_qt.h
parent0243b5b62912724ed20d4825a54c58ca1b41be19 (diff)
Implement QAccessibleActionInterface
For now only setting the focus via accessibility APIs is supported. Being able to do that is important since screen readers allow exploring the application in different ways and expect to be able to set the focus according to what they present to the user. Change-Id: I4ce17039307844a77c0274d743f5afbe049e3c66 Reviewed-by: Michael Bruning <michael.bruning@digia.com>
Diffstat (limited to 'src/core/browser_accessibility_qt.h')
-rw-r--r--src/core/browser_accessibility_qt.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/browser_accessibility_qt.h b/src/core/browser_accessibility_qt.h
index 2c85b3349..5a0e4f026 100644
--- a/src/core/browser_accessibility_qt.h
+++ b/src/core/browser_accessibility_qt.h
@@ -50,6 +50,7 @@ namespace content {
class BrowserAccessibilityQt
: public BrowserAccessibility
, public QAccessibleInterface
+ , public QAccessibleActionInterface
, public QAccessibleTextInterface
, public QAccessibleValueInterface
{
@@ -80,6 +81,11 @@ public:
void NativeReleaseReference() Q_DECL_OVERRIDE;
bool IsNative() const Q_DECL_OVERRIDE { return true; }
+ // QAccessibleActionInterface
+ QStringList actionNames() const Q_DECL_OVERRIDE;
+ void doAction(const QString &actionName) Q_DECL_OVERRIDE;
+ QStringList keyBindingsForAction(const QString &actionName) const Q_DECL_OVERRIDE;
+
// QAccessibleTextInterface
void addSelection(int startOffset, int endOffset) Q_DECL_OVERRIDE;
QString attributes(int offset, int *startOffset, int *endOffset) const Q_DECL_OVERRIDE;