Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(468)

Unified Diff: components/exo/ax_tree_source_surface.cc

Issue 2640123004: Initial support for native accessibility in ARC (Closed)
Patch Set: address feedback Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/exo/ax_tree_source_surface.cc
diff --git a/components/exo/ax_tree_source_surface.cc b/components/exo/ax_tree_source_surface.cc
new file mode 100644
index 0000000000000000000000000000000000000000..3840e21d85a40efac4169d58bb9bfdb8a09b2285
--- /dev/null
+++ b/components/exo/ax_tree_source_surface.cc
@@ -0,0 +1,28 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
yawano 2017/01/23 10:41:53 2017 instead of 2015?
David Tseng 2017/01/23 20:56:00 Done.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "components/exo/ax_tree_source_surface.h"
+
+namespace exo {
+
+AXTreeSourceSurface::AXTreeSourceSurface() {}
+
+AXTreeSourceSurface::~AXTreeSourceSurface() {}
+
+void AXTreeSourceSurface::NotifyAccessibilityEvent(uint32_t node_id,
+ ui::AXEvent event) {
+ for (AXTreeSourceSurface::Observer& observer : observers_)
+ observer.OnAccessibilityEvent(node_id, event);
+}
+
+void AXTreeSourceSurface::AddObserver(Observer* observer) {
+ observers_.AddObserver(observer);
+ Reset();
+}
+
+void AXTreeSourceSurface::RemoveObserver(Observer* observer) {
+ observers_.RemoveObserver(observer);
+}
+
+} // namespace exo

Powered by Google App Engine
This is Rietveld 408576698