OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 VIEWS_ACCESSIBILITY_VIEW_ACCESSIBILITY_WRAPPER_H_ | 5 #ifndef VIEWS_ACCESSIBILITY_VIEW_ACCESSIBILITY_WRAPPER_H_ |
6 #define VIEWS_ACCESSIBILITY_VIEW_ACCESSIBILITY_WRAPPER_H_ | 6 #define VIEWS_ACCESSIBILITY_VIEW_ACCESSIBILITY_WRAPPER_H_ |
7 | 7 |
8 #include <atlcomcli.h> | 8 #include <atlcomcli.h> |
9 #include <oleacc.h> | 9 #include <oleacc.h> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/scoped_comptr_win.h" |
12 | 13 |
13 namespace views { | 14 namespace views { |
14 class View; | 15 class View; |
15 } | 16 } |
16 | 17 |
17 //////////////////////////////////////////////////////////////////////////////// | 18 //////////////////////////////////////////////////////////////////////////////// |
18 // | 19 // |
19 // ViewAccessibilityWrapper | 20 // ViewAccessibilityWrapper |
20 // | 21 // |
21 // Wrapper class for returning a pointer to the appropriate (platform-specific) | 22 // Wrapper class for returning a pointer to the appropriate (platform-specific) |
(...skipping 15 matching lines...) Expand all Loading... |
37 // retrieve MSAA implementation for child or parent, when navigating MSAA | 38 // retrieve MSAA implementation for child or parent, when navigating MSAA |
38 // hierarchy. | 39 // hierarchy. |
39 STDMETHODIMP GetInstance(REFIID iid, void** interface_ptr); | 40 STDMETHODIMP GetInstance(REFIID iid, void** interface_ptr); |
40 | 41 |
41 // Sets the accessibility interface implementation of this wrapper to be | 42 // Sets the accessibility interface implementation of this wrapper to be |
42 // anything the user specifies. | 43 // anything the user specifies. |
43 STDMETHODIMP SetInstance(IAccessible* interface_ptr); | 44 STDMETHODIMP SetInstance(IAccessible* interface_ptr); |
44 | 45 |
45 private: | 46 private: |
46 // Instance of accessibility information and handling for a View. | 47 // Instance of accessibility information and handling for a View. |
47 CComPtr<IAccessible> accessibility_info_; | 48 ScopedComPtr<IAccessible> accessibility_info_; |
48 | 49 |
49 // View needed to initialize IAccessible. | 50 // View needed to initialize IAccessible. |
50 views::View* view_; | 51 views::View* view_; |
51 | 52 |
52 DISALLOW_COPY_AND_ASSIGN(ViewAccessibilityWrapper); | 53 DISALLOW_COPY_AND_ASSIGN(ViewAccessibilityWrapper); |
53 }; | 54 }; |
54 | 55 |
55 #endif // VIEWS_ACCESSIBILITY_VIEW_ACCESSIBILITY_WRAPPER_H_ | 56 #endif // VIEWS_ACCESSIBILITY_VIEW_ACCESSIBILITY_WRAPPER_H_ |
OLD | NEW |