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" |
(...skipping 22 matching lines...) Expand all Loading... |
33 | 33 |
34 // Get the closest containing HWND. | 34 // Get the closest containing HWND. |
35 HWND parent_hwnd() { return parent_hwnd_; } | 35 HWND parent_hwnd() { return parent_hwnd_; } |
36 | 36 |
37 // The IAccessible for the parent window. | 37 // The IAccessible for the parent window. |
38 IAccessible* parent_iaccessible() { return parent_iaccessible_; } | 38 IAccessible* parent_iaccessible() { return parent_iaccessible_; } |
39 void set_parent_iaccessible(IAccessible* parent_iaccessible) { | 39 void set_parent_iaccessible(IAccessible* parent_iaccessible) { |
40 parent_iaccessible_ = parent_iaccessible; | 40 parent_iaccessible_ = parent_iaccessible; |
41 } | 41 } |
42 | 42 |
| 43 void SetAccessibleHWND(LegacyRenderWidgetHostHWND* accessible_hwnd); |
| 44 |
43 // Calls NotifyWinEvent if the parent window's IAccessible pointer is known. | 45 // Calls NotifyWinEvent if the parent window's IAccessible pointer is known. |
44 void MaybeCallNotifyWinEvent(DWORD event, LONG child_id); | 46 void MaybeCallNotifyWinEvent(DWORD event, LONG child_id); |
45 | 47 |
46 // AXTree methods | 48 // AXTree methods |
47 virtual void OnNodeWillBeDeleted(ui::AXNode* node) OVERRIDE; | 49 virtual void OnNodeWillBeDeleted(ui::AXNode* node) OVERRIDE; |
48 virtual void OnNodeCreated(ui::AXNode* node) OVERRIDE; | 50 virtual void OnNodeCreated(ui::AXNode* node) OVERRIDE; |
49 | 51 |
50 // BrowserAccessibilityManager methods | 52 // BrowserAccessibilityManager methods |
51 virtual void OnWindowFocused() OVERRIDE; | 53 virtual void OnWindowFocused() OVERRIDE; |
52 virtual void OnWindowBlurred() OVERRIDE; | 54 virtual void OnWindowBlurred() OVERRIDE; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 | 92 |
91 // Owned by its parent; OnAccessibleHwndDeleted gets called upon deletion. | 93 // Owned by its parent; OnAccessibleHwndDeleted gets called upon deletion. |
92 LegacyRenderWidgetHostHWND* accessible_hwnd_; | 94 LegacyRenderWidgetHostHWND* accessible_hwnd_; |
93 | 95 |
94 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManagerWin); | 96 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManagerWin); |
95 }; | 97 }; |
96 | 98 |
97 } // namespace content | 99 } // namespace content |
98 | 100 |
99 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_WIN_H_ | 101 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_WIN_H_ |
OLD | NEW |