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

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

Issue 2000403003: [forbots] IWYU for ax_enums.h Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
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
11 #include "base/containers/hash_tables.h" 11 #include "base/containers/hash_tables.h"
12 #include "base/lazy_instance.h" 12 #include "base/lazy_instance.h"
13 #include "base/win/scoped_comptr.h" 13 #include "base/win/scoped_comptr.h"
14 #include "base/win/scoped_variant.h" 14 #include "base/win/scoped_variant.h"
15 #include "third_party/iaccessible2/ia2_api_all.h" 15 #include "third_party/iaccessible2/ia2_api_all.h"
16 #include "ui/accessibility/ax_enums.h"
16 #include "ui/accessibility/ax_node_data.h" 17 #include "ui/accessibility/ax_node_data.h"
17 #include "ui/accessibility/ax_text_utils.h" 18 #include "ui/accessibility/ax_text_utils.h"
18 #include "ui/accessibility/platform/ax_platform_node_delegate.h" 19 #include "ui/accessibility/platform/ax_platform_node_delegate.h"
19 #include "ui/accessibility/platform/ax_platform_node_win.h" 20 #include "ui/accessibility/platform/ax_platform_node_win.h"
20 #include "ui/base/win/atl_module.h" 21 #include "ui/base/win/atl_module.h"
21 22
22 // 23 //
23 // Macros to use at the top of any AXPlatformNodeWin function that implements 24 // Macros to use at the top of any AXPlatformNodeWin function that implements
24 // a COM interface. Because COM objects are reference counted and clients 25 // a COM interface. Because COM objects are reference counted and clients
25 // are completely untrusted, it's important to always first check that our 26 // are completely untrusted, it's important to always first check that our
(...skipping 1116 matching lines...) Expand 10 before | Expand all | Expand 10 after
1142 LONG start_offset, 1143 LONG start_offset,
1143 ui::TextBoundaryDirection direction) { 1144 ui::TextBoundaryDirection direction) {
1144 HandleSpecialTextOffset(text, &start_offset); 1145 HandleSpecialTextOffset(text, &start_offset);
1145 ui::TextBoundaryType boundary = IA2TextBoundaryToTextBoundary(ia2_boundary); 1146 ui::TextBoundaryType boundary = IA2TextBoundaryToTextBoundary(ia2_boundary);
1146 std::vector<int32_t> line_breaks; 1147 std::vector<int32_t> line_breaks;
1147 return static_cast<LONG>(ui::FindAccessibleTextBoundary( 1148 return static_cast<LONG>(ui::FindAccessibleTextBoundary(
1148 text, line_breaks, boundary, start_offset, direction)); 1149 text, line_breaks, boundary, start_offset, direction));
1149 } 1150 }
1150 1151
1151 } // namespace ui 1152 } // namespace ui
OLDNEW
« no previous file with comments | « ui/accessibility/platform/ax_platform_node_mac.mm ('k') | ui/accessibility/platform/ax_platform_node_win_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698