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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 // Convert from a IA2TextBoundaryType to a ui::TextBoundaryType. | 290 // Convert from a IA2TextBoundaryType to a ui::TextBoundaryType. |
291 ui::TextBoundaryType IA2TextBoundaryToTextBoundary(IA2TextBoundaryType type); | 291 ui::TextBoundaryType IA2TextBoundaryToTextBoundary(IA2TextBoundaryType type); |
292 | 292 |
293 // Search forwards (direction == 1) or backwards (direction == -1) | 293 // Search forwards (direction == 1) or backwards (direction == -1) |
294 // from the given offset until the given boundary is found, and | 294 // from the given offset until the given boundary is found, and |
295 // return the offset of that boundary. | 295 // return the offset of that boundary. |
296 LONG FindBoundary(const base::string16& text, | 296 LONG FindBoundary(const base::string16& text, |
297 IA2TextBoundaryType ia2_boundary, | 297 IA2TextBoundaryType ia2_boundary, |
298 LONG start_offset, | 298 LONG start_offset, |
299 ui::TextBoundaryDirection direction); | 299 ui::TextBoundaryDirection direction); |
300 | |
301 // A windows-specific unique ID for this object. It's returned in | |
302 // IAccessible2::get_uniqueID, but more importantly it's used for | |
303 // firing events. On Windows, we fire events on the nearest parent HWND | |
304 // and pass the unique ID as the child id parameter. When the client | |
305 // wants to retrieve the object the event was fired on, it calls | |
306 // get_accChild and passes the child ID. We use negative IDs for the unique | |
307 // ID so we can distinguish a request for an arbitrary child from a request | |
308 // for an immediate child of an object by its 0-based index. | |
309 LONG unique_id_win_; | |
310 }; | 300 }; |
311 | 301 |
312 } // namespace ui | 302 } // namespace ui |
313 | 303 |
314 #endif // UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_WIN_H_ | 304 #endif // UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_WIN_H_ |
OLD | NEW |