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

Unified Diff: ui/accessibility/platform/ax_platform_node_auralinux.h

Issue 1005293002: Re-land: Resurrect Aura Linux accessibility. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 9 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: ui/accessibility/platform/ax_platform_node_auralinux.h
diff --git a/ui/accessibility/platform/ax_platform_node_auralinux.h b/ui/accessibility/platform/ax_platform_node_auralinux.h
new file mode 100644
index 0000000000000000000000000000000000000000..eea142736d6b842a7e06e942032cff862658ed91
--- /dev/null
+++ b/ui/accessibility/platform/ax_platform_node_auralinux.h
@@ -0,0 +1,51 @@
+// Copyright 2015 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_ACCESSIBILITY_AX_PLATFORM_NODE_AURALINUX_H_
+#define UI_ACCESSIBILITY_AX_PLATFORM_NODE_AURALINUX_H_
+
+#include <atk/atk.h>
+
+#include "ui/accessibility/ax_export.h"
+#include "ui/accessibility/platform/ax_platform_node_base.h"
+
+namespace ui {
+
+// Implements accessibility on Aura Linux using ATK.
+class AXPlatformNodeAuraLinux : public AXPlatformNodeBase {
+ public:
+ AXPlatformNodeAuraLinux();
+
+ // Set or get the root-level Application object that's the parent of all
+ // top-level windows.
+ AX_EXPORT static void SetApplication(AXPlatformNode* application);
+ static AXPlatformNode* application() { return application_; }
+
+ AtkRole GetAtkRole();
+
+ // AXPlatformNode overrides.
+ void Destroy() override;
+ gfx::NativeViewAccessible GetNativeViewAccessible() override;
+ void NotifyAccessibilityEvent(ui::AXEvent event_type) override;
+
+ // AXPlatformNodeBase overrides.
+ void Init(AXPlatformNodeDelegate* delegate) override;
+ int GetIndexInParent() override;
+
+ private:
+ ~AXPlatformNodeAuraLinux() override;
+
+ // We own a reference to this ref-counted object.
+ AtkObject* atk_object_;
+
+ // The root-level Application object that's the parent of all
+ // top-level windows.
+ static AXPlatformNode* application_;
+
+ DISALLOW_COPY_AND_ASSIGN(AXPlatformNodeAuraLinux);
+};
+
+} // namespace ui
+
+#endif // UI_ACCESSIBILITY_AX_PLATFORM_NODE_AURALINUX_H_

Powered by Google App Engine
This is Rietveld 408576698