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_GTK_H_ | 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_GTK_H_ |
6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_GTK_H_ | 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_GTK_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 BrowserAccessibilityGtk; | 13 class BrowserAccessibilityGtk; |
14 | 14 |
15 // Manages a tree of BrowserAccessibilityGtk objects. | 15 // Manages a tree of BrowserAccessibilityGtk objects. |
16 class CONTENT_EXPORT BrowserAccessibilityManagerGtk | 16 class CONTENT_EXPORT BrowserAccessibilityManagerGtk |
17 : public BrowserAccessibilityManager { | 17 : public BrowserAccessibilityManager { |
18 public: | 18 public: |
19 BrowserAccessibilityManagerGtk( | 19 BrowserAccessibilityManagerGtk( |
20 GtkWidget* parent_widget, | 20 GtkWidget* parent_widget, |
21 const AccessibilityNodeData& src, | 21 const AccessibilityNodeData& src, |
22 BrowserAccessibilityDelegate* delegate, | 22 BrowserAccessibilityDelegate* delegate, |
23 BrowserAccessibilityFactory* factory = new BrowserAccessibilityFactory()); | 23 BrowserAccessibilityFactory* factory = new BrowserAccessibilityFactory()); |
24 | 24 |
25 virtual ~BrowserAccessibilityManagerGtk(); | 25 virtual ~BrowserAccessibilityManagerGtk(); |
26 | 26 |
27 static AccessibilityNodeData GetEmptyDocument(); | 27 static AccessibilityNodeData GetEmptyDocument(); |
28 | 28 |
29 // BrowserAccessibilityManager methods | 29 // BrowserAccessibilityManager methods |
30 virtual void NotifyAccessibilityEvent(int type, BrowserAccessibility* node) | 30 virtual void NotifyAccessibilityEvent( |
31 OVERRIDE; | 31 WebKit::WebAXEvent event_type, BrowserAccessibility* node) OVERRIDE; |
32 | 32 |
33 GtkWidget* parent_widget() { return parent_widget_; } | 33 GtkWidget* parent_widget() { return parent_widget_; } |
34 | 34 |
35 private: | 35 private: |
36 void RecursivelySendChildrenChanged(BrowserAccessibilityGtk* node); | 36 void RecursivelySendChildrenChanged(BrowserAccessibilityGtk* node); |
37 | 37 |
38 GtkWidget* parent_widget_; | 38 GtkWidget* parent_widget_; |
39 | 39 |
40 // Give BrowserAccessibilityManager::Create access to our constructor. | 40 // Give BrowserAccessibilityManager::Create access to our constructor. |
41 friend class BrowserAccessibilityManager; | 41 friend class BrowserAccessibilityManager; |
42 | 42 |
43 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManagerGtk); | 43 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManagerGtk); |
44 }; | 44 }; |
45 | 45 |
46 } // namespace content | 46 } // namespace content |
47 | 47 |
48 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_GTK_H_ | 48 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_GTK_H_ |
OLD | NEW |