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

Side by Side Diff: content/browser/accessibility/browser_accessibility_manager_auralinux.h

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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 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_MAC_H_ 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_AURALINUX_H_
6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_MAC_H_ 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_AURALINUX_H_
7
8 #import <Cocoa/Cocoa.h>
9 7
10 #include "content/browser/accessibility/browser_accessibility_manager.h" 8 #include "content/browser/accessibility/browser_accessibility_manager.h"
11 9
10 struct ViewHostMsg_AccessibilityNotification_Params;
11
12 namespace content { 12 namespace content {
13 class BrowserAccessibilityAuraLinux;
13 14
14 class CONTENT_EXPORT BrowserAccessibilityManagerMac 15 // Manages a tree of BrowserAccessibilityAuraLinux objects.
16 class CONTENT_EXPORT BrowserAccessibilityManagerAuraLinux
15 : public BrowserAccessibilityManager { 17 : public BrowserAccessibilityManager {
16 public: 18 public:
17 BrowserAccessibilityManagerMac( 19 BrowserAccessibilityManagerAuraLinux(
18 NSView* parent_view, 20 AtkObject* parent_object,
19 const ui::AXTreeUpdate& initial_tree, 21 const ui::AXTreeUpdate& initial_tree,
20 BrowserAccessibilityDelegate* delegate, 22 BrowserAccessibilityDelegate* delegate,
21 BrowserAccessibilityFactory* factory = new BrowserAccessibilityFactory()); 23 BrowserAccessibilityFactory* factory = new BrowserAccessibilityFactory());
22 24
25 ~BrowserAccessibilityManagerAuraLinux() override;
26
23 static ui::AXTreeUpdate GetEmptyDocument(); 27 static ui::AXTreeUpdate GetEmptyDocument();
24 28
25 BrowserAccessibility* GetFocus(BrowserAccessibility* root) override; 29 // Implementation BrowserAccessibilityManager methods
26
27 // Implementation of BrowserAccessibilityManager.
28 void NotifyAccessibilityEvent(ui::AXEvent event_type, 30 void NotifyAccessibilityEvent(ui::AXEvent event_type,
29 BrowserAccessibility* node) override; 31 BrowserAccessibility* node) override;
30 32
31 NSView* parent_view() { return parent_view_; } 33 AtkObject* parent_object() { return parent_object_; }
32 34
33 private: 35 private:
34 void OnAtomicUpdateFinished( 36 AtkObject* parent_object_;
35 ui::AXTree* tree,
36 bool root_changed,
37 const std::vector<ui::AXTreeDelegate::Change>& changes) override;
38 37
39 // This gives BrowserAccessibilityManager::Create access to the class 38 // Give BrowserAccessibilityManager::Create access to our constructor.
40 // constructor.
41 friend class BrowserAccessibilityManager; 39 friend class BrowserAccessibilityManager;
42 40
43 NSView* parent_view_; 41 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManagerAuraLinux);
44
45 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManagerMac);
46 }; 42 };
47 43
48 } 44 } // namespace content
49 45
50 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_MAC_H_ 46 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_AURALINUX _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698