Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / content / browser / accessibility / browser_accessibility_manager_auralinux.cc
blob9a823f305a92c4e4693ebe36b0ea6888e26d213b
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"
10 namespace content {
12 // static
13 BrowserAccessibilityManager* BrowserAccessibilityManager::Create(
14 const ui::AXTreeUpdate& initial_tree,
15 BrowserAccessibilityDelegate* delegate,
16 BrowserAccessibilityFactory* factory) {
17 return new BrowserAccessibilityManagerAuraLinux(nullptr, initial_tree,
18 delegate, factory);
21 BrowserAccessibilityManagerAuraLinux*
22 BrowserAccessibilityManager::ToBrowserAccessibilityManagerAuraLinux() {
23 return static_cast<BrowserAccessibilityManagerAuraLinux*>(this);
26 BrowserAccessibilityManagerAuraLinux::BrowserAccessibilityManagerAuraLinux(
27 AtkObject* parent_object,
28 const ui::AXTreeUpdate& initial_tree,
29 BrowserAccessibilityDelegate* delegate,
30 BrowserAccessibilityFactory* factory)
31 : BrowserAccessibilityManager(delegate, factory),
32 parent_object_(parent_object) {
33 Initialize(initial_tree);
36 BrowserAccessibilityManagerAuraLinux::~BrowserAccessibilityManagerAuraLinux() {
39 // static
40 ui::AXTreeUpdate BrowserAccessibilityManagerAuraLinux::GetEmptyDocument() {
41 ui::AXNodeData empty_document;
42 empty_document.id = 0;
43 empty_document.role = ui::AX_ROLE_ROOT_WEB_AREA;
44 empty_document.state = 1 << ui::AX_STATE_READ_ONLY;
45 ui::AXTreeUpdate update;
46 update.nodes.push_back(empty_document);
47 return update;
50 void BrowserAccessibilityManagerAuraLinux::NotifyAccessibilityEvent(
51 ui::AXEvent event_type,
52 BrowserAccessibility* node) {
53 // TODO(shreeram.k) : Implement.
56 } // namespace content