OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/render_frame_impl.h" | 5 #include "content/renderer/render_frame_impl.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
(...skipping 1647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1658 renderer_accessibility_ = NULL; | 1658 renderer_accessibility_ = NULL; |
1659 } | 1659 } |
1660 if (accessibility_mode_ == AccessibilityModeOff) | 1660 if (accessibility_mode_ == AccessibilityModeOff) |
1661 return; | 1661 return; |
1662 | 1662 |
1663 if (accessibility_mode_ & AccessibilityModeFlagFullTree) | 1663 if (accessibility_mode_ & AccessibilityModeFlagFullTree) |
1664 renderer_accessibility_ = new RendererAccessibility(this); | 1664 renderer_accessibility_ = new RendererAccessibility(this); |
1665 } | 1665 } |
1666 | 1666 |
1667 void RenderFrameImpl::OnSnapshotAccessibilityTree(int callback_id) { | 1667 void RenderFrameImpl::OnSnapshotAccessibilityTree(int callback_id) { |
1668 ui::AXTreeUpdate<AXContentNodeData> response; | 1668 AXContentTreeUpdate response; |
1669 RendererAccessibility::SnapshotAccessibilityTree(this, &response); | 1669 RendererAccessibility::SnapshotAccessibilityTree(this, &response); |
1670 Send(new AccessibilityHostMsg_SnapshotResponse( | 1670 Send(new AccessibilityHostMsg_SnapshotResponse( |
1671 routing_id_, callback_id, response)); | 1671 routing_id_, callback_id, response)); |
1672 } | 1672 } |
1673 | 1673 |
1674 void RenderFrameImpl::OnUpdateOpener(int opener_routing_id) { | 1674 void RenderFrameImpl::OnUpdateOpener(int opener_routing_id) { |
1675 WebFrame* opener = ResolveOpener(opener_routing_id, nullptr); | 1675 WebFrame* opener = ResolveOpener(opener_routing_id, nullptr); |
1676 frame_->setOpener(opener); | 1676 frame_->setOpener(opener); |
1677 } | 1677 } |
1678 | 1678 |
(...skipping 3518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5197 mojo::ServiceProviderPtr service_provider; | 5197 mojo::ServiceProviderPtr service_provider; |
5198 mojo::URLRequestPtr request(mojo::URLRequest::New()); | 5198 mojo::URLRequestPtr request(mojo::URLRequest::New()); |
5199 request->url = mojo::String::From(url); | 5199 request->url = mojo::String::From(url); |
5200 mojo_shell_->ConnectToApplication(request.Pass(), GetProxy(&service_provider), | 5200 mojo_shell_->ConnectToApplication(request.Pass(), GetProxy(&service_provider), |
5201 nullptr, nullptr, | 5201 nullptr, nullptr, |
5202 base::Bind(&OnGotContentHandlerID)); | 5202 base::Bind(&OnGotContentHandlerID)); |
5203 return service_provider.Pass(); | 5203 return service_provider.Pass(); |
5204 } | 5204 } |
5205 | 5205 |
5206 } // namespace content | 5206 } // namespace content |
OLD | NEW |