summaryrefslogtreecommitdiff
path: root/chromium/ui/views/accessibility/ax_event_observer.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2019-02-13 15:05:36 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2019-02-14 10:33:47 +0000
commite684a3455bcc29a6e3e66a004e352dea4e1141e7 (patch)
treed55b4003bde34d7d05f558f02cfd82b2a66a7aac /chromium/ui/views/accessibility/ax_event_observer.h
parent2b94bfe47ccb6c08047959d1c26e392919550e86 (diff)
downloadqtwebengine-chromium-e684a3455bcc29a6e3e66a004e352dea4e1141e7.tar.gz
BASELINE: Update Chromium to 72.0.3626.110 and Ninja to 1.9.0
Change-Id: Ic57220b00ecc929a893c91f5cc552f5d3e99e922 Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'chromium/ui/views/accessibility/ax_event_observer.h')
-rw-r--r--chromium/ui/views/accessibility/ax_event_observer.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/chromium/ui/views/accessibility/ax_event_observer.h b/chromium/ui/views/accessibility/ax_event_observer.h
new file mode 100644
index 00000000000..5fc3c812888
--- /dev/null
+++ b/chromium/ui/views/accessibility/ax_event_observer.h
@@ -0,0 +1,28 @@
+// Copyright 2018 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_VIEWS_ACCESSIBILITY_AX_EVENT_OBSERVER_H_
+#define UI_VIEWS_ACCESSIBILITY_AX_EVENT_OBSERVER_H_
+
+#include "base/observer_list_types.h"
+#include "ui/accessibility/ax_enums.mojom.h"
+#include "ui/views/views_export.h"
+
+namespace views {
+
+class View;
+
+// AXEventObserver is notified for accessibility events on all views.
+class VIEWS_EXPORT AXEventObserver : public base::CheckedObserver {
+ public:
+ virtual void OnViewEvent(views::View* view, ax::mojom::Event event_type) = 0;
+
+ protected:
+ AXEventObserver();
+ ~AXEventObserver() override;
+};
+
+} // namespace views
+
+#endif // UI_VIEWS_ACCESSIBILITY_AX_EVENT_OBSERVER_H_