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

Side by Side Diff: ui/accessibility/platform/ax_platform_node_win.cc

Issue 2733283002: Require explicit selection of traits for LazyInstance (Closed)
Patch Set: l10n again Created 3 years, 9 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
« no previous file with comments | « ui/accessibility/platform/ax_platform_node.cc ('k') | ui/aura/env.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ui/accessibility/platform/ax_platform_node.cc ('k') | ui/aura/env.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698