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_WIN_H_ | 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_WIN_H_ |
6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_WIN_H_ | 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_WIN_H_ |
7 | 7 |
8 #include <oleacc.h> | 8 #include <oleacc.h> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/win/scoped_comptr.h" | 11 #include "base/win/scoped_comptr.h" |
12 #include "content/browser/accessibility/browser_accessibility_manager.h" | 12 #include "content/browser/accessibility/browser_accessibility_manager.h" |
13 | 13 |
14 namespace content { | 14 namespace content { |
15 class BrowserAccessibilityWin; | 15 class BrowserAccessibilityWin; |
16 | 16 |
17 class AccessibleHWND; | 17 class LegacyRenderWidgetHostHWND; |
18 | 18 |
19 // Manages a tree of BrowserAccessibilityWin objects. | 19 // Manages a tree of BrowserAccessibilityWin objects. |
20 class CONTENT_EXPORT BrowserAccessibilityManagerWin | 20 class CONTENT_EXPORT BrowserAccessibilityManagerWin |
21 : public BrowserAccessibilityManager { | 21 : public BrowserAccessibilityManager { |
22 public: | 22 public: |
23 BrowserAccessibilityManagerWin( | 23 BrowserAccessibilityManagerWin( |
24 HWND parent_hwnd, | 24 content::LegacyRenderWidgetHostHWND* accessible_hwnd, |
25 IAccessible* parent_iaccessible, | 25 IAccessible* parent_iaccessible, |
26 const ui::AXNodeData& src, | 26 const ui::AXNodeData& src, |
27 BrowserAccessibilityDelegate* delegate, | 27 BrowserAccessibilityDelegate* delegate, |
28 BrowserAccessibilityFactory* factory = new BrowserAccessibilityFactory()); | 28 BrowserAccessibilityFactory* factory = new BrowserAccessibilityFactory()); |
29 | 29 |
30 virtual ~BrowserAccessibilityManagerWin(); | 30 virtual ~BrowserAccessibilityManagerWin(); |
31 | 31 |
32 static ui::AXNodeData GetEmptyDocument(); | 32 static ui::AXNodeData GetEmptyDocument(); |
33 | 33 |
34 // Get the closest containing HWND. | 34 // Get the closest containing HWND. |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 // Track the most recent object that has been asked to scroll and | 74 // Track the most recent object that has been asked to scroll and |
75 // post a notification directly on it when it reaches its destination. | 75 // post a notification directly on it when it reaches its destination. |
76 // TODO(dmazzoni): remove once http://crbug.com/113483 is fixed. | 76 // TODO(dmazzoni): remove once http://crbug.com/113483 is fixed. |
77 BrowserAccessibilityWin* tracked_scroll_object_; | 77 BrowserAccessibilityWin* tracked_scroll_object_; |
78 | 78 |
79 // A mapping from the Windows-specific unique IDs (unique within the | 79 // A mapping from the Windows-specific unique IDs (unique within the |
80 // browser process) to renderer ids within this page. | 80 // browser process) to renderer ids within this page. |
81 base::hash_map<long, int32> unique_id_to_renderer_id_map_; | 81 base::hash_map<long, int32> unique_id_to_renderer_id_map_; |
82 | 82 |
83 // Owned by its parent; OnAccessibleHwndDeleted gets called upon deletion. | 83 // Owned by its parent; OnAccessibleHwndDeleted gets called upon deletion. |
84 AccessibleHWND* accessible_hwnd_; | 84 LegacyRenderWidgetHostHWND* accessible_hwnd_; |
85 | 85 |
86 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManagerWin); | 86 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManagerWin); |
87 }; | 87 }; |
88 | 88 |
89 } // namespace content | 89 } // namespace content |
90 | 90 |
91 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_WIN_H_ | 91 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_WIN_H_ |
OLD | NEW |