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 1709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1720 view_->CreateBrowserAccessibilityManagerIfNeeded(); | 1720 view_->CreateBrowserAccessibilityManagerIfNeeded(); |
1721 BrowserAccessibilityManager* manager = | 1721 BrowserAccessibilityManager* manager = |
1722 view_->GetBrowserAccessibilityManager(); | 1722 view_->GetBrowserAccessibilityManager(); |
1723 if (manager) | 1723 if (manager) |
1724 manager->OnAccessibilityEvents(params); | 1724 manager->OnAccessibilityEvents(params); |
1725 } | 1725 } |
1726 | 1726 |
1727 std::vector<AXEventNotificationDetails> details; | 1727 std::vector<AXEventNotificationDetails> details; |
1728 for (unsigned int i = 0; i < params.size(); ++i) { | 1728 for (unsigned int i = 0; i < params.size(); ++i) { |
1729 const AccessibilityHostMsg_EventParams& param = params[i]; | 1729 const AccessibilityHostMsg_EventParams& param = params[i]; |
1730 AXEventNotificationDetails detail( | 1730 AXEventNotificationDetails detail(param.nodes, |
1731 param.nodes, param.event_type, param.id, GetRoutingID()); | 1731 param.event_type, |
| 1732 param.id, |
| 1733 GetProcess()->GetID(), |
| 1734 GetRoutingID()); |
1732 details.push_back(detail); | 1735 details.push_back(detail); |
1733 } | 1736 } |
1734 | 1737 |
1735 delegate_->AccessibilityEventReceived(details); | 1738 delegate_->AccessibilityEventReceived(details); |
1736 } | 1739 } |
1737 | 1740 |
1738 // Always send an ACK or the renderer can be in a bad state. | 1741 // Always send an ACK or the renderer can be in a bad state. |
1739 Send(new AccessibilityMsg_Events_ACK(GetRoutingID())); | 1742 Send(new AccessibilityMsg_Events_ACK(GetRoutingID())); |
1740 | 1743 |
1741 // The rest of this code is just for testing; bail out if we're not | 1744 // The rest of this code is just for testing; bail out if we're not |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1879 return true; | 1882 return true; |
1880 } | 1883 } |
1881 | 1884 |
1882 void RenderViewHostImpl::AttachToFrameTree() { | 1885 void RenderViewHostImpl::AttachToFrameTree() { |
1883 FrameTree* frame_tree = delegate_->GetFrameTree(); | 1886 FrameTree* frame_tree = delegate_->GetFrameTree(); |
1884 | 1887 |
1885 frame_tree->ResetForMainFrameSwap(); | 1888 frame_tree->ResetForMainFrameSwap(); |
1886 } | 1889 } |
1887 | 1890 |
1888 } // namespace content | 1891 } // namespace content |
OLD | NEW |