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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 // | 261 // |
262 // IServiceProvider methods. | 262 // IServiceProvider methods. |
263 // | 263 // |
264 | 264 |
265 STDMETHODIMP QueryService(REFGUID guidService, | 265 STDMETHODIMP QueryService(REFGUID guidService, |
266 REFIID riid, | 266 REFIID riid, |
267 void** object) override; | 267 void** object) override; |
268 | 268 |
269 protected: | 269 protected: |
270 AXPlatformNodeWin(); | 270 AXPlatformNodeWin(); |
| 271 int MSAAState(); |
271 | 272 |
272 // AXPlatformNodeBase overrides. | 273 // AXPlatformNodeBase overrides. |
273 void Dispose() override; | 274 void Dispose() override; |
274 | 275 |
275 private: | 276 private: |
276 int MSAARole(); | 277 int MSAARole(); |
277 std::string StringOverrideForMSAARole(); | 278 std::string StringOverrideForMSAARole(); |
278 | 279 |
279 int MSAAState(); | |
280 int MSAAEvent(ui::AXEvent event); | 280 int MSAAEvent(ui::AXEvent event); |
| 281 bool ShouldNodeHaveReadonlyState(const AXNodeData& data) const; |
| 282 bool ShouldNodeHaveFocusableState(const AXNodeData& data) const; |
281 | 283 |
282 HRESULT GetStringAttributeAsBstr( | 284 HRESULT GetStringAttributeAsBstr( |
283 ui::AXStringAttribute attribute, | 285 ui::AXStringAttribute attribute, |
284 BSTR* value_bstr) const; | 286 BSTR* value_bstr) const; |
285 | 287 |
286 void AddAlertTarget(); | 288 void AddAlertTarget(); |
287 void RemoveAlertTarget(); | 289 void RemoveAlertTarget(); |
288 | 290 |
289 // Return the text to use for IAccessibleText. | 291 // Return the text to use for IAccessibleText. |
290 base::string16 TextForIAccessibleText(); | 292 base::string16 TextForIAccessibleText(); |
(...skipping 17 matching lines...) Expand all Loading... |
308 // should be performed on a particular child ID, rather than this object. | 310 // should be performed on a particular child ID, rather than this object. |
309 // This method tries to figure out the target object from |var_id| and | 311 // This method tries to figure out the target object from |var_id| and |
310 // returns a pointer to the target object if it exists, otherwise nullptr. | 312 // returns a pointer to the target object if it exists, otherwise nullptr. |
311 // Does not return a new reference. | 313 // Does not return a new reference. |
312 AXPlatformNodeWin* GetTargetFromChildID(const VARIANT& var_id); | 314 AXPlatformNodeWin* GetTargetFromChildID(const VARIANT& var_id); |
313 }; | 315 }; |
314 | 316 |
315 } // namespace ui | 317 } // namespace ui |
316 | 318 |
317 #endif // UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_WIN_H_ | 319 #endif // UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_WIN_H_ |
OLD | NEW |