browser_accessibility_manager_mac.h revision 58537e28ecd584eab876aee8be7156509866d23a
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.
4
5#ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_MAC_H_
6#define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_MAC_H_
7
8#import <Cocoa/Cocoa.h>
9
10#include "content/browser/accessibility/browser_accessibility_manager.h"
11
12namespace content {
13
14class CONTENT_EXPORT BrowserAccessibilityManagerMac
15    : public BrowserAccessibilityManager {
16 public:
17  BrowserAccessibilityManagerMac(
18      NSView* parent_view,
19      const AccessibilityNodeData& src,
20      BrowserAccessibilityDelegate* delegate,
21      BrowserAccessibilityFactory* factory = new BrowserAccessibilityFactory());
22
23  static AccessibilityNodeData GetEmptyDocument();
24
25  // Implementation of BrowserAccessibilityManager.
26  virtual void NotifyAccessibilityEvent(
27      WebKit::WebAXEvent event_type, BrowserAccessibility* node) OVERRIDE;
28
29  NSView* parent_view() { return parent_view_; }
30
31 private:
32  // This gives BrowserAccessibilityManager::Create access to the class
33  // constructor.
34  friend class BrowserAccessibilityManager;
35
36  NSView* parent_view_;
37
38  DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManagerMac);
39};
40
41}
42
43#endif  // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_MAC_H_
44