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

Side by Side Diff: content/browser/accessibility/dump_accessibility_tree_helper_win.cc

Issue 10382051: Add initial GTK web accessibility framework (third attempt). (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 7 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 | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698