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