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

Side by Side Diff: content/browser/accessibility/browser_accessibility_win.h

Issue 660633002: Fixed IAccessibleText::TextAtOffset with IA2_TEXT_BOUNDARY_WORD to return text that spans from the … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_
6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_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 815 matching lines...) Expand 10 before | Expand all | Expand 10 after
826 ui::TextBoundaryType IA2TextBoundaryToTextBoundary(IA2TextBoundaryType type); 826 ui::TextBoundaryType IA2TextBoundaryToTextBoundary(IA2TextBoundaryType type);
827 827
828 // Search forwards (direction == 1) or backwards (direction == -1) 828 // Search forwards (direction == 1) or backwards (direction == -1)
829 // from the given offset until the given boundary is found, and 829 // from the given offset until the given boundary is found, and
830 // return the offset of that boundary. 830 // return the offset of that boundary.
831 LONG FindBoundary(const base::string16& text, 831 LONG FindBoundary(const base::string16& text,
832 IA2TextBoundaryType ia2_boundary, 832 IA2TextBoundaryType ia2_boundary,
833 LONG start_offset, 833 LONG start_offset,
834 ui::TextBoundaryDirection direction); 834 ui::TextBoundaryDirection direction);
835 835
836 // Searches in the given text and from the given offset until the start of
837 // the next or previous word is found and returns its position.
838 LONG FindWordStartBoundary(const base::string16& text,
839 LONG start_offset,
840 ui::TextBoundaryDirection direction);
841
836 // Return a pointer to the object corresponding to the given id, 842 // Return a pointer to the object corresponding to the given id,
837 // does not make a new reference. 843 // does not make a new reference.
838 BrowserAccessibilityWin* GetFromID(int32 id); 844 BrowserAccessibilityWin* GetFromID(int32 id);
839 845
840 // Windows-specific unique ID (unique within the browser process), 846 // Windows-specific unique ID (unique within the browser process),
841 // used for get_accChild, NotifyWinEvent, and as the unique ID for 847 // used for get_accChild, NotifyWinEvent, and as the unique ID for
842 // IAccessible2 and ISimpleDOM. 848 // IAccessible2 and ISimpleDOM.
843 LONG unique_id_win_; 849 LONG unique_id_win_;
844 850
845 // IAccessible role and state. 851 // IAccessible role and state.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
893 // Give BrowserAccessibility::Create access to our constructor. 899 // Give BrowserAccessibility::Create access to our constructor.
894 friend class BrowserAccessibility; 900 friend class BrowserAccessibility;
895 friend class BrowserAccessibilityRelation; 901 friend class BrowserAccessibilityRelation;
896 902
897 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityWin); 903 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityWin);
898 }; 904 };
899 905
900 } // namespace content 906 } // namespace content
901 907
902 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ 908 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698