| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_WIN_H_ | 5 #ifndef UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_WIN_H_ |
| 6 #define UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_WIN_H_ | 6 #define UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 | 122 |
| 123 STDMETHODIMP get_windowHandle(HWND* window_handle) override; | 123 STDMETHODIMP get_windowHandle(HWND* window_handle) override; |
| 124 | 124 |
| 125 STDMETHODIMP get_relationTargetsOfType(BSTR type, | 125 STDMETHODIMP get_relationTargetsOfType(BSTR type, |
| 126 long max_targets, | 126 long max_targets, |
| 127 IUnknown*** targets, | 127 IUnknown*** targets, |
| 128 long* n_targets) override; | 128 long* n_targets) override; |
| 129 | 129 |
| 130 STDMETHODIMP get_attributes(BSTR* attributes) override; | 130 STDMETHODIMP get_attributes(BSTR* attributes) override; |
| 131 | 131 |
| 132 STDMETHODIMP get_indexInParent(LONG* index_in_parent) override; |
| 133 |
| 132 // | 134 // |
| 133 // IAccessible2 methods not implemented. | 135 // IAccessible2 methods not implemented. |
| 134 // | 136 // |
| 135 | 137 |
| 136 STDMETHODIMP get_attribute(BSTR name, VARIANT* attribute) override { | 138 STDMETHODIMP get_attribute(BSTR name, VARIANT* attribute) override { |
| 137 return E_NOTIMPL; | 139 return E_NOTIMPL; |
| 138 } | 140 } |
| 139 STDMETHODIMP get_indexInParent(LONG* index_in_parent) override { | |
| 140 return E_NOTIMPL; | |
| 141 } | |
| 142 STDMETHODIMP get_extendedRole(BSTR* extended_role) override { | 141 STDMETHODIMP get_extendedRole(BSTR* extended_role) override { |
| 143 return E_NOTIMPL; | 142 return E_NOTIMPL; |
| 144 } | 143 } |
| 145 STDMETHODIMP get_nRelations(LONG* n_relations) override { return E_NOTIMPL; } | 144 STDMETHODIMP get_nRelations(LONG* n_relations) override { return E_NOTIMPL; } |
| 146 STDMETHODIMP get_relation(LONG relation_index, | 145 STDMETHODIMP get_relation(LONG relation_index, |
| 147 IAccessibleRelation** relation) override { | 146 IAccessibleRelation** relation) override { |
| 148 return E_NOTIMPL; | 147 return E_NOTIMPL; |
| 149 } | 148 } |
| 150 STDMETHODIMP get_relations(LONG max_relations, | 149 STDMETHODIMP get_relations(LONG max_relations, |
| 151 IAccessibleRelation** relations, | 150 IAccessibleRelation** relations, |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 // wants to retrieve the object the event was fired on, it calls | 325 // wants to retrieve the object the event was fired on, it calls |
| 327 // get_accChild and passes the child ID. We use negative IDs for the unique | 326 // get_accChild and passes the child ID. We use negative IDs for the unique |
| 328 // ID so we can distinguish a request for an arbitrary child from a request | 327 // ID so we can distinguish a request for an arbitrary child from a request |
| 329 // for an immediate child of an object by its 0-based index. | 328 // for an immediate child of an object by its 0-based index. |
| 330 LONG unique_id_win_; | 329 LONG unique_id_win_; |
| 331 }; | 330 }; |
| 332 | 331 |
| 333 } // namespace ui | 332 } // namespace ui |
| 334 | 333 |
| 335 #endif // UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_WIN_H_ | 334 #endif // UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_WIN_H_ |
| OLD | NEW |