Chromium Code Reviews| 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 UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_WIN_H_ | 5 #ifndef UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_WIN_H_ |
| 6 #define UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_WIN_H_ | 6 #define UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_WIN_H_ |
| 7 | 7 |
| 8 #include <atlbase.h> | 8 #include <atlbase.h> |
| 9 #include <atlcom.h> | 9 #include <atlcom.h> |
| 10 #include <oleacc.h> | 10 #include <oleacc.h> |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 110 | 110 |
| 111 // Retrieves information describing the role of the specified object. | 111 // Retrieves information describing the role of the specified object. |
| 112 STDMETHODIMP get_accRole(VARIANT var_id, VARIANT* role); | 112 STDMETHODIMP get_accRole(VARIANT var_id, VARIANT* role); |
| 113 | 113 |
| 114 // Retrieves the current state of the specified object. | 114 // Retrieves the current state of the specified object. |
| 115 STDMETHODIMP get_accState(VARIANT var_id, VARIANT* state); | 115 STDMETHODIMP get_accState(VARIANT var_id, VARIANT* state); |
| 116 | 116 |
| 117 // Retrieves the current value associated with the specified object. | 117 // Retrieves the current value associated with the specified object. |
| 118 STDMETHODIMP get_accValue(VARIANT var_id, BSTR* value); | 118 STDMETHODIMP get_accValue(VARIANT var_id, BSTR* value); |
| 119 | 119 |
| 120 // Non-supported IAccessible methods. | 120 // Set the value of the control. Not used by screen readers, but used |
|
msw
2013/08/31 20:22:36
optional nit: put this and get_accValue together w
dmazzoni
2013/09/03 20:20:11
Done.
| |
| 121 // frequently by automation software. | |
| 122 STDMETHODIMP put_accValue(VARIANT var_id, BSTR new_value); | |
| 121 | 123 |
| 122 // Selections not applicable to views. | 124 // Selections not applicable to views. |
| 123 STDMETHODIMP get_accSelection(VARIANT* selected); | 125 STDMETHODIMP get_accSelection(VARIANT* selected); |
| 124 STDMETHODIMP accSelect(LONG flags_sel, VARIANT var_id); | 126 STDMETHODIMP accSelect(LONG flags_sel, VARIANT var_id); |
| 125 | 127 |
| 126 // Help functions not supported. | 128 // Help functions not supported. |
| 127 STDMETHODIMP get_accHelp(VARIANT var_id, BSTR* help); | 129 STDMETHODIMP get_accHelp(VARIANT var_id, BSTR* help); |
| 128 STDMETHODIMP get_accHelpTopic(BSTR* help_file, | 130 STDMETHODIMP get_accHelpTopic(BSTR* help_file, |
| 129 VARIANT var_id, | 131 VARIANT var_id, |
| 130 LONG* topic_id); | 132 LONG* topic_id); |
| 131 | 133 |
| 132 // Deprecated functions, not implemented here. | 134 // Deprecated functions, not implemented here. |
| 133 STDMETHODIMP put_accName(VARIANT var_id, BSTR put_name); | 135 STDMETHODIMP put_accName(VARIANT var_id, BSTR put_name); |
| 134 STDMETHODIMP put_accValue(VARIANT var_id, BSTR put_val); | |
| 135 | 136 |
| 136 // | 137 // |
| 137 // IAccessible2 | 138 // IAccessible2 |
| 138 // | 139 // |
| 139 | 140 |
| 140 STDMETHODIMP role(LONG* role); | 141 STDMETHODIMP role(LONG* role); |
| 141 | 142 |
| 142 STDMETHODIMP get_states(AccessibleStates* states); | 143 STDMETHODIMP get_states(AccessibleStates* states); |
| 143 | 144 |
| 144 STDMETHODIMP get_uniqueID(LONG* unique_id); | 145 STDMETHODIMP get_uniqueID(LONG* unique_id); |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 411 | 412 |
| 412 // Next index into |view_storage_ids_| to use. | 413 // Next index into |view_storage_ids_| to use. |
| 413 static int next_view_storage_id_index_; | 414 static int next_view_storage_id_index_; |
| 414 | 415 |
| 415 DISALLOW_COPY_AND_ASSIGN(NativeViewAccessibilityWin); | 416 DISALLOW_COPY_AND_ASSIGN(NativeViewAccessibilityWin); |
| 416 }; | 417 }; |
| 417 | 418 |
| 418 } // namespace views | 419 } // namespace views |
| 419 | 420 |
| 420 #endif // UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_WIN_H_ | 421 #endif // UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_WIN_H_ |
| OLD | NEW |