OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_ACCESSIBILITY_H_ | 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_ACCESSIBILITY_H_ |
6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_ACCESSIBILITY_H_ | 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_ACCESSIBILITY_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <atlbase.h> | 9 #include <atlbase.h> |
10 #include <atlcom.h> | 10 #include <atlcom.h> |
11 #include <oleacc.h> | 11 #include <oleacc.h> |
12 | 12 |
13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
14 #include "base/scoped_comptr_win.h" | 14 #include "base/win/scoped_comptr.h" |
15 | 15 |
16 class AutocompleteEditViewWin; | 16 class AutocompleteEditViewWin; |
17 | 17 |
18 //////////////////////////////////////////////////////////////////////////////// | 18 //////////////////////////////////////////////////////////////////////////////// |
19 // | 19 // |
20 // AutocompleteAccessibility | 20 // AutocompleteAccessibility |
21 // | 21 // |
22 // Class implementing the MSAA IAccessible COM interface for | 22 // Class implementing the MSAA IAccessible COM interface for |
23 // AutocompleteEditViewWin, providing accessibility to be used by screen | 23 // AutocompleteEditViewWin, providing accessibility to be used by screen |
24 // readers and other assistive technology (AT). | 24 // readers and other assistive technology (AT). |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 LONG* topic_id); | 98 LONG* topic_id); |
99 | 99 |
100 // Deprecated functions, not implemented here. | 100 // Deprecated functions, not implemented here. |
101 STDMETHODIMP put_accName(VARIANT var_id, BSTR put_name); | 101 STDMETHODIMP put_accName(VARIANT var_id, BSTR put_name); |
102 STDMETHODIMP put_accValue(VARIANT var_id, BSTR put_val); | 102 STDMETHODIMP put_accValue(VARIANT var_id, BSTR put_val); |
103 | 103 |
104 protected: | 104 protected: |
105 // A pointer containing the Windows' default IAccessible implementation for | 105 // A pointer containing the Windows' default IAccessible implementation for |
106 // this object. Used where it is acceptable to return default MSAA | 106 // this object. Used where it is acceptable to return default MSAA |
107 // information. | 107 // information. |
108 ScopedComPtr<IAccessible> default_accessibility_server_; | 108 base::win::ScopedComPtr<IAccessible> default_accessibility_server_; |
109 | 109 |
110 private: | 110 private: |
111 const AutocompleteEditViewWin* edit_box_; | 111 const AutocompleteEditViewWin* edit_box_; |
112 | 112 |
113 DISALLOW_COPY_AND_ASSIGN(AutocompleteAccessibility); | 113 DISALLOW_COPY_AND_ASSIGN(AutocompleteAccessibility); |
114 }; | 114 }; |
115 | 115 |
116 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_ACCESSIBILITY_H_ | 116 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_ACCESSIBILITY_H_ |
OLD | NEW |