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 1732 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1743 BrowserAccessibilityManager* manager = | 1743 BrowserAccessibilityManager* manager = |
1744 view_->GetBrowserAccessibilityManager(); | 1744 view_->GetBrowserAccessibilityManager(); |
1745 if (manager) | 1745 if (manager) |
1746 manager->OnAccessibilityEvents(params); | 1746 manager->OnAccessibilityEvents(params); |
1747 | 1747 |
1748 // TODO(aboxhall, dtseng): Only send notification when accessibility mode | 1748 // TODO(aboxhall, dtseng): Only send notification when accessibility mode |
1749 // extension enabled. | 1749 // extension enabled. |
1750 std::vector<AXEventNotificationDetails> details; | 1750 std::vector<AXEventNotificationDetails> details; |
1751 for (unsigned int i = 0; i < params.size(); ++i) { | 1751 for (unsigned int i = 0; i < params.size(); ++i) { |
1752 const AccessibilityHostMsg_EventParams& param = params[i]; | 1752 const AccessibilityHostMsg_EventParams& param = params[i]; |
1753 AXEventNotificationDetails detail( | 1753 AXEventNotificationDetails detail(param.nodes, |
1754 param.nodes, param.event_type, param.id, GetRoutingID()); | 1754 param.event_type, |
| 1755 param.id, |
| 1756 GetProcess()->GetID(), |
| 1757 GetRoutingID()); |
1755 details.push_back(detail); | 1758 details.push_back(detail); |
1756 } | 1759 } |
1757 | 1760 |
1758 delegate_->AccessibilityEventReceived(details); | 1761 delegate_->AccessibilityEventReceived(details); |
1759 } | 1762 } |
1760 | 1763 |
1761 // Always send an ACK or the renderer can be in a bad state. | 1764 // Always send an ACK or the renderer can be in a bad state. |
1762 Send(new AccessibilityMsg_Events_ACK(GetRoutingID())); | 1765 Send(new AccessibilityMsg_Events_ACK(GetRoutingID())); |
1763 | 1766 |
1764 // The rest of this code is just for testing; bail out if we're not | 1767 // The rest of this code is just for testing; bail out if we're not |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1913 return true; | 1916 return true; |
1914 } | 1917 } |
1915 | 1918 |
1916 void RenderViewHostImpl::AttachToFrameTree() { | 1919 void RenderViewHostImpl::AttachToFrameTree() { |
1917 FrameTree* frame_tree = delegate_->GetFrameTree(); | 1920 FrameTree* frame_tree = delegate_->GetFrameTree(); |
1918 | 1921 |
1919 frame_tree->ResetForMainFrameSwap(); | 1922 frame_tree->ResetForMainFrameSwap(); |
1920 } | 1923 } |
1921 | 1924 |
1922 } // namespace content | 1925 } // namespace content |
OLD | NEW |