OLD | NEW |
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_AURALINUX_H_ | 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_AURALINUX_H_ |
6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_AURALINUX_H_ | 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_AURALINUX_H_ |
7 | 7 |
8 #include "content/browser/accessibility/browser_accessibility_manager.h" | 8 #include "content/browser/accessibility/browser_accessibility_manager.h" |
9 | 9 |
10 struct ViewHostMsg_AccessibilityNotification_Params; | 10 struct ViewHostMsg_AccessibilityNotification_Params; |
11 | 11 |
12 namespace content { | 12 namespace content { |
13 class BrowserAccessibilityAuraLinux; | 13 class BrowserAccessibilityAuraLinux; |
14 | 14 |
15 // Manages a tree of BrowserAccessibilityAuraLinux objects. | 15 // Manages a tree of BrowserAccessibilityAuraLinux objects. |
16 class CONTENT_EXPORT BrowserAccessibilityManagerAuraLinux | 16 class CONTENT_EXPORT BrowserAccessibilityManagerAuraLinux |
17 : public BrowserAccessibilityManager { | 17 : public BrowserAccessibilityManager { |
18 public: | 18 public: |
19 BrowserAccessibilityManagerAuraLinux( | 19 BrowserAccessibilityManagerAuraLinux( |
20 AtkObject* parent_object, | 20 AtkObject* parent_object, |
21 const SimpleAXTreeUpdate& initial_tree, | 21 const ui::AXTreeUpdate& initial_tree, |
22 BrowserAccessibilityDelegate* delegate, | 22 BrowserAccessibilityDelegate* delegate, |
23 BrowserAccessibilityFactory* factory = new BrowserAccessibilityFactory()); | 23 BrowserAccessibilityFactory* factory = new BrowserAccessibilityFactory()); |
24 | 24 |
25 ~BrowserAccessibilityManagerAuraLinux() override; | 25 ~BrowserAccessibilityManagerAuraLinux() override; |
26 | 26 |
27 static SimpleAXTreeUpdate GetEmptyDocument(); | 27 static ui::AXTreeUpdate GetEmptyDocument(); |
28 | 28 |
29 // Implementation BrowserAccessibilityManager methods | 29 // Implementation BrowserAccessibilityManager methods |
30 void NotifyAccessibilityEvent(ui::AXEvent event_type, | 30 void NotifyAccessibilityEvent(ui::AXEvent event_type, |
31 BrowserAccessibility* node) override; | 31 BrowserAccessibility* node) override; |
32 | 32 |
33 AtkObject* parent_object() { return parent_object_; } | 33 AtkObject* parent_object() { return parent_object_; } |
34 | 34 |
35 private: | 35 private: |
36 AtkObject* parent_object_; | 36 AtkObject* parent_object_; |
37 | 37 |
38 // Give BrowserAccessibilityManager::Create access to our constructor. | 38 // Give BrowserAccessibilityManager::Create access to our constructor. |
39 friend class BrowserAccessibilityManager; | 39 friend class BrowserAccessibilityManager; |
40 | 40 |
41 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManagerAuraLinux); | 41 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManagerAuraLinux); |
42 }; | 42 }; |
43 | 43 |
44 } // namespace content | 44 } // namespace content |
45 | 45 |
46 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_AURALINUX
_H_ | 46 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_AURALINUX
_H_ |
OLD | NEW |