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/dump_accessibility_tree_helper.h" | 5 #include "content/browser/accessibility/dump_accessibility_tree_helper.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> |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 IA2_STATE_MAP(IA2_STATE_SUPPORTS_AUTOCOMPLETION) | 190 IA2_STATE_MAP(IA2_STATE_SUPPORTS_AUTOCOMPLETION) |
191 IA2_STATE_MAP(IA2_STATE_TRANSIENT) | 191 IA2_STATE_MAP(IA2_STATE_TRANSIENT) |
192 // IA2_STATE_MAP(IA2_STATE_VERTICAL) // Untested. | 192 // IA2_STATE_MAP(IA2_STATE_VERTICAL) // Untested. |
193 } | 193 } |
194 | 194 |
195 string16 DumpAccessibilityTreeHelper::ToString( | 195 string16 DumpAccessibilityTreeHelper::ToString( |
196 BrowserAccessibility* node, char* prefix) { | 196 BrowserAccessibility* node, char* prefix) { |
197 if (role_string_map.empty()) | 197 if (role_string_map.empty()) |
198 Initialize(); | 198 Initialize(); |
199 | 199 |
200 BrowserAccessibilityWin* acc_obj = node->ToBrowserAccessibilityWin(); | 200 BrowserAccessibilityWin* acc_obj = node->toBrowserAccessibilityWin(); |
201 string16 state; | 201 string16 state; |
202 std::map<int32, string16>::iterator it; | 202 std::map<int32, string16>::iterator it; |
203 | 203 |
204 // MSAA states: | 204 // MSAA states: |
205 VARIANT variant_self; | 205 VARIANT variant_self; |
206 variant_self.vt = VT_I4; | 206 variant_self.vt = VT_I4; |
207 variant_self.lVal = CHILDID_SELF; | 207 variant_self.lVal = CHILDID_SELF; |
208 VARIANT msaa_state_variant; | 208 VARIANT msaa_state_variant; |
209 HRESULT hresult = acc_obj->get_accState(variant_self, &msaa_state_variant); | 209 HRESULT hresult = acc_obj->get_accState(variant_self, &msaa_state_variant); |
210 EXPECT_EQ(S_OK, hresult); | 210 EXPECT_EQ(S_OK, hresult); |
(...skipping 27 matching lines...) Expand all Loading... |
238 | 238 |
239 const FilePath::StringType DumpAccessibilityTreeHelper::GetActualFileSuffix() | 239 const FilePath::StringType DumpAccessibilityTreeHelper::GetActualFileSuffix() |
240 const { | 240 const { |
241 return FILE_PATH_LITERAL("-actual-win.txt"); | 241 return FILE_PATH_LITERAL("-actual-win.txt"); |
242 } | 242 } |
243 | 243 |
244 const FilePath::StringType DumpAccessibilityTreeHelper::GetExpectedFileSuffix() | 244 const FilePath::StringType DumpAccessibilityTreeHelper::GetExpectedFileSuffix() |
245 const { | 245 const { |
246 return FILE_PATH_LITERAL("-expected-win.txt"); | 246 return FILE_PATH_LITERAL("-expected-win.txt"); |
247 } | 247 } |
OLD | NEW |