Index: content/browser/accessibility/browser_accessibility_manager_auralinux.cc |
diff --git a/content/browser/accessibility/browser_accessibility_manager_auralinux.cc b/content/browser/accessibility/browser_accessibility_manager_auralinux.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9a823f305a92c4e4693ebe36b0ea6888e26d213b |
--- /dev/null |
+++ b/content/browser/accessibility/browser_accessibility_manager_auralinux.cc |
@@ -0,0 +1,56 @@ |
+// Copyright (c) 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. |
+ |
+#include "content/browser/accessibility/browser_accessibility_manager_auralinux.h" |
+ |
+#include "content/browser/accessibility/browser_accessibility_auralinux.h" |
+#include "content/common/accessibility_messages.h" |
+ |
+namespace content { |
+ |
+// static |
+BrowserAccessibilityManager* BrowserAccessibilityManager::Create( |
+ const ui::AXTreeUpdate& initial_tree, |
+ BrowserAccessibilityDelegate* delegate, |
+ BrowserAccessibilityFactory* factory) { |
+ return new BrowserAccessibilityManagerAuraLinux(nullptr, initial_tree, |
+ delegate, factory); |
+} |
+ |
+BrowserAccessibilityManagerAuraLinux* |
+BrowserAccessibilityManager::ToBrowserAccessibilityManagerAuraLinux() { |
+ return static_cast<BrowserAccessibilityManagerAuraLinux*>(this); |
+} |
+ |
+BrowserAccessibilityManagerAuraLinux::BrowserAccessibilityManagerAuraLinux( |
+ AtkObject* parent_object, |
+ const ui::AXTreeUpdate& initial_tree, |
+ BrowserAccessibilityDelegate* delegate, |
+ BrowserAccessibilityFactory* factory) |
+ : BrowserAccessibilityManager(delegate, factory), |
+ parent_object_(parent_object) { |
+ Initialize(initial_tree); |
+} |
+ |
+BrowserAccessibilityManagerAuraLinux::~BrowserAccessibilityManagerAuraLinux() { |
+} |
+ |
+// static |
+ui::AXTreeUpdate BrowserAccessibilityManagerAuraLinux::GetEmptyDocument() { |
+ ui::AXNodeData empty_document; |
+ empty_document.id = 0; |
+ empty_document.role = ui::AX_ROLE_ROOT_WEB_AREA; |
+ empty_document.state = 1 << ui::AX_STATE_READ_ONLY; |
+ ui::AXTreeUpdate update; |
+ update.nodes.push_back(empty_document); |
+ return update; |
+} |
+ |
+void BrowserAccessibilityManagerAuraLinux::NotifyAccessibilityEvent( |
+ ui::AXEvent event_type, |
+ BrowserAccessibility* node) { |
+ // TODO(shreeram.k) : Implement. |
+} |
+ |
+} // namespace content |