| OLD | NEW |
| 1 // Copyright (c) 2017 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2017 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_COM_WIN_H_ | 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_COM_WIN_H_ |
| 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_COM_WIN_H_ | 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_COM_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 858 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 869 // If offset is a member of IA2TextSpecialOffsets this function updates the | 869 // If offset is a member of IA2TextSpecialOffsets this function updates the |
| 870 // value of offset and returns, otherwise offset remains unchanged. | 870 // value of offset and returns, otherwise offset remains unchanged. |
| 871 void HandleSpecialTextOffset(LONG* offset); | 871 void HandleSpecialTextOffset(LONG* offset); |
| 872 | 872 |
| 873 // Convert from a IA2TextBoundaryType to a ui::TextBoundaryType. | 873 // Convert from a IA2TextBoundaryType to a ui::TextBoundaryType. |
| 874 ui::TextBoundaryType IA2TextBoundaryToTextBoundary(IA2TextBoundaryType type); | 874 ui::TextBoundaryType IA2TextBoundaryToTextBoundary(IA2TextBoundaryType type); |
| 875 | 875 |
| 876 // Search forwards (direction == 1) or backwards (direction == -1) | 876 // Search forwards (direction == 1) or backwards (direction == -1) |
| 877 // from the given offset until the given boundary is found, and | 877 // from the given offset until the given boundary is found, and |
| 878 // return the offset of that boundary. | 878 // return the offset of that boundary. |
| 879 LONG FindBoundary(const base::string16& text, | 879 LONG FindBoundary(IA2TextBoundaryType ia2_boundary, |
| 880 IA2TextBoundaryType ia2_boundary, | |
| 881 LONG start_offset, | 880 LONG start_offset, |
| 882 ui::TextBoundaryDirection direction); | 881 ui::TextBoundaryDirection direction); |
| 883 | 882 |
| 884 // Searches forward from the given offset until the start of the next style | 883 // Searches forward from the given offset until the start of the next style |
| 885 // is found, or searches backward from the given offset until the start of the | 884 // is found, or searches backward from the given offset until the start of the |
| 886 // current style is found. | 885 // current style is found. |
| 887 LONG FindStartOfStyle(LONG start_offset, | 886 LONG FindStartOfStyle(LONG start_offset, |
| 888 ui::TextBoundaryDirection direction) const; | 887 ui::TextBoundaryDirection direction) const; |
| 889 | 888 |
| 890 // ID refers to the node ID in the current tree, not the globally unique ID. | 889 // ID refers to the node ID in the current tree, not the globally unique ID. |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 980 | 979 |
| 981 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityComWin); | 980 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityComWin); |
| 982 }; | 981 }; |
| 983 | 982 |
| 984 CONTENT_EXPORT BrowserAccessibilityComWin* ToBrowserAccessibilityComWin( | 983 CONTENT_EXPORT BrowserAccessibilityComWin* ToBrowserAccessibilityComWin( |
| 985 BrowserAccessibility* obj); | 984 BrowserAccessibility* obj); |
| 986 | 985 |
| 987 } // namespace content | 986 } // namespace content |
| 988 | 987 |
| 989 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_COM_WIN_H_ | 988 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_COM_WIN_H_ |
| OLD | NEW |