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

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

Issue 1552683002: Enable DumpAccessibilityTree tests to use cross-process iframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebaseline last Android test Created 4 years, 11 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 (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.h" 5 #include "content/browser/accessibility/accessibility_tree_formatter.h"
6 6
7 #include <oleacc.h> 7 #include <oleacc.h>
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 ax_object->get_accKeyboardShortcut(variant_self, temp_bstr.Receive()))) { 230 ax_object->get_accKeyboardShortcut(variant_self, temp_bstr.Receive()))) {
231 dict->SetString("keyboard_shortcut", base::string16(temp_bstr, 231 dict->SetString("keyboard_shortcut", base::string16(temp_bstr,
232 temp_bstr.Length())); 232 temp_bstr.Length()));
233 } 233 }
234 temp_bstr.Reset(); 234 temp_bstr.Reset();
235 235
236 if (SUCCEEDED(ax_object->get_accHelp(variant_self, temp_bstr.Receive()))) 236 if (SUCCEEDED(ax_object->get_accHelp(variant_self, temp_bstr.Receive())))
237 dict->SetString("help", base::string16(temp_bstr, temp_bstr.Length())); 237 dict->SetString("help", base::string16(temp_bstr, temp_bstr.Length()));
238 temp_bstr.Reset(); 238 temp_bstr.Reset();
239 239
240 BrowserAccessibility* root = node.manager()->GetRoot(); 240 BrowserAccessibility* root = node.manager()->GetRootManager()->GetRoot();
241 LONG left, top, width, height; 241 LONG left, top, width, height;
242 LONG root_left, root_top, root_width, root_height; 242 LONG root_left, root_top, root_width, root_height;
243 if (SUCCEEDED(ax_object->accLocation( 243 if (SUCCEEDED(ax_object->accLocation(
244 &left, &top, &width, &height, variant_self)) && 244 &left, &top, &width, &height, variant_self)) &&
245 SUCCEEDED(root->ToBrowserAccessibilityWin()->accLocation( 245 SUCCEEDED(root->ToBrowserAccessibilityWin()->accLocation(
246 &root_left, &root_top, &root_width, &root_height, variant_self))) { 246 &root_left, &root_top, &root_width, &root_height, variant_self))) {
247 base::DictionaryValue* location = new base::DictionaryValue; 247 base::DictionaryValue* location = new base::DictionaryValue;
248 location->SetInteger("x", left - root_left); 248 location->SetInteger("x", left - root_left);
249 location->SetInteger("y", top - root_top); 249 location->SetInteger("y", top - root_top);
250 dict->Set("location", location); 250 dict->Set("location", location);
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 412
413 const std::string AccessibilityTreeFormatterWin::GetAllowString() { 413 const std::string AccessibilityTreeFormatterWin::GetAllowString() {
414 return "@WIN-ALLOW:"; 414 return "@WIN-ALLOW:";
415 } 415 }
416 416
417 const std::string AccessibilityTreeFormatterWin::GetDenyString() { 417 const std::string AccessibilityTreeFormatterWin::GetDenyString() {
418 return "@WIN-DENY:"; 418 return "@WIN-DENY:";
419 } 419 }
420 420
421 } // namespace content 421 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698