Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 <stddef.h> | 5 #include <stddef.h> |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
| 10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 53 | 53 |
| 54 dict->SetString("internalRole", ui::ToString(node.GetData().role)); | 54 dict->SetString("internalRole", ui::ToString(node.GetData().role)); |
| 55 | 55 |
| 56 gfx::Rect bounds = gfx::ToEnclosingRect(node.GetData().location); | 56 gfx::Rect bounds = gfx::ToEnclosingRect(node.GetData().location); |
| 57 dict->SetInteger("boundsX", bounds.x()); | 57 dict->SetInteger("boundsX", bounds.x()); |
| 58 dict->SetInteger("boundsY", bounds.y()); | 58 dict->SetInteger("boundsY", bounds.y()); |
| 59 dict->SetInteger("boundsWidth", bounds.width()); | 59 dict->SetInteger("boundsWidth", bounds.width()); |
| 60 dict->SetInteger("boundsHeight", bounds.height()); | 60 dict->SetInteger("boundsHeight", bounds.height()); |
| 61 | 61 |
| 62 gfx::Rect page_bounds = node.GetPageBoundsRect(); | 62 gfx::Rect page_bounds = node.GetPageBoundsRect(); |
| 63 LOG(ERROR) << page_bounds.y() << " page bounds for " | |
|
aboxhall
2017/06/30 06:07:40
Stray log? Looks like there's a few.
dmazzoni
2017/07/06 07:20:22
Fixed all, sorry about that
| |
| 64 << node.GetData().ToString(); | |
| 63 dict->SetInteger("pageBoundsX", page_bounds.x()); | 65 dict->SetInteger("pageBoundsX", page_bounds.x()); |
| 64 dict->SetInteger("pageBoundsY", page_bounds.y()); | 66 dict->SetInteger("pageBoundsY", page_bounds.y()); |
| 65 dict->SetInteger("pageBoundsWidth", page_bounds.width()); | 67 dict->SetInteger("pageBoundsWidth", page_bounds.width()); |
| 66 dict->SetInteger("pageBoundsHeight", page_bounds.height()); | 68 dict->SetInteger("pageBoundsHeight", page_bounds.height()); |
| 67 | 69 |
| 68 dict->SetBoolean("transform", | 70 dict->SetBoolean("transform", |
| 69 node.GetData().transform && | 71 node.GetData().transform && |
| 70 !node.GetData().transform->IsIdentity()); | 72 !node.GetData().transform->IsIdentity()); |
| 71 | 73 |
| 72 for (int state_index = ui::AX_STATE_NONE; | 74 for (int state_index = ui::AX_STATE_NONE; |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 363 | 365 |
| 364 const std::string AccessibilityTreeFormatterBlink::GetAllowString() { | 366 const std::string AccessibilityTreeFormatterBlink::GetAllowString() { |
| 365 return "@BLINK-ALLOW:"; | 367 return "@BLINK-ALLOW:"; |
| 366 } | 368 } |
| 367 | 369 |
| 368 const std::string AccessibilityTreeFormatterBlink::GetDenyString() { | 370 const std::string AccessibilityTreeFormatterBlink::GetDenyString() { |
| 369 return "@BLINK-DENY:"; | 371 return "@BLINK-DENY:"; |
| 370 } | 372 } |
| 371 | 373 |
| 372 } // namespace content | 374 } // namespace content |
| OLD | NEW |