| 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/renderer/accessibility/render_accessibility_impl.h" | 5 #include "content/renderer/accessibility/render_accessibility_impl.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <queue> | 10 #include <queue> |
| (...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 356 for (size_t i = 0; i < event_msg.update.nodes.size(); ++i) { | 356 for (size_t i = 0; i < event_msg.update.nodes.size(); ++i) { |
| 357 ui::AXNodeData& src = event_msg.update.nodes[i]; | 357 ui::AXNodeData& src = event_msg.update.nodes[i]; |
| 358 ui::AXRelativeBounds& dst = locations_[event_msg.update.nodes[i].id]; | 358 ui::AXRelativeBounds& dst = locations_[event_msg.update.nodes[i].id]; |
| 359 dst.offset_container_id = src.offset_container_id; | 359 dst.offset_container_id = src.offset_container_id; |
| 360 dst.bounds = src.location; | 360 dst.bounds = src.location; |
| 361 dst.transform.reset(nullptr); | 361 dst.transform.reset(nullptr); |
| 362 if (src.transform) | 362 if (src.transform) |
| 363 dst.transform.reset(new gfx::Transform(*src.transform)); | 363 dst.transform.reset(new gfx::Transform(*src.transform)); |
| 364 } | 364 } |
| 365 | 365 |
| 366 DVLOG(0) << "Accessibility event: " << ui::ToString(event.event_type) | 366 VLOG(1) << "Accessibility event: " << ui::ToString(event.event_type) |
| 367 << " on node id " << event_msg.id | 367 << " on node id " << event_msg.id |
| 368 << "\n" << event_msg.update.ToString(); | 368 << "\n" << event_msg.update.ToString(); |
| 369 } | 369 } |
| 370 | 370 |
| 371 Send(new AccessibilityHostMsg_Events(routing_id(), event_msgs, reset_token_, | 371 Send(new AccessibilityHostMsg_Events(routing_id(), event_msgs, reset_token_, |
| 372 ack_token_)); | 372 ack_token_)); |
| 373 reset_token_ = 0; | 373 reset_token_ = 0; |
| 374 | 374 |
| 375 if (had_layout_complete_messages) | 375 if (had_layout_complete_messages) |
| 376 SendLocationChanges(); | 376 SendLocationChanges(); |
| 377 } | 377 } |
| 378 | 378 |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 623 | 623 |
| 624 const WebDocument& document = GetMainDocument(); | 624 const WebDocument& document = GetMainDocument(); |
| 625 if (document.isNull()) | 625 if (document.isNull()) |
| 626 return; | 626 return; |
| 627 | 627 |
| 628 document.accessibilityObject().scrollToMakeVisibleWithSubFocus( | 628 document.accessibilityObject().scrollToMakeVisibleWithSubFocus( |
| 629 WebRect(bounds.x(), bounds.y(), bounds.width(), bounds.height())); | 629 WebRect(bounds.x(), bounds.y(), bounds.width(), bounds.height())); |
| 630 } | 630 } |
| 631 | 631 |
| 632 } // namespace content | 632 } // namespace content |
| OLD | NEW |