1 // Copyright (c) 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "content/browser/accessibility/browser_accessibility_manager_auralinux.h"
7 #include "content/browser/accessibility/browser_accessibility_auralinux.h"
8 #include "content/common/accessibility_messages.h"
13 BrowserAccessibilityManager
* BrowserAccessibilityManager::Create(
14 const SimpleAXTreeUpdate
& initial_tree
,
15 BrowserAccessibilityDelegate
* delegate
,
16 BrowserAccessibilityFactory
* factory
) {
17 return new BrowserAccessibilityManagerAuraLinux(nullptr, initial_tree
,
21 BrowserAccessibilityManagerAuraLinux
*
22 BrowserAccessibilityManager::ToBrowserAccessibilityManagerAuraLinux() {
23 return static_cast<BrowserAccessibilityManagerAuraLinux
*>(this);
26 BrowserAccessibilityManagerAuraLinux::BrowserAccessibilityManagerAuraLinux(
27 AtkObject
* parent_object
,
28 const SimpleAXTreeUpdate
& initial_tree
,
29 BrowserAccessibilityDelegate
* delegate
,
30 BrowserAccessibilityFactory
* factory
)
31 : BrowserAccessibilityManager(delegate
, factory
),
32 parent_object_(parent_object
) {
33 Initialize(initial_tree
);
36 BrowserAccessibilityManagerAuraLinux::~BrowserAccessibilityManagerAuraLinux() {
41 BrowserAccessibilityManagerAuraLinux::GetEmptyDocument() {
42 ui::AXNodeData empty_document
;
43 empty_document
.id
= 0;
44 empty_document
.role
= ui::AX_ROLE_ROOT_WEB_AREA
;
45 empty_document
.state
= 1 << ui::AX_STATE_READ_ONLY
;
46 SimpleAXTreeUpdate update
;
47 update
.nodes
.push_back(empty_document
);
51 void BrowserAccessibilityManagerAuraLinux::NotifyAccessibilityEvent(
52 ui::AXEvent event_type
,
53 BrowserAccessibility
* node
) {
54 // TODO(shreeram.k) : Implement.
57 } // namespace content