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 1761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1772 view_->CreateBrowserAccessibilityManagerIfNeeded(); | 1772 view_->CreateBrowserAccessibilityManagerIfNeeded(); |
1773 BrowserAccessibilityManager* manager = | 1773 BrowserAccessibilityManager* manager = |
1774 view_->GetBrowserAccessibilityManager(); | 1774 view_->GetBrowserAccessibilityManager(); |
1775 if (manager) | 1775 if (manager) |
1776 manager->OnAccessibilityEvents(params); | 1776 manager->OnAccessibilityEvents(params); |
1777 } | 1777 } |
1778 | 1778 |
1779 std::vector<AXEventNotificationDetails> details; | 1779 std::vector<AXEventNotificationDetails> details; |
1780 for (unsigned int i = 0; i < params.size(); ++i) { | 1780 for (unsigned int i = 0; i < params.size(); ++i) { |
1781 const AccessibilityHostMsg_EventParams& param = params[i]; | 1781 const AccessibilityHostMsg_EventParams& param = params[i]; |
1782 AXEventNotificationDetails detail( | 1782 AXEventNotificationDetails detail(param.nodes, |
1783 param.nodes, param.event_type, param.id, GetRoutingID()); | 1783 param.event_type, |
| 1784 param.id, |
| 1785 GetProcess()->GetID(), |
| 1786 GetRoutingID()); |
1784 details.push_back(detail); | 1787 details.push_back(detail); |
1785 } | 1788 } |
1786 | 1789 |
1787 delegate_->AccessibilityEventReceived(details); | 1790 delegate_->AccessibilityEventReceived(details); |
1788 } | 1791 } |
1789 | 1792 |
1790 // Always send an ACK or the renderer can be in a bad state. | 1793 // Always send an ACK or the renderer can be in a bad state. |
1791 Send(new AccessibilityMsg_Events_ACK(GetRoutingID())); | 1794 Send(new AccessibilityMsg_Events_ACK(GetRoutingID())); |
1792 | 1795 |
1793 // The rest of this code is just for testing; bail out if we're not | 1796 // The rest of this code is just for testing; bail out if we're not |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1951 return true; | 1954 return true; |
1952 } | 1955 } |
1953 | 1956 |
1954 void RenderViewHostImpl::AttachToFrameTree() { | 1957 void RenderViewHostImpl::AttachToFrameTree() { |
1955 FrameTree* frame_tree = delegate_->GetFrameTree(); | 1958 FrameTree* frame_tree = delegate_->GetFrameTree(); |
1956 | 1959 |
1957 frame_tree->ResetForMainFrameSwap(); | 1960 frame_tree->ResetForMainFrameSwap(); |
1958 } | 1961 } |
1959 | 1962 |
1960 } // namespace content | 1963 } // namespace content |
OLD | NEW |