| 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 #include <atlbase.h> | 5 #include <atlbase.h> |
| 6 #include <atlcom.h> | 6 #include <atlcom.h> |
| 7 #include <limits.h> |
| 7 #include <oleacc.h> | 8 #include <oleacc.h> |
| 8 #include <stdint.h> | 9 #include <stdint.h> |
| 9 | 10 |
| 10 #include "base/containers/hash_tables.h" | 11 #include "base/containers/hash_tables.h" |
| 11 #include "base/lazy_instance.h" | 12 #include "base/lazy_instance.h" |
| 12 #include "base/win/scoped_comptr.h" | 13 #include "base/win/scoped_comptr.h" |
| 13 #include "base/win/scoped_variant.h" | 14 #include "base/win/scoped_variant.h" |
| 14 #include "third_party/iaccessible2/ia2_api_all.h" | 15 #include "third_party/iaccessible2/ia2_api_all.h" |
| 15 #include "ui/accessibility/ax_node_data.h" | 16 #include "ui/accessibility/ax_node_data.h" |
| 16 #include "ui/accessibility/ax_text_utils.h" | 17 #include "ui/accessibility/ax_text_utils.h" |
| (...skipping 1086 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1103 LONG start_offset, | 1104 LONG start_offset, |
| 1104 ui::TextBoundaryDirection direction) { | 1105 ui::TextBoundaryDirection direction) { |
| 1105 HandleSpecialTextOffset(text, &start_offset); | 1106 HandleSpecialTextOffset(text, &start_offset); |
| 1106 ui::TextBoundaryType boundary = IA2TextBoundaryToTextBoundary(ia2_boundary); | 1107 ui::TextBoundaryType boundary = IA2TextBoundaryToTextBoundary(ia2_boundary); |
| 1107 std::vector<int32_t> line_breaks; | 1108 std::vector<int32_t> line_breaks; |
| 1108 return static_cast<LONG>(ui::FindAccessibleTextBoundary( | 1109 return static_cast<LONG>(ui::FindAccessibleTextBoundary( |
| 1109 text, line_breaks, boundary, start_offset, direction)); | 1110 text, line_breaks, boundary, start_offset, direction)); |
| 1110 } | 1111 } |
| 1111 | 1112 |
| 1112 } // namespace ui | 1113 } // namespace ui |
| OLD | NEW |