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

Unified Diff: content/browser/accessibility/browser_accessibility_manager_auralinux.cc

Issue 1128183010: ATK accessibility support for web content on Aura Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixing nits Created 5 years, 5 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: 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
« no previous file with comments | « content/browser/accessibility/browser_accessibility_manager_auralinux.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698