| 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/renderer_host/render_view_host_impl.h" | 5 #include "content/browser/renderer_host/render_view_host_impl.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 1681 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1692 view_->CreateBrowserAccessibilityManagerIfNeeded(); | 1692 view_->CreateBrowserAccessibilityManagerIfNeeded(); |
| 1693 BrowserAccessibilityManager* manager = | 1693 BrowserAccessibilityManager* manager = |
| 1694 view_->GetBrowserAccessibilityManager(); | 1694 view_->GetBrowserAccessibilityManager(); |
| 1695 if (manager) | 1695 if (manager) |
| 1696 manager->OnAccessibilityEvents(params); | 1696 manager->OnAccessibilityEvents(params); |
| 1697 } | 1697 } |
| 1698 | 1698 |
| 1699 std::vector<AXEventNotificationDetails> details; | 1699 std::vector<AXEventNotificationDetails> details; |
| 1700 for (unsigned int i = 0; i < params.size(); ++i) { | 1700 for (unsigned int i = 0; i < params.size(); ++i) { |
| 1701 const AccessibilityHostMsg_EventParams& param = params[i]; | 1701 const AccessibilityHostMsg_EventParams& param = params[i]; |
| 1702 AXEventNotificationDetails detail( | 1702 AXEventNotificationDetails detail(param.update.nodes, |
| 1703 param.update.nodes, param.event_type, param.id, GetRoutingID()); | 1703 param.event_type, |
| 1704 param.id, |
| 1705 GetProcess()->GetID(), |
| 1706 GetRoutingID()); |
| 1704 details.push_back(detail); | 1707 details.push_back(detail); |
| 1705 } | 1708 } |
| 1706 | 1709 |
| 1707 delegate_->AccessibilityEventReceived(details); | 1710 delegate_->AccessibilityEventReceived(details); |
| 1708 } | 1711 } |
| 1709 | 1712 |
| 1710 // Always send an ACK or the renderer can be in a bad state. | 1713 // Always send an ACK or the renderer can be in a bad state. |
| 1711 Send(new AccessibilityMsg_Events_ACK(GetRoutingID())); | 1714 Send(new AccessibilityMsg_Events_ACK(GetRoutingID())); |
| 1712 | 1715 |
| 1713 // The rest of this code is just for testing; bail out if we're not | 1716 // The rest of this code is just for testing; bail out if we're not |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1849 return true; | 1852 return true; |
| 1850 } | 1853 } |
| 1851 | 1854 |
| 1852 void RenderViewHostImpl::AttachToFrameTree() { | 1855 void RenderViewHostImpl::AttachToFrameTree() { |
| 1853 FrameTree* frame_tree = delegate_->GetFrameTree(); | 1856 FrameTree* frame_tree = delegate_->GetFrameTree(); |
| 1854 | 1857 |
| 1855 frame_tree->ResetForMainFrameSwap(); | 1858 frame_tree->ResetForMainFrameSwap(); |
| 1856 } | 1859 } |
| 1857 | 1860 |
| 1858 } // namespace content | 1861 } // namespace content |
| OLD | NEW |