OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "ui/views/accessibility/native_view_accessibility_win.h" |
| 6 |
5 #include <atlbase.h> | 7 #include <atlbase.h> |
6 #include <atlcom.h> | 8 #include <atlcom.h> |
7 | 9 |
8 #include <vector> | 10 #include <vector> |
9 | 11 |
10 #include "views/accessibility/native_view_accessibility_win.h" | |
11 | |
12 #include "third_party/iaccessible2/ia2_api_all.h" | 12 #include "third_party/iaccessible2/ia2_api_all.h" |
13 #include "ui/base/accessibility/accessible_text_utils.h" | 13 #include "ui/base/accessibility/accessible_text_utils.h" |
14 #include "ui/base/accessibility/accessible_view_state.h" | 14 #include "ui/base/accessibility/accessible_view_state.h" |
15 #include "ui/base/view_prop.h" | 15 #include "ui/base/view_prop.h" |
16 #include "views/widget/native_widget_win.h" | 16 #include "views/widget/native_widget_win.h" |
17 #include "views/widget/widget.h" | 17 #include "views/widget/widget.h" |
18 | 18 |
19 using ui::AccessibilityTypes; | 19 using ui::AccessibilityTypes; |
20 | 20 |
21 // static | 21 // static |
(...skipping 999 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1021 const string16& text, | 1021 const string16& text, |
1022 IA2TextBoundaryType ia2_boundary, | 1022 IA2TextBoundaryType ia2_boundary, |
1023 LONG start_offset, | 1023 LONG start_offset, |
1024 ui::TextBoundaryDirection direction) { | 1024 ui::TextBoundaryDirection direction) { |
1025 HandleSpecialTextOffset(text, &start_offset); | 1025 HandleSpecialTextOffset(text, &start_offset); |
1026 ui::TextBoundaryType boundary = IA2TextBoundaryToTextBoundary(ia2_boundary); | 1026 ui::TextBoundaryType boundary = IA2TextBoundaryToTextBoundary(ia2_boundary); |
1027 std::vector<int32> line_breaks; | 1027 std::vector<int32> line_breaks; |
1028 return ui::FindAccessibleTextBoundary( | 1028 return ui::FindAccessibleTextBoundary( |
1029 text, line_breaks, boundary, start_offset, direction); | 1029 text, line_breaks, boundary, start_offset, direction); |
1030 } | 1030 } |
OLD | NEW |