OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/browser/accessibility/accessibility_tree_formatter_utils_win.h
" | 5 #include "content/browser/accessibility/accessibility_tree_formatter_utils_win.h
" |
6 | 6 |
7 #include <oleacc.h> | 7 #include <oleacc.h> |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/memory/singleton.h" | 12 #include "base/memory/singleton.h" |
13 #include "base/string_util.h" | 13 #include "base/strings/string_util.h" |
14 #include "third_party/iaccessible2/ia2_api_all.h" | 14 #include "third_party/iaccessible2/ia2_api_all.h" |
15 | 15 |
16 namespace content { | 16 namespace content { |
17 namespace { | 17 namespace { |
18 | 18 |
19 class AccessibilityRoleStateMap { | 19 class AccessibilityRoleStateMap { |
20 public: | 20 public: |
21 static AccessibilityRoleStateMap* GetInstance(); | 21 static AccessibilityRoleStateMap* GetInstance(); |
22 | 22 |
23 std::map<int32, string16> ia_role_string_map; | 23 std::map<int32, string16> ia_role_string_map; |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 } | 256 } |
257 } | 257 } |
258 | 258 |
259 string16 IAccessible2StateToString(int32 ia2_state) { | 259 string16 IAccessible2StateToString(int32 ia2_state) { |
260 std::vector<string16> strings; | 260 std::vector<string16> strings; |
261 IAccessible2StateToStringVector(ia2_state, &strings); | 261 IAccessible2StateToStringVector(ia2_state, &strings); |
262 return JoinString(strings, ','); | 262 return JoinString(strings, ','); |
263 } | 263 } |
264 | 264 |
265 } // namespace content | 265 } // namespace content |
OLD | NEW |