| 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 <limits.h> |
| 8 #include <oleacc.h> | 8 #include <oleacc.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 if (!arg3) return E_INVALIDARG; \ | 76 if (!arg3) return E_INVALIDARG; \ |
| 77 if (!arg4) return E_INVALIDARG | 77 if (!arg4) return E_INVALIDARG |
| 78 | 78 |
| 79 namespace ui { | 79 namespace ui { |
| 80 | 80 |
| 81 namespace { | 81 namespace { |
| 82 | 82 |
| 83 typedef base::hash_set<AXPlatformNodeWin*> AXPlatformNodeWinSet; | 83 typedef base::hash_set<AXPlatformNodeWin*> AXPlatformNodeWinSet; |
| 84 // Set of all AXPlatformNodeWin objects that were the target of an | 84 // Set of all AXPlatformNodeWin objects that were the target of an |
| 85 // alert event. | 85 // alert event. |
| 86 base::LazyInstance<AXPlatformNodeWinSet> g_alert_targets = | 86 base::LazyInstance<AXPlatformNodeWinSet>::DestructorAtExit g_alert_targets = |
| 87 LAZY_INSTANCE_INITIALIZER; | 87 LAZY_INSTANCE_INITIALIZER; |
| 88 | 88 |
| 89 base::LazyInstance<base::ObserverList<IAccessible2UsageObserver>> | 89 base::LazyInstance<base::ObserverList<IAccessible2UsageObserver>>:: |
| 90 g_iaccessible2_usage_observer_list = LAZY_INSTANCE_INITIALIZER; | 90 DestructorAtExit g_iaccessible2_usage_observer_list = |
| 91 LAZY_INSTANCE_INITIALIZER; |
| 91 | 92 |
| 92 } // namespace | 93 } // namespace |
| 93 | 94 |
| 94 // | 95 // |
| 95 // IAccessible2UsageObserver | 96 // IAccessible2UsageObserver |
| 96 // | 97 // |
| 97 | 98 |
| 98 IAccessible2UsageObserver::IAccessible2UsageObserver() { | 99 IAccessible2UsageObserver::IAccessible2UsageObserver() { |
| 99 } | 100 } |
| 100 | 101 |
| (...skipping 1090 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1191 ui::TextBoundaryDirection direction) { | 1192 ui::TextBoundaryDirection direction) { |
| 1192 HandleSpecialTextOffset(&start_offset); | 1193 HandleSpecialTextOffset(&start_offset); |
| 1193 ui::TextBoundaryType boundary = IA2TextBoundaryToTextBoundary(ia2_boundary); | 1194 ui::TextBoundaryType boundary = IA2TextBoundaryToTextBoundary(ia2_boundary); |
| 1194 std::vector<int32_t> line_breaks; | 1195 std::vector<int32_t> line_breaks; |
| 1195 return static_cast<LONG>(ui::FindAccessibleTextBoundary( | 1196 return static_cast<LONG>(ui::FindAccessibleTextBoundary( |
| 1196 text, line_breaks, boundary, start_offset, direction, | 1197 text, line_breaks, boundary, start_offset, direction, |
| 1197 AX_TEXT_AFFINITY_DOWNSTREAM)); | 1198 AX_TEXT_AFFINITY_DOWNSTREAM)); |
| 1198 } | 1199 } |
| 1199 | 1200 |
| 1200 } // namespace ui | 1201 } // namespace ui |
| OLD | NEW |