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 |
271 int MSAAState(); | 272 int MSAAState(); |
272 | 273 |
| 274 int MSAARole(); |
| 275 std::string StringOverrideForMSAARole(); |
| 276 |
273 // AXPlatformNodeBase overrides. | 277 // AXPlatformNodeBase overrides. |
274 void Dispose() override; | 278 void Dispose() override; |
275 | 279 |
276 private: | 280 private: |
277 int MSAARole(); | |
278 std::string StringOverrideForMSAARole(); | |
279 | |
280 int MSAAEvent(ui::AXEvent event); | 281 int MSAAEvent(ui::AXEvent event); |
| 282 bool IsWebAreaForPresentationalIframe(); |
281 bool ShouldNodeHaveReadonlyState(const AXNodeData& data) const; | 283 bool ShouldNodeHaveReadonlyState(const AXNodeData& data) const; |
282 bool ShouldNodeHaveFocusableState(const AXNodeData& data) const; | 284 bool ShouldNodeHaveFocusableState(const AXNodeData& data) const; |
283 | 285 |
284 HRESULT GetStringAttributeAsBstr( | 286 HRESULT GetStringAttributeAsBstr( |
285 ui::AXStringAttribute attribute, | 287 ui::AXStringAttribute attribute, |
286 BSTR* value_bstr) const; | 288 BSTR* value_bstr) const; |
287 | 289 |
288 void AddAlertTarget(); | 290 void AddAlertTarget(); |
289 void RemoveAlertTarget(); | 291 void RemoveAlertTarget(); |
290 | 292 |
(...skipping 14 matching lines...) Expand all Loading... |
305 IA2TextBoundaryType ia2_boundary, | 307 IA2TextBoundaryType ia2_boundary, |
306 LONG start_offset, | 308 LONG start_offset, |
307 ui::TextBoundaryDirection direction); | 309 ui::TextBoundaryDirection direction); |
308 | 310 |
309 // Many MSAA methods take a var_id parameter indicating that the operation | 311 // Many MSAA methods take a var_id parameter indicating that the operation |
310 // should be performed on a particular child ID, rather than this object. | 312 // should be performed on a particular child ID, rather than this object. |
311 // This method tries to figure out the target object from |var_id| and | 313 // This method tries to figure out the target object from |var_id| and |
312 // returns a pointer to the target object if it exists, otherwise nullptr. | 314 // returns a pointer to the target object if it exists, otherwise nullptr. |
313 // Does not return a new reference. | 315 // Does not return a new reference. |
314 AXPlatformNodeWin* GetTargetFromChildID(const VARIANT& var_id); | 316 AXPlatformNodeWin* GetTargetFromChildID(const VARIANT& var_id); |
| 317 |
| 318 // Returns true if this node is in a treegrid. |
| 319 bool IsInTreeGrid(); |
315 }; | 320 }; |
316 | 321 |
317 } // namespace ui | 322 } // namespace ui |
318 | 323 |
319 #endif // UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_WIN_H_ | 324 #endif // UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_WIN_H_ |
OLD | NEW |