Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(239)

Side by Side Diff: ui/accessibility/platform/ax_platform_node_win.h

Issue 2679313003: Implemented IA2::setSelection and related methods on text fields in Views. (Closed)
Patch Set: Made |SetTextSelection| return a value. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 BSTR* value_bstr) const; 281 BSTR* value_bstr) const;
282 282
283 void AddAlertTarget(); 283 void AddAlertTarget();
284 void RemoveAlertTarget(); 284 void RemoveAlertTarget();
285 285
286 // Return the text to use for IAccessibleText. 286 // Return the text to use for IAccessibleText.
287 base::string16 TextForIAccessibleText(); 287 base::string16 TextForIAccessibleText();
288 288
289 // If offset is a member of IA2TextSpecialOffsets this function updates the 289 // If offset is a member of IA2TextSpecialOffsets this function updates the
290 // value of offset and returns, otherwise offset remains unchanged. 290 // value of offset and returns, otherwise offset remains unchanged.
291 void HandleSpecialTextOffset(const base::string16& text, LONG* offset); 291 void HandleSpecialTextOffset(LONG* offset);
292 292
293 // Convert from a IA2TextBoundaryType to a ui::TextBoundaryType. 293 // Convert from a IA2TextBoundaryType to a ui::TextBoundaryType.
294 ui::TextBoundaryType IA2TextBoundaryToTextBoundary(IA2TextBoundaryType type); 294 ui::TextBoundaryType IA2TextBoundaryToTextBoundary(IA2TextBoundaryType type);
295 295
296 // Search forwards (direction == 1) or backwards (direction == -1) 296 // Search forwards (direction == 1) or backwards (direction == -1)
297 // from the given offset until the given boundary is found, and 297 // from the given offset until the given boundary is found, and
298 // return the offset of that boundary. 298 // return the offset of that boundary.
299 LONG FindBoundary(const base::string16& text, 299 LONG FindBoundary(const base::string16& text,
300 IA2TextBoundaryType ia2_boundary, 300 IA2TextBoundaryType ia2_boundary,
301 LONG start_offset, 301 LONG start_offset,
302 ui::TextBoundaryDirection direction); 302 ui::TextBoundaryDirection direction);
303 }; 303 };
304 304
305 } // namespace ui 305 } // namespace ui
306 306
307 #endif // UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_WIN_H_ 307 #endif // UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698