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
3 // found in the LICENSE file.
5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_MAC_H_
6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_MAC_H_
8 #import <Cocoa/Cocoa.h>
10 #include "content/browser/accessibility/browser_accessibility_manager.h"
14 class CONTENT_EXPORT BrowserAccessibilityManagerMac
15 : public BrowserAccessibilityManager
{
17 BrowserAccessibilityManagerMac(
19 const SimpleAXTreeUpdate
& initial_tree
,
20 BrowserAccessibilityDelegate
* delegate
,
21 BrowserAccessibilityFactory
* factory
= new BrowserAccessibilityFactory());
23 static SimpleAXTreeUpdate
GetEmptyDocument();
25 BrowserAccessibility
* GetFocus(BrowserAccessibility
* root
) override
;
27 // Implementation of BrowserAccessibilityManager.
28 void NotifyAccessibilityEvent(ui::AXEvent event_type
,
29 BrowserAccessibility
* node
) override
;
31 NSView
* parent_view() { return parent_view_
; }
34 void OnAtomicUpdateFinished(
37 const std::vector
<ui::AXTreeDelegate::Change
>& changes
) override
;
39 // This gives BrowserAccessibilityManager::Create access to the class
41 friend class BrowserAccessibilityManager
;
45 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManagerMac
);
50 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_MAC_H_